TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Woof dog
NA
3
0
Locking window size
Jul 22 2009 12:38 AM
Hi,
(All work done in Visual Studio 2008) I've created a parent window for a application I want to create, and it has several buttons up the top of the application window.
The code behind the buttons (just 1 for example) is something like;
Form2 frmchild = new Form2();
frmchild.MdiParent = this;
frmchild.Show();
Now this will open within the parent application. The problem is, I want to be able to lock the child window to the parent window size minus X ammount from the top of the application to allow spacing for my buttons.
What would I need to do to be able to lock the child window size to the parent window, but I want this to make no difference on the resolution/size the clients are using.
I don't know it might be easier if I just lock the parent window size so it can't be changed?
Thanks in advance for nay help.
Reply
Answers (
0
)
Compare 2 int arrays
deviding the window into sections