i'm new at VB, i'm just wondering what command i would use to change the icon of a form if the user types in the path of the .ico file into a textbox and clicks a command button to change it.
thanks
Printable View
i'm new at VB, i'm just wondering what command i would use to change the icon of a form if the user types in the path of the .ico file into a textbox and clicks a command button to change it.
thanks
no problem :D
use the LoadPicture() function
da_bob
_______________
how exactly would i type it?
i dont' think this is right:
LoadPicture(txtIconPath.Text) As MainForm.Icon
just typebecause it's a function not a declaration.Code:Form1.Icon = LoadPicture(txtIconPath.Text)
da_bob
______________