I am working in C# 2005 1.Modal Dialog and Modeless Dialog in C# Modal Dialog and Modeless Dialog in C# : Class Form2 } class Form1 frm.Show() ;// For Modeless Dialog 2.C# MDI forms Wecan display more than one forms at a time in MDI forms. For the parent Form, we have to enable the IsMdiContainer property as true. and then drill down in to the coding as follows : class ChildForm private void mnuShowChildForm_Click()
while opening the chm file, sometimes it displays the dialog with "always ask before opening this file" check box. if this check box is not selected by us then it will not display the chm contents. So To display the chm file contents, we must enable "always ask before opening this file" check box. 4.CheckOnClick property in a menu item Sometimes we may need Checked property in a menuitem. For Instance, if the user selects the menuitem then it will show the Checked mark in a menuitem and if we select once again, the checkbox will if we enable this property, then we can display the check mark and we can change the execution behavior also based on the check mark. CheckedState property is set to true or false based on whether the check mark is currently displayed in a menuitem or not. This feature can be aptly used in the following Scenario. if we have MDI parent form, based on the checked selection of the menuitem we have to display the MDI child form.
hided... By default set the menuitem's CheckOnClick property as true and Checked property as false. For doing this one , add the menu event handler as follows : void mnuShowChildForm_Click()
|
Wednesday, September 26, 2007
C# Tips
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment