473,797 Members | 3,079 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dropdown outside panel

Hi I have made my own control with a dropdown functionality like a combobox
and it works just great, but I've got one problem remaining. If you put a
combobox on a panel and press the little arrow the dropdown part enlarges
outside the bounds of the panel. How can I achieve this for my own
usercontrol? My usercontrol is a textbox with on it's right side a button
and if you click the button a datagrid becomes visible below the textbox,
but I can't find out how to draw the datagrid outside the bounds of the
panel

Thanks in advance

Greetz Peter
Nov 21 '05 #1
3 2864
The panel of a combobox dropdown is a separate window that isn't a child of
the combobox parent. I suggest that you need to redesign your control to use
a NativeWindow based implementation for the dropdown panel.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Peter Proost" <pp*****@nospam .hotmail.com> wrote in message
news:e3******** ******@TK2MSFTN GP14.phx.gbl...
Hi I have made my own control with a dropdown functionality like a
combobox
and it works just great, but I've got one problem remaining. If you put a
combobox on a panel and press the little arrow the dropdown part enlarges
outside the bounds of the panel. How can I achieve this for my own
usercontrol? My usercontrol is a textbox with on it's right side a button
and if you click the button a datagrid becomes visible below the textbox,
but I can't find out how to draw the datagrid outside the bounds of the
panel

Thanks in advance

Greetz Peter

Nov 21 '05 #2
"Peter Proost" <pp*****@nospam .hotmail.com> schrieb:
Hi I have made my own control with a dropdown functionality like a
combobox
and it works just great, but I've got one problem remaining. If you put a
combobox on a panel and press the little arrow the dropdown part enlarges
outside the bounds of the panel. How can I achieve this for my own
usercontrol?


Use .NET Forms as Popup Windows
<URL:http://vbaccelerator.c om/article.asp?id= 13309>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
Thanks for the tips Bob and Herfried they are very helpful

Greetz Peter

--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning.
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> schreef in bericht
news:#D******** ******@TK2MSFTN GP10.phx.gbl...
"Peter Proost" <pp*****@nospam .hotmail.com> schrieb:
Hi I have made my own control with a dropdown functionality like a
combobox
and it works just great, but I've got one problem remaining. If you put a combobox on a panel and press the little arrow the dropdown part enlarges outside the bounds of the panel. How can I achieve this for my own
usercontrol?


Use .NET Forms as Popup Windows
<URL:http://vbaccelerator.c om/article.asp?id= 13309>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4

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

Similar topics

2
1470
by: H | last post by:
So, I wanna have a panel with some buttons "outside" my mainform. How can this be done ? Do I have to make a new form, with the panel in it, and put it beside my mainwindow ? If I just can make a panel, is there some way to dock it outside my mainwindow ? Also, how can I get the coordinates for example a button in a form, counting (0, 0) in upper left corner of the screen, not upper left of my form ? Third, how do I make my window...
0
866
by: David | last post by:
Hi, If I put the dropdown control in a panel control, after I disable the container--panel control, I can still drop down the dropdown control. How can I disable a dropdown in a container? Thank you! David
1
2850
by: Andy Sutorius | last post by:
Hi, I have 4 panels, each panel has a dropdown and a "next" button. I would like to get the selected value of the dropdown after the next button is clicked. I thought I could use the following (ddlChooseEmail.SelectedValue) to grab the value but it does not work. Is there something special about panels that I need to do in order to get the selected value of the dropdown? Thanks,
2
4156
by: Chris Lane | last post by:
Hi, I have a web control button that I use for submitting a form, for some reason this causes a dropdownlist web control I have in a panel at the top of the form to execute it's selected index changed event even though on this postback that value hasn't been changed. I believe viewstate and validation are causing this value to be considered changed somehow. When the page is first loaded the only control that causes postback is this...
2
1959
by: Sin Jeong-hun | last post by:
If I create a button like control, then I simply can draw button-like lines on my User Control's surface by getting its Graphics g. If I draw outside of the control's ClientRectangle (for example, -10,-10,-5,-5), it is simply cut out. But what about if I'm trying to make a dropdown list control in .NET? The dropped down part is outside of the control's ClientRectangle. How can I do such thing? Maybe create a borderless window and display...
5
3918
by: Jeff User | last post by:
Hi all The date values in my dropdown list appear as mm/dd/yyyy Specifically, the day always contains 2 digits. I need to set the selected index of the dropdown to the date that equals another date value that does not use 2 digits for the day, if the day is less that 10. example ddlBeginDate.SelectedIndex = ddlBeginDate.Items.IndexOf(ddlBeginDate.Items.FindByText(someClass.BeginDate.ToShortDateString()));
2
5063
by: Vidhura | last post by:
My application contains 2 tabpages.The second tabpage contains panel .The panel contains series of combobox and textboxes. If the item not selected in combobox and the user click on the another tabpage,it should show "The option from dropdown should be selected" and focus the combo .I have did this in validating event it works fine till focusing the combo.If I again try to select the combo which is focused,the dropdown of the combo is...
1
3207
by: =?Utf-8?B?U3Rvcm1icmluZ2Vy?= | last post by:
I have an UpdatePanel with a dropdown list that I can't seem to get to update. It has a hidden button which I click from javascript added to the page when another update panel is updated. Triggers didn't work for this that is why I'm using the script. The script is registered with... ScriptManager.RegisterStartupScript(Page, GetType(), "Update", String.Format("$get('{0}').click();", buttontoclick.ClientID), true); <asp:UpdatePanel...
3
1721
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I have a generic list of data list <typelistcategory; listcategory = new list <type>; I also have a dropdown box that I have put into a template column of a gridview. I was able to populate the dropdown box ok when it was outside of the gridview for (int i = 0; i <= listcategory.Count - 1; i++) { ddl.Items.Add(listcategory.Description);
0
10468
Oralloy
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...
0
10245
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
9063
agi2029
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...
0
6802
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
5458
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
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4131
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
3748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2933
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.