English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

What I would like to do is when the user clicks a button the opcacity of the form changes to say 50%. I tried doing this:
Me.Opacity.ToString(40)
But it dosent work at all so can you tell me how to do this?
code or links please no answers saying I dont know.
Thanks

2007-02-10 05:48:32 · 2 answers · asked by sbraidley 3 in Computers & Internet Programming & Design

2 answers

If you are using vb.net..it recognizes it as 0 to 1

so use

Me.Opacity = .5

Also if you are using windows 98 or some other crappy video driver you may not notice the change.

edit: to clarify a little more...

If you are in designer mode use a percentage value between 1 and 100. If you are in code use a double value from 0 to 1.

2007-02-10 06:04:50 · answer #1 · answered by puffpuffboom 3 · 0 0

Don't use the .ToString method.

Me.Opacity(40) or something like that. You should be able to set it through some sort of a setter method.

2007-02-10 05:54:40 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers