Click here to Skip to main content
15,902,911 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i doing window application in c#. i want to show a popup when a button is click.in this pop up i input something and save to the database.i tried in message box for input and save. but i didn't.i use panel and another form it perfectly but i want when popup is open then i am not modify anything until the popup is close. but incase of panel and new other form is show like popup but i modify any other page. so kindly give solution.


i require ,in windows form a popup is show when button is clicked.after that i input something in textbox and save button which is present in pop up .so how to open a pop up in window form. .not message box



thanks in advance
Posted
Updated 8-Sep-15 18:47pm
v4

@ Member 11849346

What you want is "A popup with TextBox and Save button"

You can do it by just following these steps:
1. Create A New Form suppose frmPopUp.cs
2. Place TextBoxe(s), Button(s)
3. Now, Suppose that You want it to Open From the FOrm "frmMain.cs" then Write this Code in "frmMain.cs"

C#
frmPopUp  popupForm = new frmPopup();
popupForm.ShowDialog();


This Will Open frmPopup and would not allow you to interact with frmMaint until you close it...

Have a try!!!
 
Share this answer
 
What is your exact requirement?
 
Share this answer
 
Comments
Philippe Mori 9-Sep-15 8:32am    
Add a comment to the question if you are not giving an anwser.
VR Karthikeyan 9-Sep-15 23:54pm    
I accidently did it. Thank you

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