Click here to Skip to main content
15,896,154 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can I software-trigger WndProc(ref Message m) to execute? Pin
BillWoodruff17-Sep-19 17:49
professionalBillWoodruff17-Sep-19 17:49 
AnswerRe: How can I software-trigger WndProc(ref Message m) to execute? Pin
BillWoodruff17-Sep-19 17:57
professionalBillWoodruff17-Sep-19 17:57 
QuestionUsing buttons on a form. Pin
Brian_TheLion15-Sep-19 17:48
Brian_TheLion15-Sep-19 17:48 
AnswerRe: Using buttons on a form. Pin
OriginalGriff15-Sep-19 20:43
mveOriginalGriff15-Sep-19 20:43 
AnswerRe: Using buttons on a form. Pin
GenJerDan15-Sep-19 20:55
GenJerDan15-Sep-19 20:55 
GeneralRe: Using buttons on a form. Pin
BillWoodruff16-Sep-19 4:32
professionalBillWoodruff16-Sep-19 4:32 
AnswerRe: Using buttons on a form. Pin
BillWoodruff16-Sep-19 4:30
professionalBillWoodruff16-Sep-19 4:30 
AnswerRe: Using buttons on a form. Pin
Brian_TheLion16-Sep-19 16:20
Brian_TheLion16-Sep-19 16:20 
Thanks Bill and RenJerDan for your replies.

To go more into detail.
Once the user has pressed the start button a d the question is displayed to the user then the user has a choice of clicking on the YES or the NO buttons.

For a forms program once the program has displayed the question it is waiting for the user to press a button on the form, but if the user pressed the YES button then control switches to the Yes_Click code which is just YN=1 but then I need to return to the main code to make a decision depending on what button was pressed. It's not like the main code will wait for the user to make a choice before continuing.
I tried to create a loop that continues until YN is equal to anything other than zero but while in the loop it is not checking on the buttons on the form, which Makes me wonder how arcade games work as they are looping to provide animation.
GeneralRe: Using buttons on a form. Pin
BillWoodruff16-Sep-19 16:36
professionalBillWoodruff16-Sep-19 16:36 
GeneralRe: Using buttons on a form. Pin
Brian_TheLion16-Sep-19 20:40
Brian_TheLion16-Sep-19 20:40 
AnswerRe: Using buttons on a form. Pin
BillWoodruff16-Sep-19 22:49
professionalBillWoodruff16-Sep-19 22:49 
GeneralRe: Using buttons on a form. Pin
Brian_TheLion17-Sep-19 20:03
Brian_TheLion17-Sep-19 20:03 
QuestionFile format not proper for excel mail attachment in c# Pin
Member 1225501213-Sep-19 8:33
Member 1225501213-Sep-19 8:33 
AnswerRe: File format not proper for excel mail attachment in c# Pin
MadMyche13-Sep-19 11:59
professionalMadMyche13-Sep-19 11:59 
QuestionHow to get the Websocketdata from server? Pin
Member 1457084312-Sep-19 6:46
Member 1457084312-Sep-19 6:46 
AnswerRe: How to get the Websocketdata from server? Pin
Richard MacCutchan12-Sep-19 6:49
mveRichard MacCutchan12-Sep-19 6:49 
GeneralRe: How to get the Websocketdata from server? Pin
Member 1457084312-Sep-19 7:14
Member 1457084312-Sep-19 7:14 
GeneralRe: How to get the Websocketdata from server? Pin
Richard MacCutchan12-Sep-19 11:15
mveRichard MacCutchan12-Sep-19 11:15 
AnswerRe: How to get the Websocketdata from server? Pin
ZurdoDev12-Sep-19 9:48
professionalZurdoDev12-Sep-19 9:48 
AnswerRe: How to get the Websocketdata from server? Pin
Gerry Schmitz12-Sep-19 20:36
mveGerry Schmitz12-Sep-19 20:36 
AnswerRe: How to get the Websocketdata from server? Pin
OriginalGriff13-Sep-19 0:25
mveOriginalGriff13-Sep-19 0:25 
QuestionWPF or Winforms Pin
N.Subramanian12-Sep-19 0:12
N.Subramanian12-Sep-19 0:12 
AnswerRe: WPF or Winforms Pin
OriginalGriff12-Sep-19 0:15
mveOriginalGriff12-Sep-19 0:15 
AnswerRe: WPF or Winforms Pin
Richard MacCutchan12-Sep-19 3:18
mveRichard MacCutchan12-Sep-19 3:18 
AnswerRe: WPF or Winforms Pin
Gerry Schmitz12-Sep-19 6:13
mveGerry Schmitz12-Sep-19 6:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.