use System; use SystemWindowsForms; use SystemDrawing; class HelloForm extends SystemWindowsFormsForm { public function __construct() { $this->Size = new SystemDrawingSize( 640, 480 ); $this->Text = 'Hello, World!'; $label1 = new SystemWindowsFormsLabel(); $label1->Size = new SystemDrawingSize( 320, 20 ); $label1->Text = 'Hello, Windows Forms(Phalanger) World!'; $this->Controls->Add( $label1 ); } static function Main() { FormsApplication::Run(new HelloForm()); } } ?>