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.
4 posts Page 1 of 1
Contributors
User avatar
tvs praveen
Top Poster
Top Poster
Posts: 205
Joined: Tue Dec 08, 2009 6:20 am

Saving TrackBar value *Solved
tvs praveen
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;
Last edited by tvs praveen on Tue Feb 09, 2010 4:44 pm, edited 2 times in total.
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4392
Joined: Tue Aug 04, 2009 1:47 am

Re: Saving TrackBar value
CodenStuff
Hello,

You can do this by creating a setting, for example "Track1" and then inside the "TrackBar_Scroll" event add this code:
Code: Select all
My.Settings.Track1 = TrackBar1.Value
My.Settings.Save()
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:
Code: Select all
TrackBar1.Value = Convert.ToString(My.Settings.Track1)
And thats it cooll;
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
tvs praveen
Top Poster
Top Poster
Posts: 205
Joined: Tue Dec 08, 2009 6:20 am

Re: Saving TrackBar value
tvs praveen
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 all
My.Settings.Track1 = TrackBar1.Value
My.Settings.Save()
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:
Code: Select all
TrackBar1.Value = Convert.ToString(My.Settings.Track1)
And thats it cooll;

Thanks a lot codenstuff its helped me a lot wahooo; , Thank you very much wahooo;
User avatar
hungryhounduk
VIP - Site Partner
VIP - Site Partner
Posts: 2870
Joined: Mon Jul 27, 2009 11:58 am

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
Image
4 posts Page 1 of 1
Return to “Tutorial Requests”