|
-
Nov 20th, 2000, 03:54 AM
#1
Thread Starter
Member
How can I create an invisible control, like the timer?
-
Nov 20th, 2000, 04:46 AM
#2
Fanatic Member
-
Nov 20th, 2000, 05:49 AM
#3
Addicted Member
Here's how...
The user control has a property called InvisibleAtRuntime. Set this property to true, and the control will be visible during design time, but not run time.
Shrog
-
Nov 20th, 2000, 07:28 AM
#4
Thread Starter
Member
thanx, that worked fine. it looks weird on the control palette without an icon though. do u know how to associate the control with an icon?
-
Nov 20th, 2000, 07:34 AM
#5
Fanatic Member
-
Nov 20th, 2000, 08:18 AM
#6
Addicted Member
Bitmap
Yes, Faisalkm is right, you can use the ToolBoxBitmap property of the control. The only problem here is that the allowable bitmap is very, very small. The picture is a 16x15 pixel bitmap, and VB will automatically use the color on the outer edge of the bitmap as a transparent color. This means that you actually only have 15x14 pixels to work with.
Shrog
-
Nov 20th, 2000, 09:07 AM
#7
Thread Starter
Member
well, is there an other way to do it then. how have they done it for the timer control?
-
Nov 20th, 2000, 09:23 AM
#8
Addicted Member
Alas, alak...
No, I'm afraid that's all we have to work with. Believe me, I've looked for ways of getting bigger pictures in there, but those bastards will not allow it for some or other reason.
The timer control is built into VB, so they can do anything they like. But the ToolBoxBitmap we can use must be small. If you use a bigger one, VB will resize it automatically to make it smaller, often with some loss of quality.
I suspect that ActiveX controls written in other langauges may not have this limitation. Does anyone know?
Shrog
-
Nov 20th, 2000, 09:45 AM
#9
Fanatic Member
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
|