I'm trying to get the following code to work -
Private Sub RadButton5_Clic k(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles RadButton5.Clic k
With Me.RadComboBox1
If Me.RadComboBox1 .FindItemExact( Me.RadComboBox1 .Text) Is Nothing Then
Dim item1 As Telerik.WinCont rols.UI.RadComb oBoxItem = New Telerik.WinCont rols.UI.RadComb oBoxItem(Me.Rad ComboBox1.Text)
.Items.Add(item 1)
End If
End With
Dim rd As VncSharp.Remote Desktop = New VncSharp.Remote Desktop
rd.ConnectCompl ete += New ConnectComplete Handler(Connect Complete)
rd.ConnectionLo st += New EventHandler(Co nnectionLost)
rd.Connect(RadC omboBox1.Text)
End Sub
This last few lines tell me that I'm not declaring or using events correctly, but I have no idea how to declare or apply this event. Can someone show me how and explain in detail why? I've run into this a few times now, and I think it's a big piece that I'm missing.
Thanks in advance!
Jim
Private Sub RadButton5_Clic k(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles RadButton5.Clic k
With Me.RadComboBox1
If Me.RadComboBox1 .FindItemExact( Me.RadComboBox1 .Text) Is Nothing Then
Dim item1 As Telerik.WinCont rols.UI.RadComb oBoxItem = New Telerik.WinCont rols.UI.RadComb oBoxItem(Me.Rad ComboBox1.Text)
.Items.Add(item 1)
End If
End With
Dim rd As VncSharp.Remote Desktop = New VncSharp.Remote Desktop
rd.ConnectCompl ete += New ConnectComplete Handler(Connect Complete)
rd.ConnectionLo st += New EventHandler(Co nnectionLost)
rd.Connect(RadC omboBox1.Text)
End Sub
This last few lines tell me that I'm not declaring or using events correctly, but I have no idea how to declare or apply this event. Can someone show me how and explain in detail why? I've run into this a few times now, and I think it's a big piece that I'm missing.
Thanks in advance!
Jim
Comment