title: VB.Net Custom Controls
body: <p>This might be basic question, however I am confused on some .Net Concpets.<br>
  I am trying to create a "Data Browser" in VB.net.  </p>
  
  <ul>
  <li>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.</li>
  <li>The UI on each Tab is mostly the
  same.</li>
  <li>A list Box (showing datatypes, etc),
  a TextBox (where you can create a
  filter), and a DataGridView, a
  DataSource Picker, etc.</li>
  <li>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.</li>
  </ul>
  
  <p>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.</p>
  
  <p>If this is the suggested route, how is the best way to go about creating the MyDataBrowser Control </p>
  
  <ul>
  <li>(A) Is this a Custom Control Library?</li>
  <li>(B) Is this an Inhertited Form?  </li>
  <li>(C) Is this an Inherrited User
  Control?</li>
  </ul>
  
  <p>I assume that I have to create a .DLL and add as a reference.
  Any direction on this would be appreciated.</p>
  
  <ol>
  <li>Does the custom Control have its
  own properties (I would like to
  save/load these from a configuration
  file).</li>
  <li>Is it possible to add a
  backgroundworker to this
  customcontrol?</li>
  </ol>
  
  <p>Thanks.</p>