본문 바로가기
반응형

visual basic.비주얼베이직3

visual basic.비주얼베이직, vb .net강좌-데이터그리드뷰 입력,수정,삭제/DataGridView add,update,delete visual basic.비주얼베이직, vb .net강좌-데이터그리드뷰 입력,수정,삭제/DataGridView add,update,delete 위와 같이 콘ㅌ롤을 배치합니다. 순서대로 Name,Email.Age 를 추가합니다. Public Class Form1 Dim index As Integer Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click DataGridView1.Rows.Add(TextBox1.Text, TextBox2.Text, TextBox3.Text) End Sub Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button.. 2017. 2. 6.
visual basic.비주얼베이직,vb .net 강좌-랜덤좌표 이미지,random ,radomize,Location 랜덤하게 이미지를 화면에 위치시키는 프로그램입니다. PictureBox,Timer ,label 2개의 콘트롤을 화면에 위치시킵니다.. Timer 속성 세팅 입니다. 위 의 그림처럼 이미지를 임포트 합니다. Public Class Form1 Dim _x As Integer Dim _y As Integer Dim rnd As New Random Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick _x = rnd.Next(0, Me.Width) 'Me.Width 폼의 x 크기 _y = rnd.Next(0, Me.Height) Label1.Text = _x & "." & _y PictureBox1.Location = New .. 2017. 2. 3.
visual basic.비주얼베이직,vb .net강좌-탭콘트롤,TabControl data delivery, tab transfer visual basic.비주얼베이직,vb .net강좌-탭콘트롤,TabControl data delivery, tab transfer TabControl 추가하고,첫번째 탭에 textbox , button 을 추가합니다. 두번째 탭에 textbox , button 을 추가합니다. TabControl 속성창의 윗부분을 클릭해서 Editor 를 뛰운후에 text 와 name 을 수정합니다.backcolor 도 취향에 맞게 수정합니다. Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click TextBox2.Text = TextBox1.Text ' TextBox1 -tab 1의 TextBo.. 2017. 2. 1.
반응형