|
-
Oct 23rd, 2003, 08:50 AM
#1
Thread Starter
New Member
Hiding Controls at Runtime
Hi,
I'm fairly new to making ActiveX controls but not to VB so I have a pretty fair understanding of how stuff works.
What I'm trying to do is have a control that shows at design-time with a border round it, and is not visible, but interactive at run-time, much like the Image control.
I've tried putting code in various control events which have worked to an extent but I can never get the border to show again when I go back to design-time after testing the control.
Any help would be much appreciated.
--
GeekSession
-
Oct 24th, 2003, 11:33 AM
#2
Have a look at this :
VB Code:
Private Sub UserControl_Show()
If Ambient.UserMode = True Then
MsgBox "Run-time"
Else
MsgBox "Design Time"
End If
End Sub
Has someone helped you? Then you can Rate their helpful post. 
-
Nov 15th, 2003, 03:18 AM
#3
Banned
to manipulate the property of the control you can take the help of custom property like ambient
or you can create property page.
Biswajit das
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
|