hello world程序集锦(7)

/font /Courier findfont 24 scalefont
font setfont
100 100 moveto
(Hello World!) show
showpage

XAML

<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="XAMLSample.Page1"
>
<Button Click="HelloWorld" Name="Button1">Click Here</Button>
</Page>

using System;
using System.Windows;
using System.Windows.Controls;

namespace XAMLSample
{
 public partial class Page1 : Page
 {
  void HelloWorld(object sender, RoutedEventArgs e)
  {
   MessageBox.Show("Hello, world!");
  }
 }
}

易语言

 .版本 2
.程序集 窗口程序集1
.子程序 __启动窗口_创建完毕
信息框

(“Hello, World!”, 0, )

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/1615.html