[Mono-bugs] [Bug 425984] New: Focus problem on FolderBrowserDialog open by a TopMost window

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Sep 12 12:30:39 EDT 2008


           Summary: Focus problem on FolderBrowserDialog open by a TopMost
           Product: Mono: Class Libraries
           Version: 1.9
          Platform: i386
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: tquerci at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

I make a winform application and I find a bug using a
topmost window and a FolderBrowserDialog.
On .Net plaform work fine.

For my application I make a workaround delesect topmost
flag before show FolderBrowserDialog and set it after.

I try this one on mono 1.9.1 

Cheers, Torello

Here you can find my code:

// MainForm.cs created with MonoDevelop
// User: torello at 09:16 12/09/2008
// To change standard headers go to Edit->Preferences->Coding->Standard Headers

using System;

using System.Drawing;

using System.Windows.Forms;

namespace test_form

       public class MainForm  : System.Windows.Forms.Form

               private System.Windows.Forms.Panel panel1;

               public MainForm()
                       System.Windows.Forms.Button buttonOk;

                       buttonOk = new Button();


                       buttonOk.Click +=changeDirectoryStoreEvent;

                       this.panel1 = new System.Windows.Forms.Panel();

                       this.panel1.Name = "panel1";




               private void changeDirectoryStoreEvent(object sender, EventArgs


                       System.Windows.Forms.FolderBrowserDialog fbd=new

                       fbd.Description="Where to store the data?";


//                      this.TopMost=false;


//                      this.TopMost=true;


               public static void Main(string[] args) {
                       try {

                               Application.Run(new MainForm());
                       } catch (Exception ex) {


Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list