2 // System.Windows.Forms Demo app
5 // Philip Van Hoof (me@freax.org)
7 // I use this sample for testing a single widget
12 using System
.Windows
.Forms
;
14 namespace singlewidget
17 public class GtkForm
: System
.Windows
.Forms
.Form
19 private HScrollBar hScrollBar1
= new HScrollBar();
21 private void InitializeWidgets()
24 this.hScrollBar1
.Location
= new System
.Drawing
.Point(50, 60);
25 this.hScrollBar1
.Maximum
= 200;
26 this.hScrollBar1
.Minimum
= 10;
27 this.hScrollBar1
.Name
= "hScrollBar1";
28 this.hScrollBar1
.Size
= new System
.Drawing
.Size(360, 24);
30 this.Controls
.AddRange(new System
.Windows
.Forms
.Control
[] {
33 this.Size
= new Size(512, 512);
44 public static void Main()
46 GtkForm form1
= new GtkForm ();
47 form1
.Text
= "System.Windows.Forms at work!";
48 Application
.Run(form1
);