:: Home

  login:         
  passwords:  

Winforms Interview Questions

Windows Forms Deployment
Windows Forms Controls
Windows Forms Data Binding
Windows Forms Datagrid
Windows Forms Docking
Windows Forms Keyboard Handling
Windows Forms Layout
Windows Forms Licensing
Windows Forms Menus
Windows Forms Mouse Handling
Windows Forms from MFC
Windows Forms from VB6
Windows Forms Patterns
Windows Forms Printing
Windows Forms Resources
Windows Form Scrolling
Windows Forms Tips
Windows Forms Common Dialogs
Windows Forms Listbox
Windows Forms ComboBox
Windows Forms Rich TextBox
Windows Forms ListView
Windows Forms TreeView
Windows Forms Button
Windows Forms TabControl
Windows Forms TextBox
Windows Forms MDI
Windows Forms Cursors
Windows Forms WebBrowser
Windows Forms PictureBox
Windows Forms Form
Windows Forms MDI
Windows Forms In IE
GDI+Bitmaps&Images
GDI+Font
GDI+Color
GDI+Brushes
GDI Drawing Tips
GDI+ from GDI
GDI Paths Regions
GDI+Pens
Interioerability WIn32
Tools Metadata Viewers
Design Time Serialization
Design Time Custom Designers
Design Time Tips
Design Time Type Editors
Vs.Net Tips
Vs.Net Debugging
Vs.Net Macros
Framework Tips General
Framework Tips Events
Framework Tips General IO
Framework Tips Strings
Framework Tips Threading
Tool Resource Editor
Design Time UI
Framework Tips CGI
Framework Tips XML

WPF Interview Qs

SilverLight Interview Qs

SAP Interview Questions

Oracle Interview Questions

PHP Interview Questions

Ajax Interview Questions

IIS 7.0

OOP Interview Questions

Ruby Interview Questions

Sql Server Interview Questions

SharePoint 2007 Questions

Microsoft Crm Questions

Winforms Interview Questions & FAQs


Welcome to Winforms Interview Quesitons and Answers section. The Winforms Interview Questions listed below have been collected through various forums, websites, blogs and other resources. We have included the references to the originators where we can but if you feel that you should be credited for a given problem please contact us.

If you have a product or service that you would like to be included in the FAQ section, please contact us at FAQs@megasolutions.net

1. Windows Forms Deployment

    1.1 How can I run an EXE from within my application?
    1.2 What are the common issues in redirecting assemblies using the publisher policy files?
    1.3 How can I find all programs with a GUI (not just arbitrary windows) that are running on my local machine?
    1.4 How can I get a list of all processes running on my system?
    1.5 How can I make sure there is only one instance of my application running?
    1.6 How do I determine which operating system is running?
    1.7 How can I get all IP addresses for my local machine?
    1.8 My user does not have .NET installed. Will he be able to run my Windows Forms application?
    1.9 How do I get the path to my running EXE?
    1.10 How can I programmatically obtain the name of the assembly that the code is executing in ?
    1.11 How can I see what is installed in the Global Assembly on a machine?
    1.12 How do I set the company name that is returned by System.Windows.Forms.Application.CompanyName?

2. Windows Forms Controls

    2.1 How do you prevent serialization of certain child controls in your Composite Control?
    2.2 How do I get hold of the currently focused Control?
    2.3 Why do calling Focus() on a control not set focus on it?
    2.4 How do I listen to windows messages in my Control?
    2.5 How do I programatically change the color of a control?
    2.6 How can I change the Border color of my control?
    2.7Why should I provide a Non-Client border to my Control derived class?
    2.8 How do I provide a 2 pixel 3d border in the Non-Client area of my Control derived class?
    2.9 How do I provide a 1 pixel border in the NonClient area of my Control?
    2.10 How do I invalidate a control including it's NonClient area?
    2.11 How can I implement a scrollable picture box?
    2.12 How can I put Controls, a ProgressBar for example, into a StatusBar?
    2.13 How do I implement an ownerdrawn statusbar so I can put a progressbar in it?
    2.14 How would I change the icon that appears on the toolbox for a custom control?
    2.15 A control's Validating event is hit even when the user clicks on the Close box. How can I avoid this behavior?
    2.16 I would like to prevent validation in my textbox when the user clicks on my Cancel button, how do I do this?
    2.17 Why does adding images to an ImageList in the designer cause them to lose their alpha channel?
    2.18 Why do the XP Icons when drawn using Graphics.DrawImage not draw transparently?
    2.19 Why do the XP Icons that have alpha channel not draw properly when associated with controls like ListView?
    2.20 How do I prevent resizing of my Controls by the user, via Docking or anchoring or manual resizing during design-time?
    2.21 What control do I use to insert Separator lines between Controls in my Dialog?
    2.22 How can I make my controls transparent so the form's background image can show through them?
    2.23 How do I create an editable listbox with an in-place TextBox and Button?
    2.24 How do I determine the width/height of the Non-Client area (like the border in a textbox) of a Control?
    2.25 How can I programmatically manipulate Anchor styles?
    2.26 What is the best method to override in custom Controls to perform custom initialization during runtime?
    2.27I set a Control's Visible property to true and in the immediate next statement, it returns false. Why doesn't setting the Visible property 'take'?
    2.28 I'm trying to make the background of my linklabel transparent so a picturebox will show through it. However, if I set the link label's BackColor property to Transparent the label still has a white background. Why?
    2.29 How do I dynamically load a control from a DLL?
    2.30 What is the (DynamicProperties) item listed on a control's property page in VS.NET?
    2.31 How can I make a Panel or Label semi-transparent on a Windows Form?
    2.32 How can I add a control to a Window Form at runtime?
    2.33 How do I make the arrow keys be accepted by a control (such as a button) and not handled automatically by the framework's focus management?
    2.34 In the property browser for a custom control, how do I disable a property initially, but enable it later based on some other property changing?
    2.35How can I have the control designer create the custom editor by calling the constructor with the additional parameters rather than the default constructor?
    2.36 How do I listen to the screen resolution change in my control?
    2.37 How do I determine which button in a Toolbar is clicked?

3. Windows Forms Data Binding

    3.1 Does MySql work with ADO.NET?
    3.2 Where can I find a discussion of databinding and windows forms?
    3.3 How do I test for a null value in DataView.RowFilter?
    3.4 I don't have SQL Server. Is there any way to run the samples that need SQL server?
    3.5 How can I programmatically move through a dataset that has bound controls?
    3.6 When I try to update a dataset I get an error that the system is unable to find "Table"?
    3.7How can I bind an ArrayList to a DataGrid?
    3.8 When I try to bind two comboboxes to the same datatable, both boxes show the same values, changing one changes the other. How do I make them have distinct values?
    3.9 How do I bind a mdb file to a datagrid?
    3.10 How do I bind a listbox or a combobox to a MDB file?
    3.11 In my databound ComboBox, how do I set the SelectedItem property?
    3.12 What’s the difference between md5(), crc32() and sha1() crypto on PHP?
    3.13 I am populating a ListBox by binding it to an ArrayList. The initial display is OK, but later changes to my ArrayList are not shown in my ListBox. How can I get the changes to show properly?
    3.14 My SQL server runs on a non-default port. How can I specify this port in my connection string?
    3.15 What is a DataSet?
    3.16 How do I add updating support to a dataset?
    3.17 How can I import a CSV file into a DataTable?
    3.18 How can I prevent a ComboBox and DataGrid bound to the same DataTable from sharing the same current position?
    3.19 I get a 'This would cause two bindings in the collection to bind to the same property' error message. What might cause this?
    3.20 How do I bind a TextBox to a nested relation?/a>
    3.21 How do I call a SQL stored procedure?
    3.22 I programatically change a bound TextBox value, but the value does not get pushed back into the bound datasource. How can I make sure the DataSource is updated?
    3.23 Why does the CheckedListBox lose checked state when placed in a tab page that gets hidden and shown?

4.Windows Forms Datagrid

    4.1 How can I programatically set the rowheight of a row in my DataGrid?
    4.2 How can I autosize the rowheights in my datagrid?
    4.3 How do I prevent sorting a single column in my DataGrid?
    4.4 How do I programmatically select a row in DataGrid?
    4.5 How can I translate a point to a cell in the datagrid?
    4.6 I lost the settings in my DataGrid set during design-time?
    4.7How do I prevent a click into the grid highlighting a cell?
    4.8 How do I prevent the datagrid from displaying its append row (the row at the end with an asterisk)?
    4.9 How can I put a combobox in a column of a datagrid?
    4.10 How can I catch a double-click into a column header cell?
    4.11 How can I select the entire row when the user clicks on a cell in the row?
    4.12 How can I get text from a column header in a MouseUp event?
    4.13 How do I hide a column?
    4.14 How do I color a individual cell depending upon its value or some external method?
    4.15 How can I put a checkbox in a column of my DataGrid?
    4.16 How can I restrict the keystrokes that will be accepted in a column of my datagrid?
    4.17 How do I make a field auto increment as new rows are added to my datagrid?
    4.18 How can I prevent a particular cell from being editable?
    4.19 How do I move columns in a datagrid?
    4.20 How can I do cell by cell validation in a datagrid?
    4.21 How do I programmatically determine the selected rows in a datagrid?
    4.22 How can I move rows by dragging the row header cell?
    4.23 I want to do custom handling of special keys such as the Tab key or F2 in the TextBox of a column in the DataGrid. How do I subclass this TextBox to get at it virtual members?
    4.24 How can I have a column of icons in my datagrid?
    4.25 How can I tell if the current row has changed and whether I am on the AddNew row or not?
    4.26 How do I hide the gridlines or set them to a particular color?
    4.27How can I get the selected text in an active gridcell?
    4.28 How do I determine whether a checkbox in my datagrid is checked or not?
    4.29 How can I bind the datagrid to a datasource without using any wizards?
    4.30 How can I bind two datagrids in a Master-Detail relationship?
    4.31 How do I get the row or column that has been clicked on?
    4.32 How do I add an unbound column to my bound datagrid?
    4.33 How do I get the row and column of the current cell in my datagrid?
    4.34 How can I prevent the Enter key from moving to the next cell when the user is actively editing the cell and presses Enter?
    4.35 How do I set the width of a column in my DataGrid?
    4.36 How can I implement OLE Drag & Drop between a DataGrid and another OLE DnD object that supports the Text format?
    4.37 How can I make my DataGrid support a single select mode, and not the default multiselect mode?
    4.38 How can I get celltips or tooltips to vary from cell to cell in my DataGrid?
    4.39 How can I get notification of the changing of a value in a column of comboboxes within my datagrid?
    4.40 How can I make the datagrid have no currentcell?

5.Windows Forms Docking

    5.1 How can I make a control occupy all the client area of a form?
   5.2 How can I make my control automatically grow when the parent form is sized?

6.Windows Forms Keyboard Handling

    6.1 How can I prevent a control from getting a particular keystroke?
   6.2 How can I tell if an ALT, Shift or CTL key is pressed without catching an event?
   6.3 How do I check the state of the virtual keys, Caps lock for example?
    6.4 How can I simulate keyboard input in my application?
   6.5 How can I catch keyboard messages on a application-wide basis?
   6.6 How can I listen for certain keys at the Form level irrespective of which Control has the focus?

7.Windows Forms Layout

    7.1 How can I programmatically set the initial position of a Form so that it is displayed properly after calling ShowDialog()?
   7.2 I have a form with several controls on it. As I size the form, the controls are being resized continuously. Is it possible to postpone changing the controls position until the resizing is complete?

8.Windows Forms Licensing>

    8.1 How does .NET support licensing?
   8.2 How do I find the file version of an EXE?

9.Windows Forms Menus

    9.1 How do I add a context menu to a control?
    9.2 When using the ContextMenu on multiple Controls, how do I know on which Control the right click was performed?
    9.3 How do menu shortcuts work?
    9.4 How do I make the context menu appear only when clicked at certain portions of the Control?
    9.5 How do I prevent the context menu from showing up on certain keyboard keys (like Keys.Apps)?
    9.6 How do I know when a menu is closed/started so that I can refresh my status bar?
    9.7 Is there an Idle event which will get fired from which I could update my menu item's enabled state?
    9.8 How do I cancel a context menu programatically?
    9.9 Is there an easy way to create the "Window" menu that shows the list of child forms open?
    9.10 How can I work around my menu shortcuts from showing up incorrectly when I use Ctrl+Number?
    9.11 How do I control the position of the context menu when it is invoked via the keyboard?
    9.12 How do I disable the default context menu of a textbox?
    9.13 How can I make the context menu to close after a set time interval?
    9.14 How can I add an icon to my menu items?
    9.15 How to add a Separator in a menu?
    9.16 How can I enable the mnemonics (underline) to show when my application is launched?

10.Windows Forms Menus

    10.1 How do I add a context menu to a control?
    10.2 When using the ContextMenu on multiple Controls, how do I know on which Control the right click was performed?
    10.3 How do menu shortcuts work?
    10.4 How do I make the context menu appear only when clicked at certain portions of the Control?
    10.5 How do I prevent the context menu from showing up on certain keyboard keys (like Keys.Apps)?
    10.6 How do I know when a menu is closed/started so that I can refresh my status bar?
    10.7 Is there an Idle event which will get fired from which I could update my menu item's enabled state?

11.Windows Forms from MFC

    11.1 Where can I find a succinct discussion of Windows Forms?
    11.2 When I add a destructor to a class, why isn't it hit when my instantiated object goes out of scope?
    11.3 How do I convert a string to a double or int? What plays the role of atof and atoi in C#?
    11.4 What class or method do I use to retrieve system metrics like the width of a scrollbar?
    11.5 In C++, the code "MyClass ht;" creates an object ht on the stack frame. But in C#, this same code compiles, but gives a runtime error. Why?
    11.6 I need to encode the LParam argument of a mouse message. How do I do MakeLong , HiWord and LoWord type conversions?
    11.7 How do you clear the contents of a list box?

12.Windows Forms from VB6

    12.1 How do I draw a line in VB7 as there is no Line command as there was in VB6?
    12.2 What is the replacement for VB6's SendKeys statement?
    12.3 In VB6, I used control arrays to have a common handler handle events from several controls. How can I do this in Windows Forms?

13.Windows Forms Patterns

    13.1 How do I draw a line in VB7 as there is no Line command as there was in VB6?
    13.2 What is the replacement for VB6's SendKeys statement?
    13.3 In VB6, I used control arrays to have a common handler handle events from several controls. How can I do this in Windows Forms?
    13.4 How to get the hyperlink and the hyperlink text dragged from IE in my Control's drag-drop event?

14.Windows Forms Printing

    14.1 How do I print a form?
    14.2 How do I display the PrintPreview maximized and control its zooming?

15. Windows Forms Resources

    15.1 What are the steps to compiling and using multiple language resources?
    15.2 How do I load a BMP file that has been added to my solution as an embedded resource?
    15.3 Why doesn't a Form containing an ImageList not open in WinRes?
    15.4 Where can I find information on globalization?
    15.5 How can I check if a certain resource is included in a assembly?
    15.6 How can I save a temporary disk file from an embedded string resource?

16. Windows Forms Scrolling

    16.1 How do I add support for custom scrolling to my own user control?
    16.2 Are there any events that get fired when the user scrolls?

17. Windows Forms Tips

    17.1 How do I write a screen saver?
    17.2 How do I determine the screen resolution?
    17.3 How do I determine the working area of a screen without the systemtray area?
    17.4 How do I position my form to the bottom right of the screen when it opens up the first time above the system tray?
    17.5 How do I change my screen's resolution programatically?
    17.6 How do I determine the current date/time?
    17.7 How do I determine the time taken for a long operation that I perform?
    17.8 What are the implications of using the Timer class in System.Timers as opposed to the Timer class in System.Windows.Forms?
    17.9 Is there an easy way to Create/Delete/Move files in the Windows File System?
    17.10 How can I use XP Themes with Windows Forms using the .NET FrameWork 1.1?
    17.11 How can I use XP Themes with Windows Forms using the .NET FrameWork 1.0?
    17.12 How can I use XP Themes with Windows Forms using the .NET FrameWork 1.0?
    17.13 Why would I be getting a NullReferenceException in Windows Forms with no application code in the call stack?
    17.14 How do I change a directory name?
    17.15 How do I beep the computer's speaker in a Windows Form application?
    17.16 How do I use the system clipboard?
    17.17 How do I add an application to the Window's Tray?
    17.18 When I try to catch the Resize event to handle sizing of MDI children, the event is called even before my form's constructor can create the children throwing an exception. How do I avoid this?
    17.19 How can I tell if the user has changed some system preference such as the locale or display settings?
    17.20 Its possible that some of my class members will not be initialized when one of my virtual members gets called even before the constructor. How can I avoid this?
    17.21 In a Hashtable, why doesn't setting the value for an existing key to be null remove the key from the Hashtable?
    17.22 What mechanisms does .Net provide to convert one type to another?
    17.23 How can I display HTML in a Form?
    17.24 How can I shut down/restart the OS from my Windows Forms Application?
    17.25 How can I add a custom verb to the file and folder context menus in the explorer shell?
    17.26 How do I create windows shortcuts on my desktop programatically in .Net?
    17.27 I have a long loop. How can I make my application continue to process events while it is executing this loop?
    17.28 The MessageBox always appears in the center of the screen. How can I change it's location?
    17.29 If I have a button with &Next as the text, the N-accelerator key does not appear until I press Alt. Why?
    17.30 Can working on WinForms and .Net in general get exciting?
    17.31 I get a message 'DragDrop registration' failed. Why?
    17.32 What is the purpose of the [STA Thread] attribute for the Main method of a C# program?
    17.33 I add my application to the Window's Tray, set ShowInTaskBar to false, but the program still appears in the Alt+Tab list.

18.Windows Forms common Dialog

    18.1 How do I use the ColorDialog to pick a color?
    18.2 How do I use the FontDialog class to set a control's font?
    18.3 How do I implement a Folder Browser class?
    18.4 How can I get just the name of a file from the complete path string?
    18.5 How can I get just the extension of a file from the complete path string?
    18.6 How do I use the OpenFileDialog?
    18.7How do I specify the path for the FolderBrowser instance when it opens the first time?

19.Windows Forms ListBox

    19.1 How do I implement Drag and Drop support between ListBoxes?
    19.2 How can I drag file names from Windows Explorer and drop them into a listbox?
    19.3 How do I implement an ownerdrawn listbox?
    19.4 How can I set the width of a listbox to fit the text?

20.Windows Forms ComboBox

    20.1 How do I bind the values of an enum to a ComboBox?
    20.2 How can I programmatically prevent the combobox from dropping?
    20.3 How can I turn off editing in the textbox portion of a ComboBox, restricting the user to selecting only those options in the drop list?
    20.4 How can I adjust the height of the of my ComboBox dropdown?
    20.5 How do I implement an owner drawn combobox?
    20.6 How do I set the width of a combobox to fit the entries in its list?
    20.7 How can I programmatically create a new list for my ComboBox dropdown?

21.Windows Forms Rich TextBox

    21.1 How can I create and save a RTF file?
    21.2 How can I get a string that contains RTF format codes into a RichTextBox?
    21.3 How do I make the RichTextBox support drag and drop?
    21.4 How do I set the color and font in a RichEditBox?
    21.5 How can I change the FontStyle of a selection without losing the styles that are present?
    21.6 How can I programmatically position the cursor on a given line and character of my richtextbox?
    21.7 How can I load an embedded rich text file into a richtextbox?
    21.8 How can I print my rich text?
    21.9 How can I add a hyperlink to a RichTextBox control?

22.Windows Forms Rich ListView

    22.1 How do I add SubItems to a ListView control?
    22.2 When I call ListViewItem.Selected = true;, why doesn't the item get selected?
    22.3 How do I unselect the selected items in a ListView programatically?
    22.4 How can I tell which column (subitem) has been clicked on in my listview?
    22.5 How do I programmatically select an item in my listview?
    22.6 I am trying to programmatically change the ForeColor and BackColor properties of subitems in a listview. Why doesn't this work?
    22.7 How do I implement custom column sorting in a listview?

23.Windows Forms Rich TreeView

    23.1 How do I implement Drag and Drop support between two TreeViews?
    23.2 How do I make the TreeView scroll when I drag an item to the top or bottom?
    23.3 How do I display checkboxes in the nodes of a treeview?
    23.4 When I right-click a tree node, it does not become selected. How can I make it be selected on a right-click?
    23.5 When I get the SelectedNode in the treeview's Click event, it is the old selection. How do I get the newly selected node?
    23.6 How can I get a tooltip to vary from node to node in my treeview?
    23.7 How can I determine the node level of a node in my treeview?
    23.8 How can I populate a TreeView Control with XML Data?
    23.9 How can I clone/copy all the nodes from one TreeView Control to another?
    23.10 How do I programmatically select a node in a TreeView control?
    23.11 Can I select multiple nodes in a TreeView Control?
    23.12 How can I display a context menu when the user right-clicks on a node in the TreeView control?
    23.13 How can I ensure that a node is selected when the user clicks along the line of a node?

24.Windows Forms Button

    24.1 How do I autosize a button to fit its text?
    24.2 How can I decorate a button face with custom drawing?
    24.3 How can I put a bitmap or icon on a button face?
    24.4 How can I trigger a button click event?
    24.5 How can I get button to fire a click event at specific time intervals while the mouse is down like a scrollbar button?

25.Windows Forms Rich TabControl

    25.1 How do color the tabs on my TabControl?
    25.2 How do I programatically select a Tab Page?
    25.3 Why do the order of the tabs keep changing when opening and closing the Form?
    25.4 How do I force the focus to be on a text box in a tab page when the application gets loaded?
    25.5 or a TabControl, how do I make the tabs on the tab pages appear on the bottom instead of on the right?
    25.6 How do I use code to insert or delete tabpages in a TabControl?
    25.7 How do I dynamically hide/unhide tabs in a TabControl?
    25.8 How do I prevent the user from changing the selected tab page?
    25.9 How can I drag and drop TabPages between TabControls?

26.Windows Forms TextBox

    26.1 How can I prevent the beep when enter is hit in textbox?
    26.2 How do I disable pasting into a TextBox (via Ctrl + V and the context menu)?
    26.3 How can I disable the right-click context menu in my textbox?
    26.4 How do I format numbers, dates and currencies in a TextBox?
    26.5 How do I browse for, and read a text file into an TextBox?
    26.6 How do I send a EM_XXXX message to a textbox to get some value such as line index in C#?
    26.7 How do I prevent a control from receiving focus when it receives a mouseclick?
    26.8 How do I make my textbox use all upper (or lower) case characters?
    26.9 I have a delete key shortcut for my main menu. When my textbox is being edited, pressing delete activates this menu items instead of being processed by the TextBox. How can I get my TextBox to handle this delete?
    26.10 How can I use a TextBox to enter a password?
    26.11 How can I place a TextBox in overwrite mode instead of insert mode?
    26.12 How can I make a ReadOnly TextBox ignore the mousedowns so that you cannot scroll the text or set the cursor?
    26.13 How can I restrict the characters that my textbox can accept?
    26.14 How do I set several lines into a multiline textbox?
    26.15 When I set a TextBox to Readonly or set Enabled to false, the text color is gray. How can I force it to be the color specified in the ForeColor property of the TextBox.
    26.16 How can I make the focus move to the next control when the user presses the Enter key in a TextBox?

27.Windows Forms Cursors

    27.1 I set the wait cursor using Cursor.Current = Cursors.WaitCursor;. Why does does it disappear before I want it to?
    27.2 How do I change the cursor for a control?
    27.3 How to convert a Cursor class to a .cur file?
    27.4 How to load and display a cursor from a resource manifest?

28.Windows Forms WebBrowser

    28.1 How can I host a WebBrowser control in a Windows Form?
    28.2 How can I enable editing for the WebBrowser?
    28.3 How can I catch the BeforeNavigate2 event?

29.Windows Forms PictureBox

    29.1 How can I place a border around a PictureBox?
    29.2 How can I copy a bitmap from the clipboard to a PictureBox?
    29.3 How can I copy and paste images/graphs etc from MS Office to a PictureBox?

30. Windows Forms Form

    30.1 How can I programmatically maximize or minimize a form?
    30.2 How can I display a pop up a confirmation dialog when the user closes the form?
    30.3 How can I center my form?
    30.4 How do I prevent users from resizing a form?
    30.5 How do I programmatically set an image as Form's Icon ?
    30.6 How can I add items to the System Menu of a form.
    30.7How can I have a form with no title bar, but yet keep the resizing borders?
    30.8 I don't want to have the Close box on my form's title bar. How do I remove this system menu box?
    30.9 How do I change my application's icon?
    30.10 How can I tell if a form is closed from the controlbox (system menu) or from a call to Form.Close?
    30.11 I have two forms. How can I access a textbox on one form from the other form?
    30.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)?
    30.13 How can I display a form that is 'TopMost' for only my application, but not other applications?
    30.14 How do I automatically resize the Form when the screen resolution changes between design-time and runtime?
    30.15 How can I ensure that my form will always be on the desktop?
    30.16 How can I restrict or control the size of my form?
    30.17 How can I prevent a form from being shown in the taskbar?
    30.18 How do I prevent a user from moving a form at run time?
    30.19 How can I create a non rectangular form?
    30.20 How can I make my form cover the whole screen including the TaskBar?
    30.21 How can I move a Borderless form?
    30.22 How do I force a Windows Form application to exit?
    30.23 How do I set the default button for a form?
    30.24 How do I get an HWND for a form?
    30.25 How can I detect if the user clicks into another window from my modal dialog?
    30.26 How do I create a form with no border?
    30.27How do I prevent a Form from closing when the user clicks on the close button on the form's system menu?
    30.28 How do I display a splash screen type form, one with only client area (no border or titlebar)?
    30.29 How do I get the window handle (HWND) of my form or control?
    30.30 How can I make sure I don't open a second instance modeless dialog that is already opened from my main form?
    30.31 Is there a way to halt a screen from painting until all the controls on the form are initialized?
    30.32 How do I return values from a form?
    30.33 How can I easily manage whether controls on my form are readonly or not?
    30.34The controls that I've try to add to my form at runtime don't show up. What's wrong?
    30.35Setting Form.Visible to false does not make my main form start up invisibly. How can I make my main form start up invisibly?
    30.36 How to make a form transparent?
    30.37 How can I create an instance of a Form class just from knowing its name in a string?

31.Windows Forms MDI

    31.1 How can I create an MDI application in the .NET framework with C#?
    31.2 I have an MDI application with several child forms. The child form's Activated event is not being fired consistently as different child forms are activated. What's wrong?
    31.3 In an MDI application, the MDI child's MaximumSize and MinimumSize properties don't seem to take effect. How can I restrict the size of my MDI child?
    31.4 How do I check to see if a child form is already displayed so I don't have two instances showing?
    31.5 I need to perform certain custom processing whenever an MDI child form is added to/removed from the MDIContainer form. How do I determine this?
    31.6How do I paint in my mdi container, a logo, for example?
    31.7 How do I make my child Form fill the entire mdi client without being maximized?
    31.8 How can I change the background of my MDI Client container?

32.Windows Forms In IE

    32.1 How do I clear the download cache in my client machine?
    32.2 How can I use a WinForms Control in IE?
    32.3 What are some common gotchas while trying to embed a Windows Forms Control in IE?
    32.4 What are some common UI limitations while running code in the Internet Zone?

33. GDI+Bitmaps & Images

    33.1 How do I create a "Negative" representation of my image?
    33.2 How do I programmatically load, modify and save a bitmap?
    33.3 How do I draw an image with a gray scale?
    33.4 How do I draw my bitmap in a disabled state?
    33.5 How can I programmatically create a bitmap?
    33.6 How can I swap colors in a bitmap or icon?
    33.7 How do I create a new image off a base image with certain portions of the base image modified, in code?
    33.8 How do I extract a Bitmap from an icon of a specific size?
    33.9 How to draw a shadow for a given transparent image?
    33.10 How to draw a faded image?
    33.11 How do I overlay one bitmap over another?
    33.12 How do I get the color of a pixel in my bitmap?
    33.13 How do I capture a bitmap of my form?
    33.14 How can I create a thumbnail of a bitmap?
    33.15 How do I create a new bitmap with a new size based on an existing bitmap?
    33.16 How can I read individual frames from an animated image?

34. GDI+ Fonts

    34.1 How do I set the font for a control?
    34.2 When I try to set a particular font style, say italics, I get an error message "Property cannot be assigned to -- it is read only". How can I set this read only property?
    34.3 How can I draw font samples from the available fonts?
    34.4 MeasureString seems to have problems with white space and punctuation. Is there a better method to use?
    34.5 How can I draw a single line of text with different fonts using DrawString?
    34.6 How do I display adjacent text?
    34.7 How can I fill a combobox with available fonts?

35. GDI+ Color

    35.1 I need to save a color as a string and be able to retrieve it. How can I do this?
    35.2 How do I convert a color to integer and vice-versa?
    35.3 How do I desaturate a specific color?
    35.4 How do you translate a HSB color to RGB?
    35.5 Is there a way to force some contrast between two colors (like background color and foreground color)?
    35.6 What is alpha blending?
    35.7 Is there a way to find out the brightness of a Color?
    35.8 How can a translate an OLE_COLOR into a GDI+ Color object?

36. GDI+ Brushes

    36.1 I need to save a color as a string and be able to retrieve it. How can I do this?
    36.2 How do I convert a color to integer and vice-versa?
    36.3 How do I desaturate a specific color?

37. GDI Drawing Tips

    37.1 Where can I see a basic tutorial on GDI+?
    37.2 What are some things to remember when drawing in Window Forms?
    37.3 When can I not use AutoScrolling? In other words why would I ever need any other form of autoscrolling?
    37.4 Are AutoScrolling bounds setup in World or Device coordinates?
    37.5 Why am I not being able to set a Color.Transparent color as a background to my control?
    37.6 Why does a Control not draw transparent even after setting it's BackColor to Transparent?
    37.7 How can I get the screen resolution of my display?
    37.8 How do I draw rotated text?
    37.9 Why does my transparent Panel whose parent has a gradient background flicker a lot when resized?
    37.10 How do I get a count of the gdi handles currently in use in my application?
    37.11 How can I minimize flickering when drawing a control?
    37.12 How do I draw circles, rectangles, lines and text?
    37.13 How do I get a snapshot of my desktop?
    37.14 How can I draw without handling a paint message?

38. GDI From GDI

    38.1 How does text drawing differ between GDI+ and GDI?
    38.2 How do I do XOR-type-drawing (SetROP2-Function in MFC) in GDI+?
    38.3 Can I mix GDI and GDI+ drawing in my application?
    38.4 How do the Win32 System Colors map to the colors provided by System.Drawing.SystemColors?

39. GDI+ Paths & Regions

    39.1 What is a GraphicsPath?
    39.2 How can I create non-rectangular windows?
    39.3 Is there a imagemap like control in Windows Forms?

40. GDI+ Pens

    40.1 What is a GraphicsPath?
    40.2 How can I create non-rectangular windows?

41. Interoperability Win32

    41.1 How to add an extern reference to a Win32 API?
    41.2 How do I hit a web page from within a button handler in my Windows Forms application?
    41.3 How can I capture output from an arbitrary console application from within my Window Form application?
    41.4 How do I convert LParam in a message from IntPtr to the Win32 type?
    41.5 How do I maximize my main window?
    41.6 How can I use 'Hooks' in .NET?
    41.7 Is there any way to get to the Edit control or the editHandle of a ComboBox using safe code?
    41.8 How do I get the associated Icon from a file in the file system?
    41.9 How can I get the directory name for "My Documents" folder and other system directories?
    41.10 How can I show a form without making it active?
    41.11 How to access a winapi that has a LPTSTR and maxlen param?
    41.12 How do I use an exported function (extern "C") from a legacy DLL?
    41.13 How can I draw outside my WIndow?
    41.14 Is there any way to get detailed error information for Win32 errors when using Platform Invoke?

42. Interoperability Win32

    42.1 Are there any tools that allow me to view the rich meta data that .NET assemblies have? Is there a OLEVIEW equivalent for .NET?
    42.2 How do I disassemble a .net assembly (dll/exe) into the IL format?
    42.3 How do I create a dll/exe off a previously diassembled .il file?
    42.4 How can I launch ILDASM from the VS.NET 2003 IDE?

43. Design Time Serialization

    43.1 How to make my Component add itself to the contained Form's IContainer list?
    43.2 How do I prevent the default values of my Localized properties form being set?
    43.3 How do I force the changes in base class fields to be serialized via a base class property in the inherited type's designer?

44. Design Time Custom Designers

    44.1 I have created a usercontrol and a designer, How can i debug the designer?
    44.2 How can I insert custom menu items (verbs) into my Component/Control designer's Context Menu in design time?
    44.3 How do I control the state of my custom verb in my designer?
    44.4 How do I restrict my Container Control to parent only certain types of Controls, and vice-versa, during design-time?
    44.5 How do I prevent the Designer-Grid from being drawn on my Container Control during design-time?
    44.6 How do I get Mouse Messages on my Control during design-time?
    44.7 Can I do some custom drawing on my control designer's surface during design-time?
    44.8 How can I know when a Control/Component has been selected in the designer surface?
    44.9 How do I prevent resizing of my Control in the designer?