Thanks for your advice Peter.

FormBorderStyle was my suspect. It's true that almost same result and with title bar I can get by this:
FormBorderStyle=FixedDialog;
MinimizeBox=false;
MaximizeBox=false;

Yes, I will try to get through ximian bugzilla forests :)

Peter Dennis Bartok wrote:

Your window doesn't have a title bar because of the FixedToolWindow style you are setting. There's no equivalent to that on X11, and we haven't gotten around to implement our own toolbar title drawing and handling.

Would you log a bug at bugzilla.ximian.com and attach the code and the screenshot?

Cheers,
  Peter

-----Original Message-----
From: "Pavel Bansky" <[EMAIL PROTECTED]>
To: "Jonathan S. Chambers" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Date: 02 November, 2005 13:41
Subject: Re: [Mono-winforms-list] New form windows



sorry for delay, I was bussy. Here comes the code. The screen shot is on
this address

http://www.bansky.net/img/newwindowissue.png

file MainForm.cs

using System;
using System.Drawing;
using System.Windows.Forms;

namespace NewWinMono
{
public class MainForm : System.Windows.Forms.Form
{
private System.Windows.Forms.Button button1;
public MainForm()
{
InitializeComponent();
}

[STAThread]
public static void Main(string[] args)
{
Application.Run(new MainForm());
}

private void InitializeComponent() {
this.button1 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(40, 40);
this.button1.Name = "button1";
this.button1.TabIndex = 0;
this.button1.Text = "button1";
this.button1.Click += new System.EventHandler(this.Button1Click);
//
// MainForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(152, 125);
this.Controls.Add(this.button1);
this.Name = "MainForm";
this.Text = "MainForm";
this.ResumeLayout(false);
}

void Button1Click(object sender, System.EventArgs e)
{
Form1 frm = new Form1();
frm.Show();
}

}
}

file Form1.cs

using System;
using System.Drawing;
using System.Windows.Forms;

namespace NewWinMono
{
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
public Form1()
{
InitializeComponent();
}

private void InitializeComponent() {
this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label1
//
this.label1.Location = new System.Drawing.Point(16, 72);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(160, 40);
this.label1.TabIndex = 0;
this.label1.Text = "This is the new window without Caption Bar";
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(208, 261);
this.Controls.Add(this.label1);
this.FormBorderStyle =
System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "Form1";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Form1";
this.ResumeLayout(false);
}
}
}



Jonathan S. Chambers wrote:


Code please, if you want help.

Thanks,
Jonathan

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pavel Bansky
Sent: Thursday, October 27, 2005 8:54 AM
To: [email protected]
Subject: [Mono-winforms-list] New form windows

Hi,

I have problem showing new form in my application on Linux. When I show
new window, it has no caption and it's imposibile to move with it.
Application sometimes hangs. Caption and frame has only the main app.
windows. Is there a way how to solve it?

 Thanks a lot

  Pavel


--
__________________________________________________________

Pavel Bánský
levap at bansky.net                        I write code...
__________________________________________________________
_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list






--
__________________________________________________________

Pavel Bánský
levap at bansky.net                        I write code...
__________________________________________________________
_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to