User Profile
Collapse
-
WOW thank you very much everyone for your help!! i really do appreciate it! you've just helped me complete an assignment for my IT course! thank you all! -
a button that adds text to a textbox
hello! i have a textbox, and 2 buttons. this is what i would like:
when i click button 1, "1" is added to the textbox. when i click button 2, "2" is added to the textbox.
i have tried to do this myself, but when ever i click one of the buttons, it clears the digit that is already in the textbox, and then adds a new digit. i want it to keep adding digit after digit. eg. if i press button 1 three time,... -
hariharanmca i have an error with your code
...Code:Public Function Check_Decimal(pKeyascii As Integer, pStrValue As String, Optional pOptNoDigit As Integer, Optional pOptNoDecimal As Integer) As Integer If pKeyascii = pKeyascii = Keys.Back Or pKeyascii = Keys.Enter Then Check_Decimal = pKeyascii : Exit Function ' Line 1 'Line 1 - Check for the Key value is Enter or Backspace then Retutn KeyAscii ValueLeave a comment:
-
THANK YOU VERY MUCH FOR YOUR HELP!!!!!
i really do appreicate itLeave a comment:
-
One decimal point, and 2 numbers :)
hi everyone!
i've searched many sites including this one for the answer to me question, but i'm still in a bit of trouble. this is my current code...
...Code:Private Sub unitPriceKeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles unitPriceTextBox.KeyPress If Not (Char.IsDigit(e.KeyChar) Or Char.IsControl(e.KeyChar) Or e.KeyChar = ".") Then e.Handled
No activity results to display
Show More
Leave a comment: