i have a window form that has usename and a password but i cant get my 2 buttons submit and cancel to work dose anyone know where i could look to learn more on how to make my buttons work ty all
alura
0
Newbie Poster
Recommended Answers
Jump to PostYou need to have a DialogResult item such as
DialogResult dr = newForm.ShowDialog(); if (dr == DialogResult.OK) {//do something}
Then in your prompt you need to set the buttons to have the correct dialogue result values. You can either set these by code or by the property …
Jump to Postusually double clicking the buttons in the ide form design mode will automatically generate code for button events :)
All 5 Replies
asmith3006
0
Light Poster
plazmo
1
Posting Whiz in Training
asmith3006
0
Light Poster
plazmo
1
Posting Whiz in Training
asmith3006
0
Light 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.