473,385 Members | 1,740 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

highlighting text in textbox not working in vb6

3
Hi All,
My highlighting text in textbox not working in vb6 everywhere. This is weird , if it is working at few places, then it should work everywhere. Following is my code in form load-

Expand|Select|Wrap|Line Numbers
  1. txt_1.SelStart = 0
  2. txt_1.SelLength = Len(txt_1.Text)
  3.  
Any help is appreciated. Thanks in advance.
Oct 17 '16 #1
1 1093
I'm not sure that it can work in form load.
Try it in form activate
Oct 25 '16 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Droope | last post by:
I use the following code to no avail....... Private Sub txtCode_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtCode.Enter i have tried this...............
5
by: Adelson Anton | last post by:
Hi all, Ok, this is what I want to do: When you press, say Ctrl+K ( it doesn't matter which event), I want the , say, second word in the document to be highlighted. Anyone has any idea how...
2
by: Shyguy | last post by:
Is there any way to stop Access from highlighting all the text in a memo box? If I click again the text is no longer highlighted, but I would like to get it to not highlight at all. Thanks for...
1
by: GGerard | last post by:
Hello When tabbing in a textbox that contains text, the text string is usually highlighted so that if the user starts typing new text in the textbox, the old text is erased. Is there a way...
1
by: VMI | last post by:
I have two textbox controls and I want my application to automatically highlight in the second textbox control the same amount of chars (and the same position) that are being highlighted in the...
1
by: JemPower | last post by:
Hi All, I'm trying to create a VERY simple text editing page, using a textbox that the user can type, and some buttons to make the selected text bold, italic, underline, etc, etc. I've seen a...
1
by: sh | last post by:
How can I highlight the text in a cell, as if it had been selected with the mouse? I have a validation routine that checks the data in each column. If a cell fails the validation, I show a...
1
by: darkk | last post by:
I was wondering how I could highlight everything in a textbox just by clicking on it. example: textbox1 has "0" as text, I want to click and type 1, instead of having to select, then delete the 0...
1
by: mikename | last post by:
Hi, I'm currently working on a project which is essentially a clickable world map. I have successfully mapped the image and using a OnMouseOver = "Continent()" OnMouseOut = "World()" command in...
14
by: > Adrian | last post by:
Is there a way of stopping text from highlighting in textbox? Many thanks, Adrian.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.