jtran007
asked on
c# create dialog box
Hi,
How can I choose dialogbox from toolbox?
Thanks,
JT
How can I choose dialogbox from toolbox?
Thanks,
JT
Which dialog box? Open, Save, Color, Folder and Font dialogs should all be available in the toolbox under the "Dialogs" heading.
ASKER
Hi,
Customized dialog which just have label and one button.
Thannks,
JT
Customized dialog which just have label and one button.
Thannks,
JT
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you are talking about MessageBox - you don't need to select it from the toolbox. You just write in your code:
MessageBox.Show("your message", other options)
There is number of overloads for the static Show method. You may indicate buttons, icins, default button etc.
See:
http://msdn.microsoft.com/en-us/library/system.windows.forms.messagebox.show(v=VS.80).aspx
MessageBox.Show("your message", other options)
There is number of overloads for the static Show method. You may indicate buttons, icins, default button etc.
See:
http://msdn.microsoft.com/en-us/library/system.windows.forms.messagebox.show(v=VS.80).aspx
Just two examples (both show OK button:
MessageBox.Show("Hello");
MessageBox.Show("Hello","M y Dialog Caption", MessageBoxButtons.OK);
MessageBox.Show("Hello");
MessageBox.Show("Hello","M
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Just seen a typo in my earlier comment
//Code halts here until the form is shown
should be
//Code halts here until the form is closed
//Code halts here until the form is shown
should be
//Code halts here until the form is closed
ASKER
Thanks,
JT
JT