Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import OCX or DLL

Status
Not open for further replies.

saramaia

Programmer
Aug 5, 2002
61
PT
Hello...

To build an application where there is a toolbar in the left side of the form with buttons and depending on the button clicked open a diferent "thing" on the right side of the form... what is the best thing to do? Import a dll or a ocx??

Can i import in a form one ocx that is inside another project (dll) ?

Thanks in advance
Sara
 

Can´t open the projects in my computer... :(
Ocx/versions problems...

Any extra help you can give me?

Sara
 
Use an MDI Form as your main form and place a PictureBox to it
Code:
[b][COLOR=blue]Set Align= 3-Align Left[/color][/b]
(PictureBox is the only control you can directly place into an MDI form.)
Put some command buttons on PictureBox.You can even use Labels instead of command buttons. Add the code
Code:
[COLOR=blue]Private Sub Command1_Click()
 Form1.Show
End Sub[/color]
Use the same method to all the command buttons. This is the easiest method without any ocx or dll
Set all the other forms
Code:
[b][COLOR=blue]MDIChild=True[/color][/b]
Set the MDI form as your statup form from
Code:
[b][COLOR=blue]Project  > Properties[/color][/b]
setup.
Hope this helps

Zameer Abdulla
Visit Me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top