home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Problem beginning plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="jmhecker" data-source="post: 540971" data-attributes="member: 86959"><p>WileECoyote:</p><p></p><p>I have figured out how to reference the buttons in this example without having to Cast the buttons at all.</p><p>[CODE]</p><p> If control Is buttonOne Then</p><p> OnButtonOne()</p><p> End If</p><p> If control Is buttonTwo Then</p><p> OnButtonTwo()</p><p> End If</p><p>[/CODE]</p><p></p><p>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.</p></blockquote><p></p>
[QUOTE="jmhecker, post: 540971, member: 86959"] 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. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Problem beginning plugin
Contact us
RSS
Top
Bottom