Click here to Skip to main content
15,920,687 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: vb code for pictures Pin
Christian Graus4-Apr-06 18:56
protectorChristian Graus4-Apr-06 18:56 
Questionhow to set column in MSHFlexGrid VB.net Pin
wilde4-Apr-06 15:56
wilde4-Apr-06 15:56 
AnswerRe: how to set column in MSHFlexGrid VB.net Pin
Chatura Dilan4-Apr-06 16:30
Chatura Dilan4-Apr-06 16:30 
GeneralRe: how to set column in MSHFlexGrid VB.net Pin
wilde4-Apr-06 16:45
wilde4-Apr-06 16:45 
GeneralRe: how to set column in MSHFlexGrid VB.net Pin
Chatura Dilan4-Apr-06 17:22
Chatura Dilan4-Apr-06 17:22 
GeneralRe: how to set column in MSHFlexGrid VB.net Pin
wilde4-Apr-06 19:38
wilde4-Apr-06 19:38 
Questionvb.net code question Pin
chippuppy4-Apr-06 15:30
chippuppy4-Apr-06 15:30 
AnswerRe: vb.net code question Pin
FrankyT4-Apr-06 16:00
FrankyT4-Apr-06 16:00 
heres how I would do it. remember, in vb, try not to do it the hard way. most of the time you'll find an easy one.
BTW somthing seems wrong with your keypress event handler, I'm used to
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress

now if your working in vb 6 or VBA this code may not work.
by the way if this is homework, at least paraphrase... geta little edu for your money.


Sub Text_KeyPress(KeyAscii As Integer)
If isAllNumbers(uiEnterInterNumTextBox.Text)Then
KeyAscii = 0
uiEnterInterNumTextBox.Text = KeyAscii
End If
End Sub

Private Function isAllNumbers(ByVal teststring As String) As Boolean
Dim isgood As Boolean = True
For Each c As Char In teststring
If Not Char.IsDigit(c) and not(c = ".") and not( c = ",") Then
isgood = False
Exit For
End If
Next
Return isgood
End Function

hey...slang is the vernacular for the vernacular...wow
AnswerRe: vb.net code question Pin
Chatura Dilan4-Apr-06 16:11
Chatura Dilan4-Apr-06 16:11 
GeneralRe: vb.net code question Pin
FrankyT4-Apr-06 16:16
FrankyT4-Apr-06 16:16 
Questionreset form Pin
lupa-nikki4-Apr-06 14:16
lupa-nikki4-Apr-06 14:16 
AnswerRe: reset form Pin
Guffa4-Apr-06 14:39
Guffa4-Apr-06 14:39 
GeneralRe: reset form Pin
lupa-nikki4-Apr-06 14:54
lupa-nikki4-Apr-06 14:54 
GeneralRe: reset form Pin
FrankyT4-Apr-06 15:34
FrankyT4-Apr-06 15:34 
AnswerRe: reset form Pin
Scott Page5-Apr-06 7:37
professionalScott Page5-Apr-06 7:37 
QuestionHow to Access a windows service's property from a Form Pin
FrankyT4-Apr-06 13:04
FrankyT4-Apr-06 13:04 
QuestionParsing text with VBA Pin
Mark Oium4-Apr-06 11:22
Mark Oium4-Apr-06 11:22 
AnswerRe: Parsing text with VBA Pin
FrankyT4-Apr-06 15:45
FrankyT4-Apr-06 15:45 
QuestionAdding picture to database Pin
Keisha1234-Apr-06 10:27
Keisha1234-Apr-06 10:27 
AnswerRe: Adding picture to database Pin
FrankyT4-Apr-06 13:10
FrankyT4-Apr-06 13:10 
QuestionForm.Resize getting error when Minimize or Maximize is pressed Pin
ChemmieBro4-Apr-06 9:10
ChemmieBro4-Apr-06 9:10 
Questioninstall project Pin
SVb.net4-Apr-06 9:03
SVb.net4-Apr-06 9:03 
AnswerRe: install project Pin
FrankyT4-Apr-06 13:35
FrankyT4-Apr-06 13:35 
QuestionCode Behind........... Pin
daviiie4-Apr-06 2:51
daviiie4-Apr-06 2:51 
AnswerRe: Code Behind........... Pin
Vasudevan Deepak Kumar4-Apr-06 4:14
Vasudevan Deepak Kumar4-Apr-06 4:14 

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.