I have the following issue with a ComboBox, specifically a dropdown list.
When the dropdown is shown, the items spill over the right edge of the
screen. Basically, the dropdown is about 30 pixels too wide. I have no
option to change where the combobox is. It must be on the right side for
usability reasons (with the exception of a left-handed user).
Ideally, what I would love to be able to do is make the drop down rectangle
shift over to the lift and basically make the drop down aligned with the
right edge of the control (instead of the left). Obviously, there's no easy
way to do this, but I think some nasty Win32 calls could do it. Any ideas?
Thanks,
kate sporks 2 4196
There's an article that outlines how to build a more robust ComboBox. The
issue that you've described is discussed. http://msdn.microsoft.com/library/de...ercombobox.asp
--
Tim Wilson
..NET Compact Framework MVP
"kate sporks" <ka********@dis cussions.micros oft.com> wrote in message
news:3A******** *************** ***********@mic rosoft.com... I have the following issue with a ComboBox, specifically a dropdown list. When the dropdown is shown, the items spill over the right edge of the screen. Basically, the dropdown is about 30 pixels too wide. I have no option to change where the combobox is. It must be on the right side for usability reasons (with the exception of a left-handed user).
Ideally, what I would love to be able to do is make the drop down
rectangle shift over to the lift and basically make the drop down aligned with the right edge of the control (instead of the left). Obviously, there's no
easy way to do this, but I think some nasty Win32 calls could do it. Any
ideas? Thanks,
kate sporks
Thanks! That's exactly what I needed. I knew that I wasn't the first to
want that commonsense functionality. Whee!
kate sporks
"Tim Wilson" wrote: There's an article that outlines how to build a more robust ComboBox. The issue that you've described is discussed. http://msdn.microsoft.com/library/de...ercombobox.asp
-- Tim Wilson ..NET Compact Framework MVP
"kate sporks" <ka********@dis cussions.micros oft.com> wrote in message news:3A******** *************** ***********@mic rosoft.com... I have the following issue with a ComboBox, specifically a dropdown list. When the dropdown is shown, the items spill over the right edge of the screen. Basically, the dropdown is about 30 pixels too wide. I have no option to change where the combobox is. It must be on the right side for usability reasons (with the exception of a left-handed user).
Ideally, what I would love to be able to do is make the drop down rectangle shift over to the lift and basically make the drop down aligned with the right edge of the control (instead of the left). Obviously, there's no easy way to do this, but I think some nasty Win32 calls could do it. Any ideas? Thanks,
kate sporks
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: jean |
last post by:
hi:
i am developing a custom combobox for my company's needs that is made
up of a textbox, listbox, button. i am using c#. everything is fine
except for one issue.
in a normal combobox, when the dropdown is visible and the user clicks
anywhere else, the dropdown gets hidden. i am trying to replicate
this behavior and have tried using the Leave and LostFocus events. i
have had marginal success when my dropdown is visible and i...
|
by: Nicolae Fieraru |
last post by:
Hi All,
I am trying to change the rowsource of a combobox when I click on it. I
played with many events, associated with the form and the combobox, but
still haven't figured out what is the way of doing it.
I have a table with products, tblProducts, some of them are Active while
others are Inactive.
The form shows all the products purchased by a customer, both Active and
Inactive in a ComboBox, cbProducts.
My client wants to view all...
|
by: NCrum |
last post by:
I want to set the Default value of a Combobox for any changeable record and have got this working but it is totaly unsatisfactory
see the code below
I loop through the items in the Combo looking for a match between cVal and the selectedValue then stop when I do have a match
the obvious problem is that each iteration fires the selectedIndexChanged but also for a large list this will slow everything down.
There must be a better way
int...
|
by: TT (Tom Tempelaere) |
last post by:
Hay there,
I'm writing my own DataGridComboBoxColumn because .NET 1.1 does not have one
(I hope .NET 2.0 supplies one). I based it on this article:
http://msdn.microsoft.com/msdnmag/issues/03/08/DataGrids/default.aspx
I have a problem when there are two DataGrid's on one form, and when I
switch focus from one grid to the other. To be more precise, when I'm editing
a combo box column in one grid, and then click in the combo column of...
|
by: ross kerr |
last post by:
Hi All,
I am extending the combobox to create a control that
selects an item based on the text the user is typing into
the text area of the control.
I have an issue that occurs only when i drop down the
combo box as the users typing.
When the on leave event is fired the value in the selected
| |
by: Mike |
last post by:
Hi all!
I have an OwnerDrawVariable ComboBox in .net.
In the ComboBox DropDown event I display another control - works well.
In the control's Leave event I remove the control - works well.
So if you click on the DropDown button the control is displayed.
If you click anywhere other than the DropDown button the control is
removed. This works well. Sequence of events is:
|
by: |
last post by:
Hi All.
I have a problem with combobox, what I want is when combobox gets focus I need it to show the dropdown list
t.This is fine if the user selects the combobox via keystrokes but when the combobox is selected via mouse click it draws
the dropdown list twice. As I am trapping the enter event, I can see thats is called as well some other ?
the style is set to dropdownlist as they must select one from the list
I assume I must trap a...
|
by: Gil |
last post by:
Is there a way to tell if a combbox is in dropdown mode.
I tried and if statement combobox.dropdown = true
but i get an error. dropwndown function doesnt store if its true or
false
what i am trying to do is make an autoscroll combobox. like you have on
html textbox's, but this time you hit enter for a change to be made. i
do this because i dont want to requery every time a single letter is
inputed. it would be too slow. so i make them hit...
|
by: latortugamorada |
last post by:
I have searched high and low for a solution to this incredibly vexing problem and am at the brink of insanity/desperation/severe upsettedness. I have a problem with ComboBoxes in .NET. Once I click on the ComboBox (to choose from the dropdown list), the control stays focused/selected/active with no apparent way of deactivating it. I've created a small program that demonstrates my problem. If you comment out the lines pertaining to the...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |