Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
How to get a Pop-Up inputbox using a ToolStripMenuItem ?
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Erwin Meulen
11y
1.2k
1
Reply
I got a working program (Form1.xx) and added a menuStrip1 to it.
The first was the quit with the instruction;
private void
quitToolStripMenuItem_Click(
object
sender,
EventArgs
e)
{
this.Dispose();
}
Okay, fine thats working.
Now I want to attach "something" to:
private void
enterGetalToolStripMenuItem_Click(
object
sender,
EventArgs
e);
What I want to attach is a "simple" Pop-Up InputBox in C# to enter a number or letters, and after press the OK button
the Pop-Up Console must close and I want to use the variable in my program again.
Very simple to do in Visual Basic, but C# is driving me crazy. I read solutions with form in form samples and also a
solution to use the command:
using
Microsoft.VisualBasic;
Seems to be simple, but I really don't get it to write more then 90 lines of coding to get it working, if it will work ?
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
How to set border width of combobox in c# windows Form Appli
Build a webbrowser without using Webbrowser control