Results 1 to 4 of 4

Thread: how do i change the icon in my form by user input

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Location
    USA, Virginia
    Posts
    25

    Question

    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

  2. #2
    Guest
    no problem

    use the LoadPicture() function

    da_bob
    _______________

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Location
    USA, Virginia
    Posts
    25
    how exactly would i type it?
    i dont' think this is right:

    LoadPicture(txtIconPath.Text) As MainForm.Icon




  4. #4
    Guest
    just type
    Code:
    Form1.Icon = LoadPicture(txtIconPath.Text)
    because it's a function not a declaration.

    da_bob
    ______________

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width