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
Writing a plugin using VB .NET
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="FredP42" data-source="post: 510050" data-attributes="member: 91354"><p>Hello, I never tried to write a plugin in VB but it should be easy to translate the example.</p><p>I only have VS C# Express at home so I can not try it, but creating the project, adding the references, implementing the interface should be pretty similar?</p><p>Which instructions are giving you troubles?</p><p></p><p>For the directory I think that if your files are only related to a skin it is better to keep it in the skin directory.</p><p>Maybe one exception is that if you want to keep the settings when reinstalling the skin, in this case I will put it in the config directory (see example).</p><p>There is an enum in the MediaPortal.Configuration.Config called Dir which gives all the directories.</p><p>Then (C#) you do this to get the path to the file:</p><p>[CODE] string file = Config.GetFile(Config.Dir.Config, "myfile.xml");[/CODE]</p></blockquote><p></p>
[QUOTE="FredP42, post: 510050, member: 91354"] Hello, I never tried to write a plugin in VB but it should be easy to translate the example. I only have VS C# Express at home so I can not try it, but creating the project, adding the references, implementing the interface should be pretty similar? Which instructions are giving you troubles? For the directory I think that if your files are only related to a skin it is better to keep it in the skin directory. Maybe one exception is that if you want to keep the settings when reinstalling the skin, in this case I will put it in the config directory (see example). There is an enum in the MediaPortal.Configuration.Config called Dir which gives all the directories. Then (C#) you do this to get the path to the file: [CODE] string file = Config.GetFile(Config.Dir.Config, "myfile.xml");[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Writing a plugin using VB .NET
Contact us
RSS
Top
Bottom