8 Reusable Code Snippet Topics

Remove Filter
Member Avatar for
Member Avatar for ddanbe

Sometimes you only want to enter numeric data in a textbox. You have two options here : Let a user type whatever he/she wants into a textbox, validate the input and show him or her an annoying message that he/she has done something wrong.:angry: Or: capture the key before input, …

Member Avatar for noface0711
1
3K
Member Avatar for tshukela.george

every combobox selection is replaced with what a user has selected, I want it not to be replaced so that all seleced combobox can be printed

Member Avatar for Begginnerdev
0
416
Member Avatar for kingsonprisonic

This module is for validating textboxes.... After using this module in your project you can simply validate all of your text boxes like [CODE] Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load AssignValidation(Me.TextBox1, ValidationType.Only_Digits) AssignValidation(Me.TextBox2, ValidationType.Only_Characters) AssignValidation(Me.TextBox3, ValidationType.No_Blank) AssignValidation(Me.TextBox4, ValidationType.Only_Email) End Sub [/CODE]

Member Avatar for Iamateur
4
1K
Member Avatar for Michael27
Member Avatar for vckicks

Use regular expressions, regex, to create an efficient textbox that only takes in digits as input.

Member Avatar for Chatthanz
1
822
Member Avatar for ndeniche

This snippet is to create a user control that will only take numbers. Numbers will accept decimal values, for which the NumberBox is validated to take only one. The implementation for the control is the same as it is for the TextBox, since it is inherited from this class and …

Member Avatar for PdotWang
0
2K
Member Avatar for Ramy Mahrous
Member Avatar for darkagn

Hi all, Well this is my 1000th post here at DaniWeb and I thought "What better way to celebrate than by posting my first ever code snippet?" This problem occurred in an application that I am working on. I have a password field in my form that was specified as …

Member Avatar for darkagn
2
359

The End.