Reputation: 1031
I'm trying to make a winforms version of a program I originally wrote as a console app.
Here's a picture of my current progress. I've made the text boxes and buttons (with a read-only textbox for output). I don't know how to actually make the buttons function.
I want it to work the same as the console version did (ask for input w/ error messages for anything that isn't an positive integer, and calculate the output), but I've never done winforms before so I'm at a roadblock.
Upvotes: 2
Views: 209
Reputation: 134275
As a beginner to WinForms, you would benefit greatly from reading up on the subject. For example:
Upvotes: 4
Reputation: 33183
Just double click the button and it will take you to the code behind page. You can do something as simple as add a textbox (TextBox1) add a button (Button1)
Double click button on your winform and it will take you to the click event of the button.
In the code behind type this:
TextBox1.Text = "Hello World!";
Now run your app and click the button.
Upvotes: 3