Brinuz is right...there are two events for handling this. 1 is when you take your mouse over the picturebox and second is when you leave your mouse from the pbox.
Here's the code for what you are trying to do:
[php]Private Sub PictureBox6_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles PictureBox1.MouseHover
PictureBox6.Image = NextGenMTs.My.Resources.Minimize
End Sub
Private Sub PictureBox6_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles PictureBox1.MouseLeave
PictureBox6.Image = Nothing
End Sub[/php]
Hope this helps !!
How would i go about making a form load in visual basic (2008), and make TextBox1 & 2 Transparent?
I googled it, but all i could find was shit for Vb05/06.
Last edited by MugNuf; 06-13-2010 at 07:23 AM.
what you mean with that? transparent and be able to write at it? or just hide them? if you want to hide them just do:
or go on proprieties Visible = FalseCode:tbXXX.hide()
or do you want them to like they are not there but be able to write at it?
Change its border style to None. and change its background color to form color, or w/e.
or you do actually want to make it's background transparent?
Light travels faster than sound. That's why most people seem bright until you hear them speak.
Transparent textboxes would look funny. There's no simple way to do it as far as I know, if users have to input data that is. If the textbox is only functioning as a display (i.e your code assigns the text, not the user) you could always use a label, change the border and set backcolor to transparent and AutoSize to false.
Somehow I think this didn't help you too much, as you probs already know you can do that with a label, but oh well.
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
"I don't believe in an afterlife, so I don't have to spend my whole life fearing hell, or fearing heaven even more. For whatever the tortures of hell, I think the boredom of heaven would be even worse." - Isaac Asimov
well form what i know you cant do it that simple... or you cant even do it like J-Deezy said. well, it not that logical to have a textbox if you cant see it ( how can you click on something to write, without seeing it? ).
There is ways to do that, like getting keys pressed by your keyboard and write them on a label or so.
Light travels faster than sound. That's why most people seem bright until you hear them speak.
I know its over a week old, but a new thread for a simple question is lame xd.
Anyway, i can't figure out how i can go through a listbox, and it SendKeys everything in the listbox one by one.
So, it starts with the first Item, and works its way down to the last, then repeats.
How can I get the value of dropdown boxes and change the value again? I want the value of Form2.ComboBox1 to change Form2.ComboBox2 to one of the settings. These are the non-editable Drop Down Boxes. Please & Thank you