VB.Net Custom Controls
- by Paul
This might be basic question, however I am confused on some .Net Concpets.
I am trying to create a "Data Browser" in VB.net.
Similar to a Web Browser however each
Tab in the Data Browser is a view of
some Data (from a database or flat
files) not a webpage.
The UI on each Tab is mostly the
same.
A list Box (showing datatypes, etc),
a TextBox (where you can create a
filter), and a DataGridView, a
DataSource Picker, etc.
The only thing that would change on
each tab is that there could be a
custom "Viewer". In most cases
(depending on the datasource), this
would be the datagrid, however in
other cases it would be a
treecontrol.
From reading through the .Net documents, it appears that I need to Create a Custom Control (MyDataBrowser) Consisting of a Panel with all the common Controls (except the viewer). Every time the user says "New Tab", a new tabpage is created and this MyDataBrowser Control is added, The MyDataBrowser control would contain some function that was able to then create the approriate viewer based on the data at hand.
If this is the suggested route, how is the best way to go about creating the MyDataBrowser Control
(A) Is this a Custom Control Library?
(B) Is this an Inhertited Form?
(C) Is this an Inherrited User
Control?
I assume that I have to create a .DLL and add as a reference.
Any direction on this would be appreciated.
Does the custom Control have its
own properties (I would like to
save/load these from a configuration
file).
Is it possible to add a
backgroundworker to this
customcontrol?
Thanks.