Click here to Skip to main content
15,916,683 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: http Request and Response Pin
ybasha9-Oct-05 17:09
ybasha9-Oct-05 17:09 
Questionwin32.Registry Pin
militiaware9-Oct-05 14:52
militiaware9-Oct-05 14:52 
AnswerRe: win32.Registry Pin
Christian Graus9-Oct-05 16:05
protectorChristian Graus9-Oct-05 16:05 
AnswerRe: win32.Registry Pin
Anonymous9-Oct-05 16:06
Anonymous9-Oct-05 16:06 
QuestionTextbox KeyDown Overrides Pin
medicenpringles9-Oct-05 11:19
medicenpringles9-Oct-05 11:19 
AnswerRe: Textbox KeyDown Overrides Pin
Anonymous9-Oct-05 16:02
Anonymous9-Oct-05 16:02 
GeneralRe: Textbox KeyDown Overrides Pin
medicenpringles9-Oct-05 16:17
medicenpringles9-Oct-05 16:17 
GeneralRe: Textbox KeyDown Overrides Pin
Anonymous9-Oct-05 17:01
Anonymous9-Oct-05 17:01 
Hmm, well you intercept the key, increase the value, and say event handled. The caret won't move as you haven't asked it to.
Private Sub TextBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown<br />
    If (e.KeyCode = Keys.Up OrElse e.KeyCode = Keys.Down) AndAlso IsNumeric(Me.TextBox1.Text) Then<br />
        Dim i As Integer = CInt(Me.TextBox1.Text)<br />
        'check key again, if it is up add 1, otherwise add -1<br />
        i += IIf(e.KeyCode = Keys.Up, 1, -1)<br />
        Me.TextBox1.Text = i.ToString<br />
        'start text selection at end of text, length 0 to move caret<br />
        Me.TextBox1.SelectionStart = Me.TextBox1.Text.Length<br />
        Me.TextBox1.SelectionLength = 0<br />
        e.Handled = True<br />
    End If<br />
    <br />
End Sub

GeneralRe: Textbox KeyDown Overrides Pin
medicenpringles10-Oct-05 5:51
medicenpringles10-Oct-05 5:51 
Questionproblem on making an exe Pin
saood swar9-Oct-05 11:18
saood swar9-Oct-05 11:18 
AnswerRe: problem on making an exe Pin
Steve Pullan9-Oct-05 14:08
Steve Pullan9-Oct-05 14:08 
QuestionVb.Net Smooth Progress Bar Pin
sumod_madhavan9-Oct-05 9:50
sumod_madhavan9-Oct-05 9:50 
AnswerRe: Vb.Net Smooth Progress Bar Pin
Dave Kreskowiak9-Oct-05 14:37
mveDave Kreskowiak9-Oct-05 14:37 
QuestionEasy bone headed questions: How to read usenet programatically? Pin
TunaSandwich9-Oct-05 8:11
TunaSandwich9-Oct-05 8:11 
AnswerRe: Easy bone headed questions: How to read usenet programatically? Pin
TunaSandwich9-Oct-05 9:05
TunaSandwich9-Oct-05 9:05 
Questionreplacing memory values Pin
nocopro9-Oct-05 3:18
nocopro9-Oct-05 3:18 
AnswerRe: replacing memory values Pin
Robert Rohde9-Oct-05 9:05
Robert Rohde9-Oct-05 9:05 
AnswerRe: replacing memory values Pin
Steve Pullan9-Oct-05 14:11
Steve Pullan9-Oct-05 14:11 
GeneralRe: replacing memory values Pin
nocopro18-Oct-05 17:21
nocopro18-Oct-05 17:21 
QuestionBinding two Custom Collection into single Datagrid Pin
Abhishek Chauhan9-Oct-05 1:48
Abhishek Chauhan9-Oct-05 1:48 
Questionhow to using barcode scanner using vb.net Pin
loochuan8-Oct-05 19:28
loochuan8-Oct-05 19:28 
AnswerRe: how to using barcode scanner using vb.net Pin
Dave Kreskowiak9-Oct-05 3:42
mveDave Kreskowiak9-Oct-05 3:42 
GeneralRe: how to using barcode scanner using vb.net Pin
loochuan10-Oct-05 3:17
loochuan10-Oct-05 3:17 
GeneralRe: how to using barcode scanner using vb.net Pin
Dave Kreskowiak10-Oct-05 4:14
mveDave Kreskowiak10-Oct-05 4:14 
Questionuser login form needed Pin
BigMek7-Oct-05 23:50
BigMek7-Oct-05 23:50 

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.