본문 바로가기
반응형

Programing/vb.net55

visual basic,비주얼베이직,vb .net 강좌-문장에서 단어검색/text search,InStr,Sub visual basic,비주얼베이직,vb .net 강좌-문자열에서 단어검색/text search,InStr,Sub instr 은 첫문장만 검색가능하나, next 를 통해서 다음 문자열도 검색가능합니다. Public Class Form1 Dim a As String Dim b As String Dim c As String = 1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click search(c) End Sub Private Sub Button2_Click(sender As Object, e As EventArgs) search(c) End Sub Public Sub search(ByVal f As Integer.. 2017. 2. 4.
visual basic,비주얼베이직,vb .net강좌-알람시계,alarm clock,Audio Resources visual basic,비주얼베이직,vb .net강좌-알람시계,alarm clock,Audio Resources 현재시간과 정해진 시간을 세팅하면 팝업창과 소리가 울리는 프로그램입니다., Label 2개 , textbox 1개 ,button 1개, timer 1개를 셋팅합니다. timer 셋팅입니다 사운드를 Resources 에 등록합니다. Public Class Form1 Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick Label1.Text = TimeString If TimeString = Label2.Text Then My.Computer.Audio.Play(My.Resources.squeaky, AudioP.. 2017. 2. 3.
비주얼베이직강좌,visual basic .net-누른 키보드 값 알아보기, e.KeyChar ,KeyPressEvent, Public Class Form1 Private Sub Form1_KeyPress(sender As Object, e As KeyPressEventArgs) Handles Me.KeyPress If e.KeyChar = "0" Then MessageBox.Show("0 enter") End If End SubEnd Class 2017. 2. 3.
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.
반응형