TechRepublic : A ZDNet Tech Community

1 Resources for

selstart

  • Subscribe to this listing via:
  • RSS
  • Email

TechRepublic Resources

VB6 Tip: Selecting all text when a Text Box gets the focus
This article originallyappeared in the Builder.com Visual Basice-newsletter. Clickhere to subscribe automatically.When the focus moves to a Text Box that contains text,Visual Basic 6's default is to position the caret editing cursor at the startof the text. In some applications, it might be more appropriate to have all ofthe control's...
Tags: Box, Microsoft Visual Basic, Microsoft Visual Basic 6.0, Peter Aitken, SelLength, SelStart, Text, Text Box
Technical articles 2004-12-10

Additional Resources

Prevent bugs by filtering input in VB6
Slight improvementIn the first couple of conditional statements, you wisely used ASC(".") and ASC("-") instead of hard coding the numerics to check for valid characters. This same method should be done on the last conditional to maintain the flexibility and readability of the code.That is, the lineElseIf key...
Tags: Asc, ElseIf IsNumeric, Function NumericCharsOnly, InStr, jruby, Microsoft Visual Basic 6.0, NumericCharsOnly, programming, tb.Text
Discussion threads 2005-06-17
VB6 ToolTipText
How do I produce a "wrap round" in the text inputfor the ToolTipText property. Would like to produce a "box" of text not one complete line of text.You may want to try the carriage return vbCr preceeded and followed by ampersand. I've never tried using in this context, but it...
Tags: Len, Me.txtMsg.SelLength, Me.txtMsg.Text, Microsoft Visual Basic 6.0, programming, stokecity, TempMsg, Text1.Text, trapper, vbCr
Q&A 2005-05-13
  • << Previous
  • page 1 of 1
  • Next >>


IT Manager's Tool Kit, Third Edition
Proven peer-authored advice and over 30 templates cover a variety of management topics to help you overcome staffing, financial, disaster planning and other technology challenges.
Buy Now
Quick Reference: Linux Commands
Reduce stress and speed up resolutions with the easiest command references right at your fingertips. You'll receive a PDF file covering Linux, packed with the most common commands you'll need and use daily.
Buy Now

Keep up with ZDNet