Results 1 to 5 of 5

Thread: two questions

  1. #1

    Thread Starter
    Addicted Member hyousuf2's Avatar
    Join Date
    Dec 2004
    Location
    Dublin
    Posts
    226

    two questions

    1) can i make a form not move from its possition, like it can't be dragged
    2) what is the event when an MDI gets deselcted / deactivated, like when other window is selected
    Women ...r like tea bags, you neva know how strong they really r untill u put them in hot water

    Huzefa Yousuf
    Software Engineer
    Verticity Inc.
    +92-345-2235303

    [email protected]

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: two questions

    1. Set the Moveable Property to false.
    2. Are you talking about the Activate event?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3
    Addicted Member articwoof's Avatar
    Join Date
    Oct 2004
    Location
    Alaska
    Posts
    163

    Re: two questions

    The form not being able to move is easy, in the Form Properties, find "Moveable" and change to False.

    MDI Quesiton:
    Event Deactivate()
    Occurs when a form is no longer the active window.
    [+] - My Portfolio/Blog :: RattleSoft

  4. #4
    Addicted Member articwoof's Avatar
    Join Date
    Oct 2004
    Location
    Alaska
    Posts
    163

    Re: two questions

    lol... Tied.
    [+] - My Portfolio/Blog :: RattleSoft

  5. #5

    Thread Starter
    Addicted Member hyousuf2's Avatar
    Join Date
    Dec 2004
    Location
    Dublin
    Posts
    226

    Re: two questions

    well got the first one bingo, but the second one is not working, see i want to show the form when my mdi form is active n hide it when it is not, this is the code i used but it gets stuck, like the form shows n hides innumerable times

    VB Code:
    1. Private Sub MDIForm_Activate()
    2.     Frm_Info.Show
    3. End Sub
    4.  
    5. Private Sub MDIForm_Deactivate()
    6.     Frm_Info.Hide
    7. End Sub
    Women ...r like tea bags, you neva know how strong they really r untill u put them in hot water

    Huzefa Yousuf
    Software Engineer
    Verticity Inc.
    +92-345-2235303

    [email protected]

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