Results 1 to 4 of 4

Thread: A fool wants a cursor!

  1. #1

    Thread Starter
    Member Vahid's Avatar
    Join Date
    Aug 2002
    Location
    Iran
    Posts
    37

    A fool wants a cursor!

    Hi folks.
    I've tried to change the cursor property of a control at runtime to a standard .cur file, but the cursor displayed black and white. If it is not much trouble please tell me what I've done wrong.
    Code:
    Me.Cursor = New System.Windows.Forms.Cursor("mine.cur")
    Thanks.

  2. #2
    Member
    Join Date
    Aug 2002
    Location
    Netherlands
    Posts
    39

    suggestion

    Maybe it'll work when skipping the NEW word. There doesn't have to be a new instance of it, right?

    or wrong?

    Dozo

  3. #3
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267
    maybe creating a local cursor would help also and i know in vb6 you had to set the custom cursor property of the window
    Magiaus

    If I helped give me some points.

  4. #4

    Thread Starter
    Member Vahid's Avatar
    Join Date
    Aug 2002
    Location
    Iran
    Posts
    37
    Thanks fellas for your answers.

    I know only one way to create a cursor from a .cur file. Using one of the New overloads. I dont see any method or something inside the cursor class to load a cursor file.
    MSDN says that custom cursor property is not supported anymore. According to MSDN I must use the Cursor.Current property, but it will not work for changing the cursor of control if your not doing a process-time-taking job.

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