Repost

  • Thread starter Thread starter Harry Simpson
  • Start date Start date
H

Harry Simpson

I'm trying to programmatically set the Checked property of a menu item to
true. I always get an "internal error" when i try to execute the following
code

Private Sub SetConnectedPic(ByVal isconnected As Boolean)
Try
If isconnected = True Then
MenuItem2.Checked = True
Else
MenuItem2.Checked = False
End If
Catch ex As Exception
End Try
End Sub

Can this be set during runtime? Any ideas?

TIA
Harry
 
I replied to your first post. Maybe you want to continue the discussion in
that thread.

Cheers
Daniel
 
Daniel,

Welp I feel like a prat!
Somehow I overlooked your excellent post. I need to buy you a pint!
Appreciate the reply and yes, it did work just fine. Don't know why the
other wasn't working but will figure it out. It was just good to see it
work.

Thanks
Harry
 
Back
Top