Solved

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

Posted on 2004-04-01
2
295 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

863 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

22 Experts available now in Live!

Get 1:1 Help Now