Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2004-04-01
2
Medium Priority
?
307 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

704 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