Normal
WileECoyote:I have figured out how to reference the buttons in this example without having to Cast the buttons at all.[CODE] If control Is buttonOne Then OnButtonOne() End If If control Is buttonTwo Then OnButtonTwo() End If[/CODE]Using the "Is" Operator (which I found NO documentation on) seems to do the trick. I compiled and tested, and it worked flawlessly. I took another plugin that was written in C#, and converted it to VB.Net using SharpDevelop, and that converted it to what is shown above, rather than having "Is" be "=" as the online converters were doing.
WileECoyote:
I have figured out how to reference the buttons in this example without having to Cast the buttons at all.
[CODE]
If control Is buttonOne Then
OnButtonOne()
End If
If control Is buttonTwo Then
OnButtonTwo()
[/CODE]
Using the "Is" Operator (which I found NO documentation on) seems to do the trick. I compiled and tested, and it worked flawlessly. I took another plugin that was written in C#, and converted it to VB.Net using SharpDevelop, and that converted it to what is shown above, rather than having "Is" be "=" as the online converters were doing.