• Log in or sign up for an account here: https://www.sythe.org/login

Changing icon ?

scary tiger

Member
Joined
Mar 12, 2007
Sythe Gold
0
Messages
97
Location
Im live in flash mx
Changing icon ?How can i do it Example if i press the command button The icon it will change (VB Icon to Mozilla icon) and if i press it again it will change to original icon (VB icon)
Thanks this site is help me so much
beacuse i will gonna make an trainer on RS
 
Icon (top left image on taskbar) or image? (image would be easier, just use visible = false/true)

Code:
Private Sub Command1_Click()
Me.Icon = "" 'Path to icon
End Sub
 
Because it has to do with the way you load the picture.
Code:
Private Sub Command1_Click()
Dim Path as string
Path = "" 'Path to file
Me.icon = LoadPicture(Path)
End sub
 
An easy way would be to assign the mozzila icon to one of the forms, then do either:

To go to normal
me.icon = loadpicture("")

Then to switch to mozzilla(the form is the one with the icon of mozzila):
me.icon = form2.icon

I think thats what you want.
 
or you could click the form and change the icon property so it compiles inside the program, lol
 
Runescape Gamblingrunescape gambling
Back
Top