Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-04-01
2
Medium Priority
?
309 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 80 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

886 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