Results 1 to 4 of 4

Thread: Calling a Form

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2001
    Location
    INDIA
    Posts
    31

    Calling a Form

    Hi All,

    I am new to .NET.

    I am facing a problem.

    I have one MDI form and in that i am calling other forms.
    I am able to call 2 forms but only one form i am not able to call from the MDI.

    dim frmA as new frmEntry
    frmA.Show()

    this is what i written.

    please anybody can help me in this
    Nagendra K

  2. #2
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Hi,

    Have you made sure the MDIPARENT property of frmA is set to the correct parent?

    Have you used SHOWDIALOG anywhere?
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Nov 2001
    Location
    INDIA
    Posts
    31

    Calling form from MDI

    Yes, i set corect MDIPARENT

    Below code i written in MenuItem click

    Dim frmA As New frmMap()
    frmA.mdiparent = Me
    frmA.show()
    Nagendra K

  4. #4
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Hi,

    In your first post you wrote

    "dim frmA as new frmEntry
    frmA.Show()

    this is what i written."

    In your second post you wrote

    "Below code i written in MenuItem click

    Dim frmA As New frmMap()
    frmA.mdiparent = Me
    frmA.show()"

    Which is correct?


    In which form have you written the above code?
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

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