[VBでの演算能力の検証]をダウンロードする。
<Window x:Class="MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="401" Width="522">
<Grid>
<Grid Name="Grid1" Margin="0,25,0,0">
<Ellipse Height="50" HorizontalAlignment="Left" Margin="65,91,0,0" Name="Ellipse1" Stroke="Black" VerticalAlignment="Top" Width="93" Fill="BlueViolet" />
<Label Content="Label" Height="28" HorizontalAlignment="Left" Margin="225,167,0,0" Name="Label1" VerticalAlignment="Top" />
<Rectangle Height="56" HorizontalAlignment="Left" Margin="264,85,0,0" Name="Rectangle1" Stroke="Black" VerticalAlignment="Top" Width="101" Fill="Magenta" />
</Grid>
<StackPanel Height="25" HorizontalAlignment="Left" Name="StackPanel1" VerticalAlignment="Top">
<Button Content="印刷" Height="23" Name="Button1" Width="75" />
</StackPanel>
</Grid>
</Window>
Imports System.Reflection
Public Class Form1
Private Sub button1_Click(sender As System.Object, e As System.EventArgs) Handles button1.Click
' プラットフォームのポインタサイズを取得する
Dim str As String = vbNullString
str = str & "IntPtr.Size=" & System.IntPtr.Size.ToString() & vbCrLf
' 現在実行中のアセンブリを構成するモジュールコレクションを取得する
Dim moduleArray As System.Reflection.Module() = _
Assembly.GetExecutingAssembly().GetModules()
' モジュールを列挙する
For Each md As System.Reflection.Module In moduleArray
' モジュールのアセンブリ名を取得する
Dim myAssembly As Assembly = md.Assembly
str = str & "Asm=" & myAssembly.FullName & vbCrLf
' モジュール(EXE/DLL) がもつ属性を取得する
Dim pekind As PortableExecutableKinds = New PortableExecutableKinds()
Dim ifm As ImageFileMachine = New ImageFileMachine()
md.GetPEKind(pekind, ifm)
str = str & "pekind =" & pekind.ToString() & vbCrLf
str = str & "ImageFileMachine=" & ifm.ToString() & vbCrLf
textBox1.Text = str
Next
Dim i As Integer
Dim x As Double = Math.Sqrt(2)
Dim y As Double = Math.PI
Dim z As Double
Me.dateTimePicker1.Format = DateTimePickerFormat.Time
Me.dateTimePicker1.ShowUpDown = True
For i = 0 To 1000000000 Step 1
z = x + y
z = y - x
z = x * y
z = x / y
Next i
Me.dateTimePicker2.Format = DateTimePickerFormat.Time
Me.dateTimePicker2.ShowUpDown = True
End Sub
End Class