Results 1 to 2 of 2

Thread: i need a little bit a help

  1. #1

    Thread Starter
    Addicted Member Hammad's Avatar
    Join Date
    Mar 2003
    Location
    Pakistan
    Posts
    145

    Question i need a little bit a help

    hi guys
    i have 2 little problems and i hope u will help me
    first problem is i make a complete application i have a MDI form and others forms but they are not opening in the MDI form i want remaining forms as MDI child tell me how....
    second is that i use datagrid i want to change in the data which is showing me in datagrid and update it but it gives error on my command sysytem Error
    my query is
    sqldataadapter1.updatecommand.executenonquery
    tell me what can i do
    thanks
    Hammad Umar
    Hammad Umar

  2. #2
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536
    Your main form must have its IsMDIParent property set to True.

    When you open your child forms (from your main form) set their MdiParent property to Me before you show them.

    VB Code:
    1. frmChild1 = New Child1()
    2. frmChild1.MdiParent = Me
    3. frmChild1.Show
    This world is not my home. I'm just passing through.

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