Results 1 to 5 of 5

Thread: Silly icons

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618

    Silly icons

    in Windows XP, when you open multiple windows of the same type, it "stacks" them on top of each other with an icon and a number. Well I have two forms, one that opens another. both have their Icon properties set to the same Icon, and I have set the Icon property in the Project properties. When I am on the Main form, the right Icon shows up, but when the second form is opened (ShowDialog to open it modal), I get the generic white window icon. Is there somewhere else i need to be setting up an Icon proeprty?
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    This set a custom icon to the form's icon . You just need to change the forms name for "Me" keyword .
    VB Code:
    1. Me.Icon = New Icon(Application.StartupPath & "\App.ico")

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618
    How is that different from setting it through the property Window?
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by SeanGrebey
    How is that different from setting it through the property Window?
    It results the same . But this should solve the problem of showing the icon for the dynamically created form (the second form) .

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618
    I gotcha, thanks.
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

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