C# -- Problems with Forms

Status
Not open for further replies.
When I do this at runtime;
Code:
FormBorderStyle = FormBorderStyle.None;
It screws up the desktop image which is fixed by refreshing hte screen. Is there any way to get this propety to draw more cleanly or failing that can I force WIndows to perform a screen refresh from the application?


Also if I create a form with a label on it, set the labels backcolor to the same as the form. Then set the TransparencyKey to the backcolor to make the form invisible ownly showing the labels text. This works but when ever I bring up the start menu the labels back color becomes visible, any fixes?


Can I set the form to auto size itself to fit the size of the controls?


Thanks

Dom.
 
Status
Not open for further replies.