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


Combobox name when changing RightToLeft!

Posted on 1999-10-20
Medium Priority
Last Modified: 2010-05-02
I have a combobox and two command buttons on my form.
When clicking Command1, I change the RightToLeft property
of the combobox to True.
When clicking Command2, to False.
The problem is:
When the combobox is changing it's direction, the combobox
name (Combo1, for instance) appears in the combobox for a very short period of time (some miliseconds), and then disappears.
The Text property is blank.
Answers like setting the combobox to visible=false when
changing are not acceptable.
Answers like "yes you are right, this is a BUG", also
won't do... because I figured this out already! :-)

Question by:ViniT
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
LVL 14

Accepted Solution

mcrider earned 280 total points
ID: 2143753
Declare the following function:

     Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long

Then add the following to your buttons:

LockWindowUpdate Form1.hWnd
Combo1.righttoleft = True
LockWindowUpdate 0&

LVL 32

Expert Comment

ID: 2143761
What's the qurstion?
LVL 14

Expert Comment

ID: 2143800

The question was basically "how do you stop this flicker?"


Expert Comment

ID: 6837501
This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects the problem and the expert will now receive these points; points verified.

Please click on your Member Profile and select "View Question History" to navigate through any open or locked questions you may have to update and finalize them.  If you are an EE Pro user, you can also choose Power Search to find all your open questions.

This is the Community Support link, if help is needed, along with the link to All Topics which reflects many TAs recently added.
Thank you,
Moderator @ Experts Exchange

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…
Suggested Courses

661 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