0

Hi ...

I m having question on vc++ floating value slider in CLR windows from...

I want to have a slider which should have 0 to 1000 value and the values should be float values..

can anyone please help me how to resolve this problem..

here i included the code which i used for including slider.

//form1

this->trackBar1->Location = System::Drawing::Point(173, 68);
			this->trackBar1->Maximum = 1000;
			this->trackBar1->Name = L"trackBar1";
			this->trackBar1->Size = System::Drawing::Size(245, 45);
			this->trackBar1->SmallChange = 5;
			this->trackBar1->TabIndex = 3;
			this->trackBar1->Value = 0;

All the replies are valuable for me
Thanks in advance...

Edited by Nick Evan: added code-tags

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by shrutinr
0

Set the maximum range to say 10000, then when it comes to displaying 0.0 to 999.9, simply multiply by 10.

0

Thank you so much .
I work according to your your idea..
It works good..
I got the float value now.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.