|
-
Jun 8th, 2004, 03:31 PM
#1
Thread Starter
Frenzied Member
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.
-
Jun 8th, 2004, 04:03 PM
#2
Sleep mode
This set a custom icon to the form's icon . You just need to change the forms name for "Me" keyword .
VB Code:
Me.Icon = New Icon(Application.StartupPath & "\App.ico")
-
Jun 8th, 2004, 04:11 PM
#3
Thread Starter
Frenzied Member
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.
-
Jun 8th, 2004, 04:15 PM
#4
Sleep mode
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) .
-
Jun 8th, 2004, 04:23 PM
#5
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|