User Profile

Collapse

Profile Sidebar

Collapse
iDaz
iDaz
Last Activity: Mar 13 '07, 08:00 AM
Joined: Feb 24 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • iDaz
    replied to a button that adds text to a textbox
    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!
    See more | Go to post

    Leave a comment:


  • iDaz
    started a topic a button that adds text to a textbox

    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,...
    See more | Go to post

  • iDaz
    replied to One decimal point, and 2 numbers :)
    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 Value
    ...
    See more | Go to post
    Last edited by willakawill; Feb 25 '07, 05:57 PM. Reason: please use code tags when posting code

    Leave a comment:


  • iDaz
    replied to One decimal point, and 2 numbers :)
    THANK YOU VERY MUCH FOR YOUR HELP!!!!!

    i really do appreicate it
    See more | Go to post

    Leave a comment:


  • iDaz
    started a topic One decimal point, and 2 numbers :)

    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
    ...
    See more | Go to post
    Last edited by willakawill; Feb 24 '07, 07:00 AM. Reason: please use code tags when posting code
No activity results to display
Show More
Working...