When i change the checked into another radio button, i wanna show a message and when user answers no, i want there will be any changing in my form but in my case i do get any changes.
In a word., is there any way to prevent checked changes on radio button with message box?
here it is come of my code and i put it in event checked == false
If lblGrandTotal.Text <> "0" Then
If MessageBox.Show("?", "Pertanyaan", MessageBoxButtons.YesNo, MessageBoxIcon.Question) = DialogResult.No Then
rbPenjualan.Checked = True
rbPenjualan.CausesValidation = False
Else
开发者_Go百科 lvNota.Clear()
lblGrandTotal.Text = "0"
statuscekjual = False
End If
End If
You could try putting the code in the MouseDown event for the radio button.
You can handle CheckedChanged and check the button back conditionally
加载中,请稍侯......
精彩评论