Results 1 to 6 of 6

Thread: Locking child frame

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2008
    Posts
    2

    Locking child frame

    Hi,
    I have an appliacation containing parent and child frame. Child frame is accessed by parents. I want to limit moving of childs frame only in parent frame. Is there any code? Thanx.

  2. #2
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Locking child frame

    Welcome to VBForums

    Can you explain me a little more....

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2008
    Posts
    2

    Re: Locking child frame

    Of course. I'm making an application devided in two frames, parents and child one. Childs frame can be only accessed from parents one. No matter whar function provides childs frame I want to limit its movement, like a windows box only inside of parent frame, meaning that somehow i must assing child frame as a property of parent frame or...

  4. #4
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Locking child frame

    What do you mean by child and parent frame? Are you trying to say that you have two frame control, and you want to put it inside the other?
    I am not able to understand whats the real problem is?
    If possible, try to give a screenshot of what you are looking for and what you have so far.

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  5. #5
    Hyperactive Member
    Join Date
    Feb 2008
    Posts
    327

    Re: Locking child frame

    try this code.
    vb Code:
    1. Load formChild
    2. With formChild
    3.     .Top = frmParent.Top + Me.Height - Me.ScaleHeight +350 'adjust accordingly
    4.     .Left = frmParent.Left + Me.Width - Me.ScaleWidth + 500
    5.     .Show
    6.     .SetFocus
    7. End With
    by loading a form u have the (power) to place it anywhere on the parent form.

  6. #6
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Locking child frame

    I think yot are looking for mdi forms. Are you?
    Or two simple forms to act as parent and child?

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width