전체 글203 DatagridView 이벤트 Numbers, Backspace & Delete 키 전용 VB.Net을 허용하려면 Private Sub DataGridView1_EditingControlShowing(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewEditingControlShowingEventArgs) Handles DataGridView1.EditingControlShowing Select Case DataGridView1.CurrentCell.ColumnIndex Case Is = 0, 1 AddHandler CType(e.Control, TextBox).KeyPress, AddressOf TextBox_keyPress End Select End Sub Private Sub TextBox_keyPress(ByVal sender As Obj.. 2018. 11. 9. 숫자와 " . " 과 백스페이스만 입력가능하게 하기 If (Not Char.IsDigit(e.KeyChar) _ AndAlso ((e.KeyChar Microsoft.VisualBasic.ChrW(46)) AndAlso (e.KeyChar ControlChars.Back))) Then e.Handled = True End If 2018. 11. 9. 연결된 폼이 실행되어있는지 확인 If Application.OpenForms().OfType(Of TPlan_Benefits).Any Then 2018. 11. 8. 클래스 라이브러리 사용 시 데이터 Form간 데이터 값 넘겨주기 꼼수 >> 1 모듈에서 공용으로 사용할 수 있는 함수를 지정해줌 '요금제 선택창에서 메인창으로 값을 넘겨주기 위하여 공용으로 선언 Public mainForm As TPlan_Calc_Lib >> 2 지정해준 폼 LOAD에서 공용에서 선택한 함수가 내 폼이라고 지정해줌 요금제 선택창에서 메인창으로 값을 넘겨주기 위하여 공용으로 선언 값을 지정 mainForm = Me 2018. 11. 8. 이전 1 ··· 21 22 23 24 25 26 27 ··· 51 다음