Click here to Skip to main content
15,913,279 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionComboBox BUG!!!??? Pin
huamala10-Nov-09 23:07
huamala10-Nov-09 23:07 
AnswerRe: ComboBox BUG!!!??? Pin
Dave Kreskowiak11-Nov-09 7:19
mveDave Kreskowiak11-Nov-09 7:19 
GeneralRe: ComboBox BUG!!!??? Pin
huamala11-Nov-09 22:53
huamala11-Nov-09 22:53 
GeneralRe: ComboBox BUG!!!??? Pin
huamala11-Nov-09 23:29
huamala11-Nov-09 23:29 
GeneralRe: ComboBox BUG!!!??? Pin
Dave Kreskowiak12-Nov-09 3:49
mveDave Kreskowiak12-Nov-09 3:49 
GeneralRe: ComboBox BUG!!!??? Pin
huamala12-Nov-09 4:07
huamala12-Nov-09 4:07 
QuestionHow to disable numeric characters? Please help. Pin
MarkSquall10-Nov-09 21:41
MarkSquall10-Nov-09 21:41 
AnswerRe: How to disable numeric characters? Please help. Pin
Johan Hakkesteegt10-Nov-09 22:47
Johan Hakkesteegt10-Nov-09 22:47 
Fortunately it is pretty much equally easy in VB.NET, and in some ways even easier:

This example will actually do the opposite of what you are trying to do, but it is easy to adapt to your needs, and I think it shows how .NET makes certain operations even easier than VB6.
Private Sub Text1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Text1.KeyPress
        Try
            If Not (Char.IsNumber(e.KeyChar) Or Char.IsControl(e.KeyChar)) Then e.Handled = True
        Catch ex As Exception
            MsgBox(ex.ToString)
        End Try
    End Sub


A nice little added advantage can be found in the Handles bit: here you can actually add other textboxes, if you want them to behave the same way. (Handles Text1.KeyPress, Text2.KeyPress, Text3.KeyPress)

My advice is free, and you may get what you paid for.

QuestionDelete a node with double-clicking on it Pin
Milad.Biroonvand10-Nov-09 19:35
Milad.Biroonvand10-Nov-09 19:35 
AnswerRe: Delete a node with double-clicking on it Pin
Christian Graus10-Nov-09 19:36
protectorChristian Graus10-Nov-09 19:36 
AnswerRe: Delete a node with double-clicking on it Pin
Mycroft Holmes10-Nov-09 21:28
professionalMycroft Holmes10-Nov-09 21:28 
GeneralRe: Delete a node with double-clicking on it Pin
Milad.Biroonvand11-Nov-09 1:19
Milad.Biroonvand11-Nov-09 1:19 
GeneralRe: Delete a node with double-clicking on it Pin
Milad.Biroonvand11-Nov-09 3:36
Milad.Biroonvand11-Nov-09 3:36 
AnswerRe: Delete a node with double-clicking on it Pin
Shameel11-Nov-09 23:18
professionalShameel11-Nov-09 23:18 
QuestionCrystal report OLE Report Problem Pin
Anubhava Dimri10-Nov-09 18:54
Anubhava Dimri10-Nov-09 18:54 
QuestionData Analysis in VB6 Pin
juscester10-Nov-09 15:15
juscester10-Nov-09 15:15 
AnswerRe: Data Analysis in VB6 Pin
_Damian S_10-Nov-09 15:35
professional_Damian S_10-Nov-09 15:35 
GeneralRe: Data Analysis in VB6 Pin
juscester10-Nov-09 22:17
juscester10-Nov-09 22:17 
AnswerRe: Data Analysis in VB6 Pin
Shameel11-Nov-09 23:21
professionalShameel11-Nov-09 23:21 
Questioncd database in vb.net Pin
mimi846910-Nov-09 11:37
mimi846910-Nov-09 11:37 
AnswerRe: cd database in vb.net Pin
Christian Graus10-Nov-09 11:44
protectorChristian Graus10-Nov-09 11:44 
AnswerRe: cd database in vb.net Pin
Tom Deketelaere10-Nov-09 12:01
professionalTom Deketelaere10-Nov-09 12:01 
GeneralRe: cd database in vb.net Pin
Christian Graus10-Nov-09 12:02
protectorChristian Graus10-Nov-09 12:02 
GeneralRe: cd database in vb.net Pin
mimi846910-Nov-09 12:14
mimi846910-Nov-09 12:14 
GeneralRe: cd database in vb.net Pin
Christian Graus10-Nov-09 12:21
protectorChristian Graus10-Nov-09 12:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.