c# - How to solve the event can only occur on right hand of += or -= -


i working on c# on wpf application.i have written following code

public partial class mainwindow : window {     public mainwindow()     {         radiobutton daw;         initializecomponent();          if (qoneone.checked == true)         {             messagebox.show("correct");          }     } 

a error occurs says

event qoneone.checked can appear on left hand side of += or -=

you have check property qoneone.ischecked == true.

ischecked property can read or write or change current state of radiobutton.

checked event, can attach handler trough += can when radiobutton state change.


Comments

Popular posts from this blog

swift - Button on Table View Cell connected to local function -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

c# - ajax - How to receive data both html and json from server? -