Saving TrackBar value *Solved
Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
4 posts
Page 1 of 1
Hi, Now i know to save text, color and font data but now i want to know to save value of TrackBar, i mean i`m using TrackBars on my software for volume control and for balance control, But now i want to save all my changes of TrackBar value, I mean if i move volume and balance TrackBars then i want to save those settings which to use for next time opening the program, Please help me, If you help me you will be thanked a lot wahooo;
- Tvs Praveen
I got solution for this from codenstuff, Thanks a lot codenstuff wahooo;
- Tvs Praveen
I got solution for this from codenstuff, Thanks a lot codenstuff wahooo;
Last edited by tvs praveen on Tue Feb 09, 2010 4:44 pm, edited 2 times in total.
Hello,
You can do this by creating a setting, for example "Track1" and then inside the "TrackBar_Scroll" event add this code:
You can do this by creating a setting, for example "Track1" and then inside the "TrackBar_Scroll" event add this code:
Code: Select all
That will save the trackbar value everytime you move it and to restore the trackbar value when you restart your application use something like this in the "Form_Load" event:My.Settings.Track1 = TrackBar1.Value
My.Settings.Save()
Code: Select all
And thats it cooll;TrackBar1.Value = Convert.ToString(My.Settings.Track1)
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
CodenStuff wrote:Hello,
You can do this by creating a setting, for example "Track1" and then inside the "TrackBar_Scroll" event add this code:
Code: Select allThat will save the trackbar value everytime you move it and to restore the trackbar value when you restart your application use something like this in the "Form_Load" event:My.Settings.Track1 = TrackBar1.Value My.Settings.Save()
Code: Select allAnd thats it cooll;TrackBar1.Value = Convert.ToString(My.Settings.Track1)
Thanks a lot codenstuff its helped me a lot wahooo; , Thank you very much wahooo;
Tvs
If this has helped you
Please Give thanks to the Author for the Helpfull Posts
as this is what this site is all about helping each other
Chris
If this has helped you
Please Give thanks to the Author for the Helpfull Posts
as this is what this site is all about helping each other
Chris
4 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023