Reply to thread

Okay, got back to the computer to start getting this going again, and it appears I am a bit rusty.  One more issue is causing me to prevent compiling the 'basic example' plugin.  This is the sub causing the problem:


[CODE]

        Protected Overloads Overrides Sub OnClicked(ByVal controlId As Integer, ByVal control As GUIControl, ByVal actionType As MediaPortal.GUI.Library.Action.ActionType)

            If [U]control = buttonOne[/U] Then

                OnButtonOne()

            End If

            If [U]control = buttonTwo[/U] Then

                OnButtonTwo()

            End If

            MyBase.OnClicked(controlId, control, actionType)

        End Sub

[/CODE]


It is throwing an error of:

[CODE]

Operator '=' is not defined for types 'MediaPortal.GUI.Library.GUIControl' and MediaPortal.GUI.Library.GUIButtonControl'

[/CODE]


It seems that VB.Net is unable to compare buttomOne and control.  So, I tried casting types back and forth to see if perhaps VB.Net was just not seeing them properly or something, to no avail.


Does anyone have any ideas?


EDIT:

I underlined the 2 things that have blue squiggly underlines in the VB.Net IDE.


Top Bottom