Results 1 to 3 of 3

Thread: How to place an icon to a Form? [Resolved]

  1. #1

    Thread Starter
    Registered User
    Join Date
    Apr 2003
    Location
    Klang, Selangor, Malaysia
    Posts
    163

    Question How to place an icon to a Form? [Resolved]

    How to place an icon to a Form by coding?
    I try the code below, but got error before the parentheses.
    Code:
    Me.Icon.New(Application.StartupPath & "\Icons\import.ico")
    Why?
    Please guide, thank you!
    Last edited by albertlse; Aug 21st, 2003 at 08:14 PM.

  2. #2
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Dublin (Ireland)
    Posts
    304
    this works syntactically, did not try it in execution

    after the windows designer generated code type

    Public Myicon As New Icon(Application.StartupPath & "\Icons\import.ico")

    then in code

    Me.Icon = myicon

  3. #3

    Thread Starter
    Registered User
    Join Date
    Apr 2003
    Location
    Klang, Selangor, Malaysia
    Posts
    163

    Thumbs up

    it's working fine now

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