Dear friends!
I have a button in form1, and now I want when clicking on it, a new form (form2) will appear. There's a text box on this form2. User will input a integer here. After user's pressing Enter, this integer will be given to a function into Form1.cs and disappeared. I've tried some ways to get the number but unsuccessfully. Any suggestion?
Thanks in advanced!
mario285 is offline Add to mario285's Reputation Report Post Reply With Quote
svatstika
0
Newbie Poster
Recommended Answers
Jump to PostHi svatstika and welcome to DaniWeb :)
The easiest way to do this is to provide a reference to the input in your forms like so:
public partial class Form1: Form { // create a property to store the input from the user public string UserInput …
All 3 Replies
darkagn
315
Veteran Poster
Featured Poster
ddanbe
commented:
Nice.
+8
svatstika
0
Newbie Poster
darkagn
315
Veteran Poster
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.