473,668 Members | 2,600 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ToolStripComboB ox.DroppedDown

Hello.

I am trying to set ToolStripComboB ox.DroppedDown inside of the Leave
event and it does not work:

public class MyToolStripComb oBox : ToolStripComboB ox
{
public MyToolStripComb oBox()
{
Leave += new EventHandler(Ex tendedToolStrip ComboBox_Leave) ;
}

protected void MyToolStripComb oBox_Leave(obje ct sender,
EventArgs e)
{
if (<SomeCondition >)
{
DroppedDown = true;
}
}
}

The drop down list actually drops down but it is inmediatly rolled up.
I have found the following workaround:

public class MyToolStripComb oBox : ToolStripComboB ox
{
public MyToolStripComb oBox()
{
Leave += new EventHandler(Ex tendedToolStrip ComboBox_Leave) ;
}

protected void MyToolStripComb oBox_Leave(obje ct sender,
EventArgs e)
{
if (<SomeCondition >)
{
Parent.BeginInv oke(new MethodInvoker(S etDroppedDown),
null);
}
}

private void SetDroppedDown( )
{
DroppedDown = true;
}
}

And it works. I suppose this is a bug inside the ToolStripComboB ox
control. I just want to write about it so if someone finds the same
problem she will find something on the internet. Also, if someone from
Microsoft would like to leave a comment, it will be appreciated.

Thank you.

Jan 8 '07 #1
0 1231

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2484
by: Chandra | last post by:
Hello Sir, This is Chandra and Working as Software Engineer. I got a really weird problem with ComboBoxes. I have set the ComboBox DroppedDown Property to true. Now the actual problem is When the ComboBox DroppedDown is Shown I have to actually click twice to get out of the form or need to click twice to do anything.
0
1595
by: Job Lot | last post by:
How can i bind ToolStripComboBox to a DataTable? There is no DataSource, DisplayMember & ValueMemeber property? Thanks
3
7566
by: bds | last post by:
Is there any way to databind a ToolStripComboBox? I have a form where I'd like a databound combobox to be the parameter selection of a DataGridView. This combobox comes from a table with your basic two column id and description fields. I'm interested in displaying the descriptions in the combobox and having the id be used for the parameter. I can see how this can be done with a simple combobox, but I do not see DataBinding for the...
5
11477
by: Manuel | last post by:
How can I add an item to a ToolStripComboBox and specify a DisplayMember and a ValueMember?
0
937
by: GSL | last post by:
Our application is written in VS/VB 2005. We have several toolstripcomboboxes. The tscbx's dont close until you click on something else outside the tscbx. We initially developed the app in VS/VB 2005 beta 2 and it worked fine. Is there a property that needs to be set differently or is this a bug?
1
2164
by: Jim Hubbard | last post by:
Why isn't the Keypress event of the System.Windows.Form.ToolStripComboBox triggered by hitting the Enter key? I cannot trap Keys.Enter or Keys.Return in the Keypress event.
2
4891
by: Jason Richmeier | last post by:
Perhaps it is because it is the end of the day and my eyes are tired of looking at code but I cannot seem to figure out what I am doing wrong and what I can do (if anything) to fix it. On a Windows form, I have a ToolStripComboBox object with a handful of entries in the Items collection. I would like to change the text of the ToolStripComboBox object (using the Text property) to something other than the text of one of the items in the...
2
5664
by: MyndPhlyp | last post by:
I would like a small DropDownList style ComboBox on the ToolStrip but it seems VB 2005 is not going to let me set the .Width property to a value less than 75 in Designer mode. Setting it programmatically has no effect. What's the trick to getting a smaller DropDownList?
2
1778
by: Paul | last post by:
VB.NET 2003. I am loading a dialog box form with a ComboBox. I'm using a DropDownStyle of "DropDown" rather than "DropDownList". I want them to be able to type in it fill in as they type. The ComboBox contains a list of cities. The form will receive a parameter of one alpha-numeric character. I want to do two things (that I don't know how to do): 1. The parameter received to be moved to the ComboBox and the cursor to be...
0
8459
marktang
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...
0
8790
jinu1996
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...
0
8652
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6206
isladogs
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...
0
5677
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();...
0
4202
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2782
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
2
1779
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.