Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8340335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:09:16+00:00 2026-06-09T05:09:16+00:00

I have 2 fullscreen window in my Gtk# application, primary and secondary. I have

  • 0

I have 2 fullscreen window in my Gtk# application, primary and secondary. I have buttonClose in second form’s that click event handler must close this window and make some operation:

    protected void OnButtonClose_Clicked (object sender, EventArgs e)
    {
        //some operation

        this.Dispose ();                        
    }

But window doesn’t close! If I use this code in Primary window, that window will close and application will terminate. Why this code works for primary window and doesn’t works for secondary? How can I close secondary window?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T05:09:18+00:00Added an answer on June 9, 2026 at 5:09 am

    Try Window.Destroy() should destroy the window for the secondary window. You could also hide it with .Hide() but not sure that’s your intention

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF application that is a fullscreen kiosk app. It's actually a
I have a WPF window that goes fullscreen, and I have made every attempt
I have a non-fullscreen DirectX window displaying video, which I for application purposes need
I have a small .NET program that produces a fullscreen window. I would like
I have a fullscreen window, and I want to prevent pop up windows that
I can't run an simple XNA window in fullscreen when I have hooked up
I have tried to make the fullscreen feature of a SDI application with splitter
I have an app that shows video all the time in fullscreen mode. So
I have Topmost fullscreen window AllowsTransparency=True WindowStyle=None Topmost=True WindowState=Maximized Left=0 Top=0 OpacityMask=#2B000000 Background=Black Cursor=Cross
Now I have finally managed to create a fullscreen window via http://cocoadevcentral.com/articles/000028.php Brilliant tutorial.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.