Results 1 to 4 of 4

Thread: A few questions

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    216

    A few questions

    [list=1][*]I have vb.net standard 02, and i want to know what to upgrade to. In the future i will be making a lot of games (multiplayer) databeses and servers. I prefer something thats not more than 500 bucks. Thanks[*]How can i make a textbox only allow numbers in it, you can only have numbers in the box? thanks[/list=1]

    Thanks!

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    A1-Not clear

    A2-
    VB Code:
    1. Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
    2.         Dim KeyAscii As Integer
    3.         KeyAscii = Asc(e.KeyChar)
    4.         'only allow numbers, a single decimal point, backspace  or enter        
    5.         Select Case KeyAscii
    6.             Case Asc("0") To Asc("9"), Asc(ControlChars.Back)
    7.                 'acceptable keystrokes
    8.                 e.Handled = False
    9.             Case Asc(".")
    10.                 e.Handled = False
    11.             Case Else
    12.                 e.Handled = True
    13.         End Select
    14.  
    15.     End Sub

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    216
    A1- (clearer) What version of VS.net should i get? I dont like vb.net standard because it limits what i can do and i want to do more stuff (like c and c++) But i dont know which is the best for Multiplayer game programming... If thats not clear tell me

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Well , VS.NET2003 is much better than VS.NET2002 (faster , enchanced , more features added , etc ) . VB , C# can handle Mutliplayer games connections .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width