It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

Locking child frame

Moderator: dafunkymunky

Locking child frame

Postby pistareale on Thu Aug 21, 2008 11:11 am

Hi,
I have an application containing parent and child frame. Child frame is accessed by parents. I want to limit moving of child frame only in parent frame. Is there any code? Thanx.
pistareale
 
Posts: 4
Joined: Thu Aug 21, 2008 11:01 am

Postby sendtoanurag on Fri Aug 22, 2008 7:12 am

What exactly do u want??
Because the child frame will move only inside the parent frame it cannot go outside the parent frame.
sendtoanurag
 
Posts: 29
Joined: Tue Mar 18, 2008 2:51 pm

reply

Postby pistareale on Fri Aug 22, 2008 8:10 am

Yes, thats all I need, to make a child frame move only inside a parent frame.
pistareale
 
Posts: 4
Joined: Thu Aug 21, 2008 11:01 am

Postby sendtoanurag on Fri Aug 22, 2008 8:40 am

OK Make a parent frame.
Then make another frame inside that frame only
That's it.

Coz frame is meant only for one pupose. Nothing drawn inside it can move out of the frame even if its a child frame
sendtoanurag
 
Posts: 29
Joined: Tue Mar 18, 2008 2:51 pm

re

Postby pistareale on Fri Aug 22, 2008 9:30 am

:) you didn't understand me. I can't make a child frame inside a parent frame because a child frame is a window who pops out when action is made in parent frame. Like when you press a button in application "About the Program" and little window pops out with informations about the program, I need to maintain that window indside a main application window.
pistareale
 
Posts: 4
Joined: Thu Aug 21, 2008 11:01 am

Postby sendtoanurag on Fri Aug 22, 2008 9:47 am

Ok
Can u tell what r u using to show the information.
I mean r u using a msgBox or label or any form.
sendtoanurag
 
Posts: 29
Joined: Tue Mar 18, 2008 2:51 pm

re

Postby pistareale on Fri Aug 22, 2008 10:03 am

yes, i'm using labels and groupboxes. I've been cheking where i could implement such a code since I'm using MS Visual 2008, and I think that it should be implemented in childname.Designer.vb page since a simple properies section does not provide coding of that type.
pistareale
 
Posts: 4
Joined: Thu Aug 21, 2008 11:01 am


Who is online

Users browsing this forum: No registered users and 4 guests