473,472 Members | 2,038 Online
Bytes | Software Development & Data Engineering Community
Create 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 2840
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**************@TK2MSFTNGP14.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.com/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**************@TK2MSFTNGP10.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.com/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
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...
0
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? ...
1
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...
2
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...
2
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,...
5
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...
2
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...
1
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...
3
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...
1
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...
0
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,...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.