C# Parent Form Quick question....

Discussion in 'Programming' started by Zoro, Jun 17, 2010.

  1. #1
    Please, can somebody tell me how can I make those buttons and icons in the top of the MDI Parent form invisible?

    It's a bornig school project... Please help, I need it fast :)

    Screenshot
     
    Zoro, Jun 17, 2010 IP
  2. desede

    desede Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There are a few really good C# forums in the web, you will get immediate help there. All you need to do is to use some search engine:)
     
    desede, Jun 20, 2010 IP
  3. brian65

    brian65 Active Member

    Messages:
    1,172
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    88
    #3
    If you make those particular buttons invisible aren't you turning off the MDI capability of the app? Perhaps you'd be better off with an SDI style app and switch the content control as needed.
     
    brian65, Jun 21, 2010 IP
  4. Zoro

    Zoro Active Member

    Messages:
    167
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #4
    the problem is thaz i'm loading all form into the memory at startup... And if forms are closed in that way the program will crash. I just need to turn off those buttons. If i won't find solution then i will be forced to write code that will automatically load my forms in the background if they are closed in that way... It's pain in the ass because i have many forms and it's not a profesional solution :)

    but thanks on your time...
     
    Zoro, Jun 21, 2010 IP
  5. brian65

    brian65 Active Member

    Messages:
    1,172
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    88
    #5
    You could try catching the FormClosing event for each form/ control and setting the Cancel argument to false to prevent the form really closing. Instead set the Visible property to false to hide the form to make it look to the user as though it's closed when it hasn't really.
     
    brian65, Jun 21, 2010 IP
  6. Zoro

    Zoro Active Member

    Messages:
    167
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #6
    tnx on idea... I will try something simular :)
     
    Zoro, Jun 22, 2010 IP