user control as an object

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,
I have created a user control in my application that I would like to show
in the lower left corner of all forms. Basically this control holds
information for support (IP, user name, computer name, etc). My problem is I
do not know how to include this new control on my forms.

Thanks,
Ron
 
Add a "Windows Control Library" to your solution, add the controls and logic
necessary to complete the user control, compile the "Windows Control
Library" project. Now switch over to your form in design view and look for
the "My User Controls" section in the toolbox. You should now be able to
drag and drop the control from the toolbox onto the form. If this control
needs to go on all forms, then you may consider creating a base form, adding
your user control, and then inheriting all forms from your base form.
 
Back
Top