Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to add a Customer Information dialog box in C# Application.
Posted

1 solution

Part one: Create the dialog.
1) Right click your project in the Solution explorer.
2) Select "Add" then "New Windows Form".
3) When the dialog appears, change the name to "CustomerInfoDialog.cs" and press "Add"
4) Add your controls and code to your dialog.

Part two: Display the dialog:
1) In the method where you want to bring up the dialog, add the code:
CustomerInfoDialog cid = new CustomerInfoDialog();
if (cid.ShowDialog() == DialogResult.OK)
   {
   ...
   }

You may want to add info to your dialog, or take info from your dialog after display - I can't help you there since I don't know what you are trying to do with it!
 
Share this answer
 
Comments
Espen Harlinn 30-Jan-11 4:24am    
5+ Good answer
Sergey Alexandrovich Kryukov 30-Jan-11 22:19pm    
Yes, it's good - a 5.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900