Thanks for giving code. I need same code in vb.net. And also when type alphabets it should not display on textbox even though it is not valid. Using some select case and if condiition statements Private Sub txtYearKeyPress( ByVal sender As TextBox, ByVal e As System.Windows.Input.KeyEventArgs) Handles txtYear.KeyDown Dim pressedKey As Input.Key = e.Key Select pressedKey Case (Key.Back), (Key.D0) To (Key.D9), Key.NumPad0 To Key.NumPad9, Key.Tab e.Handled = False Case Else e.Handled = True End Select End Sub the above code is used to enter numbers like that i need in the format of when i type 6th digit it should not enter in to textbox only - should enter please check it give me code as soon as possible.
VB.Net IP Camera Control. This source code is free for download and use. I'm not guarantee it will work right away. You will need to configure things like the.dll file (Library). I'm working on this project many years back. I cant provide any support on this source code. Visual Basic (VB) is a RAD (Rapid Application Development) tool, that allows programmers to create Windows applications in very little time. It is the most popular programming language in the world, and has more programmers and lines of code than any of its nearest competitors.
Thamks & regards krishna prasad. One option is to automatically enter the '-' after the 5th digit is entered using the KeyUp event. If the 6th digit is not entered the '-' can be removed in the Leave event. The key pressed is not commited to the textbox's Text property until the KeyUp event fires. Sample Code: Private Sub TextBox1KeyUp( ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyUp If TextBox1.TextLength = 5 Then TextBox1.AppendText( '-' ) End If End Sub Private Sub TextBox1Leave( ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.Leave If TextBox1.TextLength = 6 Then TextBox1.Text = TextBox1.Text.Substring(0, 5) End If End Sub.
This application, entitled 'SOLO CODE LIBRARY', is intended to help programmers and the like manage their code snippets, routines, methods etc. In a simple and organized fashion. Similar to.NET Snippets, this VB6 GUI allows you to browse your archived code files, grouped by language and categories. Sample routines and methods are included to get you started. Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog.
Once downloaded, open the.zip file from your local drive using WinZip or a comparable program to view the contents.
Comments are closed.
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |