simple question about forms

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Anon.Programmer@gmail.com

    #1

    simple question about forms

    Hello, I'm new to programming C# in visual studio. I have a form A and
    when button B is pushed it calls form C. Is there a simple way to
    disable form A until form C is exited. I know it can't be hard because
    I see it all the time in apps but for the life of me, I cannot find
    the answer on the web.

    Thanks

  • Kevin Spencer

    #2
    Re: simple question about forms

    Call the ShowModalDialog method, rather than the Show method.

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    Software Composer
    Thoughts and Ideas about programming, philosophy, science, arts, life, God, and related subjects.


    I had the same problem once. Fixed it using the same solution.

    <Anon.Programme r@gmail.comwrot e in message
    news:1172246558 .273784.164070@ z35g2000cwz.goo glegroups.com.. .
    Hello, I'm new to programming C# in visual studio. I have a form A and
    when button B is pushed it calls form C. Is there a simple way to
    disable form A until form C is exited. I know it can't be hard because
    I see it all the time in apps but for the life of me, I cannot find
    the answer on the web.
    >
    Thanks
    >

    Comment

    Working...