?
Solved

Dockable Windows

Posted on 1998-07-09
4
Medium Priority
?
287 Views
Last Modified: 2010-05-03
How do I make a window dockable under vb5.0 (sp3)?

thanks
sean
0
Comment
Question by:SeanPS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Expert Comment

by:joe_s
ID: 1465358
If you're talking about making the IDE similar to 3.0 and 4.0 then do the following.

On the menu select Tools:Options:Advanced. Checking 'SDI Devel. Environment' will give you the 3.0/4.0 IDE, unchecking docks the windows (default for 5.0). Also, under Tools:Options:Docking you can check which windos you want docked.
0
 

Author Comment

by:SeanPS
ID: 1465359
sorry, thats not what i meant.

i've got an mdi app and i want the child forms (MDIChild property = TRUE) to dock when i run the app.

that any clearer?
0
 
LVL 1

Accepted Solution

by:
shagnasty earned 210 total points
ID: 1465360
Set the border child forms border style to 0 (None - this will stop the user being able to move the form by draggin the caption bar) and then .Move the form in code.

E.g. To Dock it at the top you would do:

frmChild. Move 0,0,frmChild.Parent.ScaleWidth, frmChild.Height

Be sure to include some mechanism to allow the user to "Undock" it.
0
 

Author Comment

by:SeanPS
ID: 1465361
obviously i goofed.  i meant to give 75 points for this question not 7.  how do i up the value?
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses
Course of the Month8 days, 20 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question