728x90
VB.NET 과 C# 의 표현이 어떻게 다른지 알 수 있는 거 같아서 적어둔다.
'// Visual Basic
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim MyText As New TextBox()
MyText.Location = New Point(25, 25)
Me.Controls.Add(MyText)
End Sub
// C#
private void button1_Click(object sender, System.EventArgs e)
{
TextBox myText = new TextBox();
myText.Location = new Point(25,25);
this.Controls.Add (myText);
}
728x90
'C# > 문법 및 기능' 카테고리의 다른 글
C# enum (0) | 2015.09.23 |
---|---|
C# 과 VB 문법 차이 (0) | 2015.09.22 |
C# TextBox 입력값(한글, 영문, 숫자) 검사, 엔터키 입력, readonly (0) | 2015.09.11 |
C# 콤보박스(comboBox) (0) | 2015.09.09 |
C# 키 입력처리 이벤트, Load Event, Form_Closing (0) | 2015.08.30 |