Results 1 to 3 of 3

Thread: Changing custom mouseIcon at runtime

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2002
    Posts
    31

    Red face Changing custom mouseIcon at runtime

    Does anybody know how to change the MouseIcon property of a form during run time.
    I'd like to put a custom one but dont know how to ask it.

    Form1.MouseIcon = ???

    Maybe I should declare a specific variable and assing it the path of my custom icon, but I dont know the correct type.

    Please help!!

  2. #2
    Fanatic Member Mushroom Realm's Avatar
    Join Date
    Mar 2002
    Location
    Murrieta, California
    Posts
    650
    VB Code:
    1. Form1.MouseIcon = LoadPicture(App.Path & "\Icon.ico")

  3. #3
    Fanatic Member Alien_poo's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    668

    Re: Changing custom mouseIcon at runtime

    Originally posted by Raspoutine
    Does anybody know how to change the MouseIcon property of a form during run time.
    I'd like to put a custom one but dont know how to ask it.

    Form1.MouseIcon = ???

    Maybe I should declare a specific variable and assing it the path of my custom icon, but I dont know the correct type.

    Please help!!
    I replied in General forum
    "A RESPECTED scientist has put forward the stunning - if unsavoury - possibility that humans are descended from sewage dumped overboard by aliens."
    "First we read that we are the creation of God, then scientists say we are descended from apes. Now they say we're some sort of alien poo. How much further can we sink?"
    - Robert Matthews, Science Correspondent

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