Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (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 by willbailie
Posted
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
  • *Experts*
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...