[Mono-winforms-list] X11 problem with datetime picker

Paul paul at all-the-johnsons.co.uk
Sun Aug 21 12:56:36 EDT 2005


Can someone NOT using X11 (read Windows user) compile this up and see if
you get a datetime picker. The code works under .NET and displays the
picker correctly, but under X11, I don't get the picker. I'm wondering
if it's an X11 bug.



// datetime.cs
// mcs datetime.cs -r:System.Windows.Forms -r:System.Drawing

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

public class Form1:Form
  private System.Windows.Forms.GroupBox gb;
  private System.Windows.Forms.DateTimePicker dtp;
  public Form1()
  private void InitialiseComponent()
    this.gb = new System.Windows.Forms.GroupBox();
    this.dtp = new System.Windows.Forms.DateTimePicker();    

    this.gb.Location = new System.Drawing.Point(8, 8);
    this.gb.Name = "groupbox";
    this.gb.Size = new System.Drawing.Size(336, 104);
    this.gb.Text = "a box";

    this.dtp.Location = new System.Drawing.Point(8, 8);
    this.dtp.Name = "date time picker";
    this.dtp.Size = new System.Drawing.Size(288, 20);

    this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
    this.ClientSize = new System.Drawing.Size(350, 130);
    this.Name = "Form1";
    this.Text = "Testing 1..2..3";
    this.Load += new System.EventHandler(this.Form1_Load);
  static void Main()
    Application.Run(new Form1());

  private void Form1_Load(object s, System.EventArgs e)


"A lot of football success is in the mind. You must believe you are the
best and then make sure that you are. In my time at Liverpool we always
said we had the best two teams on Merseyside, Liverpool and Liverpool
Reserves." - Bill Shankly
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20050821/ef497b94/attachment.bin

More information about the Mono-winforms-list mailing list