|
-
Jan 29th, 2009, 08:52 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Give UserControl an icon
I have created a UserControl (OCX). How do I assign an icon to it, so I don't just see the standard icon in the toolbox.
-
Jan 29th, 2009, 09:06 PM
#2
Re: Give UserControl an icon
Design/select a 16 x 15 pixel bitmap. The upper left pixel defines the transparent color for the "toolbox icon". Anything larger than 16x15 will be stretched as needed.
-
Jan 29th, 2009, 09:48 PM
#3
Thread Starter
Hyperactive Member
Re: Give UserControl an icon
...where can I find Design/select ?
-
Jan 29th, 2009, 09:51 PM
#4
Re: Give UserControl an icon
no, by design, I mean open a graphics app like MS Paint for example, and design your own and save it. Once you have one you would like to use, close all design-time windows in your project, open the usercontrol in design view so you see its property sheet. Find ToolboxBitmap in the sheet, click the ellipsis button (...) and select the bitmap. Save the project.
-
Jan 29th, 2009, 10:03 PM
#5
Thread Starter
Hyperactive Member
Re: Give UserControl an icon
-
Feb 13th, 2009, 04:13 PM
#6
Lively Member
Re: [RESOLVED] Give UserControl an icon
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
|