I am a newbie in .NET
How can i change the From Backcolor dynamically?
I have a ScrollBar on the form
what i want is to change the backcolor of the form as per the value of ScrollBar, Min, Max for scroll bar is set to 1, 255 respectively.
Requirement: on the run time when ever the value of the ScrollBar changes accrdingly the form backcolor has to change.
Can any one please help me.
=====================================================
Me.BackColor = System.Drawing.Color.FromArgb(Val(HScrollBar1.Value))
this code give me error unhandled exception.
=====================================================
Thanks
How can i change the From Backcolor dynamically?
I have a ScrollBar on the form
what i want is to change the backcolor of the form as per the value of ScrollBar, Min, Max for scroll bar is set to 1, 255 respectively.
Requirement: on the run time when ever the value of the ScrollBar changes accrdingly the form backcolor has to change.
Can any one please help me.
=====================================================
Me.BackColor = System.Drawing.Color.FromArgb(Val(HScrollBar1.Value))
this code give me error unhandled exception.
=====================================================
Thanks