willbailie Posted September 30, 2003 Posted September 30, 2003 (edited) I have written a control which positions its parent form in one of 9 positions on the screen (top left, top middle, top right, etc..), but I want, when the control is added to a form, for it to appear like the OleDBConnection and FileSystemWatcher controls, i.e. not on the form, but down below. What I would like to know is 1) How to do the above 2) When the above is accomplished it comes up with its own icon 3) How to not show some of the properties e.g Font is useless for a control that will never display any text All help is greatly appreciated <Edit> I have also noticed that the control when it loads, moves the form in the designer to the same position as i select for the property in the control. Any ideas how to fix that? Edited September 30, 2003 by willbailie Quote
nemaroller Posted September 30, 2003 Posted September 30, 2003 I'm just quickly browsing, but what you're describing as far as OleDBConnection and FileSystemWatcher are actually Components, not controls. Quote
*Experts* Volte Posted September 30, 2003 *Experts* Posted September 30, 2003 Just to clarify what nemaroller said, you want your class to Inherit from the Component class, not the Control class. Quote
willbailie Posted October 1, 2003 Author Posted October 1, 2003 thanks guys, now I have a problem. I don't know anything about components, and how to design them. Can anyone point me in the direction of some tutorials or exercises online that I can use to learn how to do this Quote
*Experts* Volte Posted October 1, 2003 *Experts* Posted October 1, 2003 They are just like regular classes, only they can be added to your form, and can interact with other controls on the form. The MSDN would be a good place to look. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.