|
-
Jun 19th, 2002, 10:38 PM
#1
Thread Starter
Hyperactive Member
Form in ActiveX Control
I designed an ActiveX control and include a form in it
For a particular event in the ActiveX control I should show the form
This is the method I use to display
VB Code:
If Not frmClassOCXLoader.Visible Then
frmClassOCXLoader.Show
frmClassOCXLoader.SetFocus
End If
But the problem is this form is shown underneath the from, that contains the ActiveX control.
What I want to show is the form in the ActiveX Control above the form that contains the ActiveX control.
Last edited by Janaka; Jun 19th, 2002 at 10:59 PM.
-
Jun 19th, 2002, 10:59 PM
#2
Thread Starter
Hyperactive Member
-
Jun 20th, 2002, 12:29 AM
#3
Addicted Member
Try using the SetWindowPosition for the form, to put it on top of all others
-
Jun 20th, 2002, 12:50 AM
#4
Thread Starter
Hyperactive Member
is this a api function ??
-
Jun 20th, 2002, 12:56 AM
#5
Hyperactive Member
hi,
u need to use WinAPi for that......
use
Public Declare Function SetFocus Lib "user32" (ByVal hwnd As Long) As Long
u need to pass the handle of the form as the parameter to the Setfocus function....
hope this helps.....
regds,
ashay
-
Jun 20th, 2002, 01:13 AM
#6
Addicted Member
-
Jun 29th, 2002, 07:32 AM
#7
Addicted Member
show form as vbmodal ...
form1.show vbmodal
or use ShowWindow API ..
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
|