[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
https://bugzilla.novell.com/show_bug.cgi?id=425984
Summary: Focus problem on FolderBrowserDialog open by a TopMost
window
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.Text="PressMe";
buttonOk.Click +=changeDirectoryStoreEvent;
this.panel1 = new System.Windows.Forms.Panel();
this.panel1.Controls.Add(buttonOk);
this.panel1.Name = "panel1";
this.Controls.Add(this.panel1);
this.TopMost=true;
}
private void changeDirectoryStoreEvent(object sender, EventArgs
e)
{
System.Windows.Forms.FolderBrowserDialog fbd=new
System.Windows.Forms.FolderBrowserDialog();
fbd.Description="Where to store the data?";
fbd.RootFolder=System.Environment.SpecialFolder.Desktop;
// this.TopMost=false;
fbd.ShowDialog(this);
// this.TopMost=true;
}
public static void Main(string[] args) {
try {
Application.Run(new MainForm());
} catch (Exception ex) {
System.Console.Out.WriteLine("Eccezione:
"+ex.Message+"\r\nStack:\r\n"+ex.StackTrace);
}
}
}
}
--
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