Reputation: 423
This might be basic question, however I am confused on some .Net Concpets.
I am trying to create a "Data Browser" in VB.net.
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
I assume that I have to create a .DLL and add as a reference. Any direction on this would be appreciated.
Thanks.
Upvotes: 3
Views: 6044
Reputation: 564333
You'll want to make a UserControl.
There is a walkthrough on MSDN that covers this in detail- Walkthrough: Authoring a Composite Control with Visual Basic.
That being said, for your specific questions:
As for deployment - typically, you'd have this in a class library (which makes a DLL), and reference that within your applications, but that is up to you. The UserControl can also just be added directly to your application.
Upvotes: 3