5 Replies - 34252 Views - Last Post: 25 July 2008 - 11:19 AM Rate Topic: -----

#1 LudwigNel  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 25-July 08

Checking if a form is open

Post icon  Posted 25 July 2008 - 04:35 AM

I have MDIParent form with a menustrip.
I do not want a save button on each child form.
How do I check which form is open so I'll know which save function to run?
Is This A Good Question/Topic? 0
  • +

Replies To: Checking if a form is open

#2 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1641
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Checking if a form is open

Posted 25 July 2008 - 06:01 AM

Is this like your other thread where you're using VB.NET (I imagine so)?
Was This Post Helpful? 0
  • +
  • -

#3 LudwigNel  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 25-July 08

Re: Checking if a form is open

Posted 25 July 2008 - 06:45 AM

Yes, sorry.
I meant to mention that it was in VB.NET
Was This Post Helpful? 0
  • +
  • -

#4 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 180
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Re: Checking if a form is open

Posted 25 July 2008 - 10:30 AM

Moved.
Was This Post Helpful? 0
  • +
  • -

#5 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2262
  • View blog
  • Posts: 9,466
  • Joined: 29-May 08

Re: Checking if a form is open

Posted 25 July 2008 - 10:55 AM

Have you tried seeing if the form is visible?

    Public Function FormOpen(ByRef thisForm As Form) As Boolean
        Return thisForm.Visible
    End Function


Was This Post Helpful? 1
  • +
  • -

#6 ResoluteTechie  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 25-July 08

Re: Checking if a form is open

Posted 25 July 2008 - 11:19 AM

To check active child form, You can check by using ActiveMdiChild property in your MDI form.

Me.ActiveMdiChild.Name

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1