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
Development
General Development (no feature request here!)
Progress Bar
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="vcrapps" data-source="post: 896455" data-attributes="member: 120893"><p>Hello, I am trying to make a progress bar work within my TV Management program, I gotten the XML file together and declared it within the C# code, but haven't gotten the actual code to work properly. I keep getting the error that "Value is not in the Mediaportal Library" </p><p> </p><p> string[] files = Directory.GetFiles(Read);</p><p> int count = files.Length;</p><p> int current = 1;</p><p> progressBar1.Value = 1;</p><p> </p><p> foreach (string file in files)</p><p> {</p><p> var fileName = Path.GetFileName(file);</p><p> var destFile = Path.Combine(ReadDest, fileName);</p><p> current++;</p><p> progressBar1.Value = current / count * 30 + 70; </p><p> File.Copy(file, destFile, true);</p></blockquote><p></p>
[QUOTE="vcrapps, post: 896455, member: 120893"] Hello, I am trying to make a progress bar work within my TV Management program, I gotten the XML file together and declared it within the C# code, but haven't gotten the actual code to work properly. I keep getting the error that "Value is not in the Mediaportal Library" string[] files = Directory.GetFiles(Read); int count = files.Length; int current = 1; progressBar1.Value = 1; foreach (string file in files) { var fileName = Path.GetFileName(file); var destFile = Path.Combine(ReadDest, fileName); current++; progressBar1.Value = current / count * 30 + 70; File.Copy(file, destFile, true); [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Progress Bar
Contact us
RSS
Top
Bottom