일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- python
- allauth
- GraphQL
- flask
- numpy
- for loop
- array
- Django
- Django-allauth
- graphene-django
- FastAPI
- SQL
- check_password
- tkinter Radio 동적버튼
- Today
- Total
객
[ vb 2008 ] WPF 예제 본문
Class Window1
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Button1.Click
Dim a As String
a = CStr(TextBox1.Text)
Label1.Content = a
TextBox1.Text = ""
End Sub
Private Sub Window1_Loaded(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles MyBase.Loaded
Button1.Content = "확 인"
Button2.Content = "종 료"
Label1.Content = ""
Me.Title = "첫 WPF 프로그램 "
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Button2.Click
Me.Close()
End
End Sub
End Class
XAML SOURCE :
<Window x:Class="Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="147" Width="276" Name="Window1" AllowDrop="False">
<Grid Height="110" Name="Grid1" Width="253">
<Grid.RowDefinitions>
<RowDefinition Height="32*" />
<RowDefinition Height="32*" />
<RowDefinition Height="32*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="96*" />
<ColumnDefinition Width="96*" />
<ColumnDefinition Width="96*" />
</Grid.ColumnDefinitions>
<TextBox Grid.ColumnSpan="3" Margin="6,6,12,6" Name="TextBox1" />
<Button Margin="46,6,55,4" Name="Button1" Grid.ColumnSpan="2" Grid.Row="2">Button</Button>
<Label Grid.ColumnSpan="3" Grid.Row="1" Margin="6,2,6,0" Name="Label1">Label</Label>
<Button Margin="72,6,29,4" Name="Button2" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="2">Button</Button>
</Grid>
</Window>
'[PL] > VB & VB.NET' 카테고리의 다른 글
Model-View-ViewModel 디자인 패턴을 사용한 WPF 응용 프로그램 (0) | 2010.01.02 |
---|---|
[vb 2008 ] 구구단 프로그램예제 (0) | 2010.01.02 |
[ vb 2008 ] ImageList 예제 (0) | 2010.01.01 |
[ vb 2008 ] 사용자 컨트롤 매핑 (0) | 2009.12.31 |
[ vb 2008 ] ListView 예제. (0) | 2009.12.30 |