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 8302495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:18:22+00:00 2026-06-08T17:18:22+00:00

I am new to windows application. with C# and .NET. I want something like

  • 0

I am new to windows application. with C# and .NET.
I want something like the image i have attach. when my popup gets open, i want the mdi parent page to be shadowed or disbaled. (like we do in web application or Jquery popup)

enter image description here

Is it possible to do? if yes how can i do that.

Please help.

  • 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-08T17:18:24+00:00Added an answer on June 8, 2026 at 5:18 pm

    You can Achive this by making use of the opacity property of the Windows.Form
    For this create a new form, sets its opacity (for eg: .75) and show this over the parent for when ever you are showing a child window.
    An Example is given Below

    There are three windows used here
    1. ParentForm
    2. OverlayForm
    3. ChildForm
    

    1. Parent Form

    1. Create an instance of the Child form 
    2. Create an Instance of the Overlayform, Pass the objects Instances of Child and Parent(current form) as a parameter to the Constructor
    3. Then Show the OverLay Form by using  ShowDialog Method.
    
    Code:
    
    public partial class ParentForm : Form
    {
        public ParentForm()
        {
    
            InitializeComponent();
        }
    
        private void ParentForm_Load(object sender, EventArgs e)
        {
    
        }
    
        private void button1_Click(object sender, EventArgs e)
        {
            ChildForm child1 = new ChildForm();
            // Create a new form.
            OverlayForm form2 = new OverlayForm(this, child1);
            child1.OverLay = form2;
            // Display the form as a modal dialog box.
            form2.ShowDialog(this);
        }
    }
    

    2. Overlay Form

    1. In the constructor store the childForm and ParentForm object in a local variables. 
           And Set the The properties (like width,height) to the Overlay Window
        2. In the OverlayForm_Load show the ChildForm window.
    
    public partial class OverlayForm : Form
    {
        public Form ParentForm { get; set; }
        public Form child { get; set; }
        public OverlayForm(Form parent, Form child)
        {
            InitializeComponent();
            this.child = child;
            this.ParentForm = parent;
    
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.ShowInTaskbar = false;
            this.Width = ParentForm.Width;
            this.Height = ParentForm.Height;
            this.Top = ParentForm.Top;
            this.Left = ParentForm.Left;
            this.StartPosition = ParentForm.StartPosition;
            // Set the opacity to 75%.
            this.Opacity = .75;
        }
    
        private void OverlayForm_Load(object sender, EventArgs e)
        {
            child.Show();
            child.TopMost = true;
            child.Focus();
            child.BringToFront();
        }
    }
    

    This will give the parent form a blur look. We should also write some code to close the overlay in the Child Form

    3. Child Form

    1. Set the object of the Overlay  to a property in Child Window
    2. And in the Form_Closing event of the child window, close the Overlay window.
    
    public partial class ChildForm : Form
    {
        //This is set in the Parent form where the child form instatce is created
        public Form OverLay { get; set; }
        public ChildForm()
        {
            InitializeComponent();
        }
    
        private void ChildForm_Load(object sender, EventArgs e)
        {
        }
    
        private void ChildForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.OverLay.Close();
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using a GridView in ASP.NET web application and want to open something like
I have window form in my WPF Application when I open new window from
I am developing a windows based application in .net. I have two forms. Form2
I want to downgrade a Windows Mobile application made with .Net Compact Framework 3.5
Currently I'm trying to port a web application(ASP.NET MVC) to windows azure and have
I work in C#, .Net 4.0, but I have a Windows Forms application. I
I have an application where I'm adding controls during runtime and want to attach
I am using designing a Windows Form application using VB.net. I trying to have
I currently have a database that gets updated from a legacy application. I'd like
I am working on a Windows application in C# (.NET 4.0) and need something

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.