is there any way to allow the user to set the transparency of the windows?
If so, what sort of commands am I looking to use?
Dan
Printable View
is there any way to allow the user to set the transparency of the windows?
If so, what sort of commands am I looking to use?
Dan
What do you mean "let the user set"? Are you going to use a textbox control? Is it a windows forms app? If the answer to both those questions is yes then this is the code.
Code Code:
Private Sub txtControl.Leave(sender,e) Handles txtControl.Leave 'This is whatever event you want Me.Opacity = Val(Me.txtControl.Text) End Sub
it is a web browser (windows form)
And I was thinking of having a "slider" to change the transparency of buttons and so on
Ok, a web browser. The buttons on the web page or the buttons on your browser? If it's on the web page, then I can't help you. Also, I'm not sure if the controls in VS 2008 have very different controls or new ones from VS 2005.
Sorry.:(
buttons on the browser, dont be sorry:) you are still here trying to help:)
Use the TrackBar control (it's a slider) and handle the ValueChanged event (I think that was it's name) to set the Opacity property of the appropriate controls.
ok thank you:) you got the name of the event right by the way:)
It'd be similar to setting the colour then:P
Oh. In VS 2005, each control does not have its own Opacity property.
Sorry.:(
*********************************************************
Just for anybody who might want their buttons special on their browser, you can always draw semitransparent graphic "buttons" in the Paint event, and handle them with the mousemove (for mouseovers) and mouseclick events.
well, i have tried what you sed, and it seems like it might work, i just have to tell the transparency to operate on different things
I didn't quite understand the underlined part...Quote:
Originally Posted by danielpalfrey
basically, if I want it to set transparency on 3 buttons, then I use the specific names of those 3 buttons under 1 private sub.
above is an example of what the code could look like, it isnt this, but it is an example of what could be under the private sub:)Code:transperency.button1 = slidebar.ok
transperency.button2 = slidebar.ok
transperency.button3 = slidebar.ok