반응형 sub2 visual basic,비주얼베이직,vb .net강과-메소드교체,함수변경,funcion,sub,method change,RemoveHandler,AddHandler visual basic,비주얼베이직,vb .net강과-메소드교체,함수변경,funcion,sub,method change,RemoveHandler,AddHandler기존 오브젝트에 있던 함수를 다른 함수로 교체합니다. Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click MessageBox.Show("Button1_Click") End Sub Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click RemoveHandler Button1.Click, AddressOf Button1_Click .. 2017. 2. 6. 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. 이전 1 다음 반응형