Solved

Dockable Windows

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

thanks
sean
0
Comment
Question by:SeanPS
  • 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 70 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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 …
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now