Solved

ImageCombo vb6 (I can only see end of text not the beginning)

Posted on 2004-04-01
2
294 Views
Last Modified: 2013-12-25
I have a problem with the imageCombo

I am loading an imageCombo with  2 fields
Id and Description

I select an item in the combo and if the text (Combination ID-Description)
is bigger then the size of the combo then it moves the cursor to the very right of the imagecombo and very annoying for the user who has to press the back key till he can see all the text.

Is there any way i can select an item in the combo and move the cursor to the very left of the combo so that i can see the beginning of the text rather than the end?

thanks in advance


0
Comment
Question by:Gabriel_Brienza
2 Comments
 
LVL 6

Accepted Solution

by:
mmusante earned 20 total points
ID: 10733125
Try this:

Private Sub icYourCombo_GotFocus()
    icYourCombo.SelStart = 0
    icYourCombo.SelLength = 0
End Sub
0
 

Author Comment

by:Gabriel_Brienza
ID: 10733176
Thanks a lot it works in the click event

0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now