Serialcoder en Français Serialcoder in English
TEL : +33 (0)9 72 13 15 17

Windows Forms FAQ

32. Windows Forms Form

32.1 How can I programmatically maximize or minimize a form?
32.2 How can I display a pop up a confirmation dialog when the user closes the form?
32.3 How can I center my form?
32.4 How do I prevent users from resizing a form?
32.5 How do I programmatically set an image as Form's Icon ?
32.6 How can I add items to the System Menu of a form.
32.7 How can I have a form with no title bar, but yet keep the resizing borders?
32.8 I don't want to have the Close box on my form's title bar. How do I remove this system menu box?
32.9 How do I change my application's icon?
32.10 How can I tell if a form is closed from the controlbox (system menu) or from a call to Form.Close?
32.11 I have two forms. How can I access a textbox on one form from the other form?
32.12 How do I create a non-modal top level form that always stays on top of all the app's windows (like the VS.Net find dialog)?
32.13 How can I display a form that is 'TopMost' for only my application, but not other applications?
32.14 How do I automatically resize the Form when the screen resolution changes between design-time and runtime?
32.15 How can I ensure that my form will always be on the desktop?
32.16 How can I restrict or control the size of my form?
32.17 How can I prevent a form from being shown in the taskbar?
32.18 How do I prevent a user from moving a form at run time?
32.19 How can I create a non rectangular form?
32.20 How can I make my form cover the whole screen including the TaskBar?
32.21 How can I move a Borderless form?
32.22 How do I force a Windows Form application to exit?
32.23 How do I set the default button for a form?
32.24 How do I get an HWND for a form?
32.25 How can I detect if the user clicks into another window from my modal dialog?
32.26 How do I create a form with no border?
32.27 How do I prevent a Form from closing when the user clicks on the close button on the form's system menu?
32.28 How do I display a splash screen type form, one with only client area (no border or titlebar)?
32.29 How do I get the window handle (HWND) of my form or control?
32.30 How can I make sure I don't open a second instance modeless dialog that is already opened from my main form?
32.31 Is there a way to halt a screen from painting until all the controls on the form are initialized?
32.32 How do I return values from a form?
32.33 How can I easily manage whether controls on my form are readonly or not?
32.34 The controls that I've try to add to my form at runtime don't show up. What's wrong?
32.35 Setting Form.Visible to false does not make my main form start up invisibly. How can I make my main form start up invisibly?
32.36 How to make a form transparent?
32.37 How can I create an instance of a Form class just from knowing its name in a string?

 

Windows forms FAQ