473,327 Members | 2,065 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

UserControl - Problem with "popup" that would be outside "container"

I have a problem, best explained by example.

I have a usercontrol which contains a text box and a button. If the button
is clicked then the calender control is displayed as a "popup" so that a
date can be chosen. This replicates the date-picker control except that it
has other checks in it (my user control also has the ability for other data
types with other "popups" for validation)....

The problem is that if the user control is at the bottom of a panel or
groupbox etc, then the calender control will be cut off by the bottom of the
panel or groupbox even though there is plenty of room to display it on the
form.

How can I make the popup "overflow" the bottom of the containing control
(panel/groupbox)?

Also, if the usercontrol is at the bottom of the form as a whole, is there
any easy way to know that there isn't room to display the popup below the
text box and pop it up on top instead?

Regards
Simon
Dec 6 '05 #1
2 2295
http://vbaccelerator.com/article.asp?id=13309
Hth 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. (Rich Cook)

"Simon Verona" <no****@nomail.zzz> schreef in bericht
news:ef**************@TK2MSFTNGP11.phx.gbl...
I have a problem, best explained by example.

I have a usercontrol which contains a text box and a button. If the button is clicked then the calender control is displayed as a "popup" so that a
date can be chosen. This replicates the date-picker control except that it has other checks in it (my user control also has the ability for other data types with other "popups" for validation)....

The problem is that if the user control is at the bottom of a panel or
groupbox etc, then the calender control will be cut off by the bottom of the panel or groupbox even though there is plenty of room to display it on the
form.

How can I make the popup "overflow" the bottom of the containing control
(panel/groupbox)?

Also, if the usercontrol is at the bottom of the form as a whole, is there
any easy way to know that there isn't room to display the popup below the
text box and pop it up on top instead?

Regards
Simon

Dec 6 '05 #2
Looks perfect!

Thanks
Simon

ps... Like the sig line!
"Peter Proost" <pp*****@nospam.hotmail.com> wrote in message
news:OL****************@TK2MSFTNGP14.phx.gbl...
http://vbaccelerator.com/article.asp?id=13309
Hth 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. (Rich Cook)

"Simon Verona" <no****@nomail.zzz> schreef in bericht
news:ef**************@TK2MSFTNGP11.phx.gbl...
I have a problem, best explained by example.

I have a usercontrol which contains a text box and a button. If the

button
is clicked then the calender control is displayed as a "popup" so that a
date can be chosen. This replicates the date-picker control except that

it
has other checks in it (my user control also has the ability for other

data
types with other "popups" for validation)....

The problem is that if the user control is at the bottom of a panel or
groupbox etc, then the calender control will be cut off by the bottom of

the
panel or groupbox even though there is plenty of room to display it on
the
form.

How can I make the popup "overflow" the bottom of the containing control
(panel/groupbox)?

Also, if the usercontrol is at the bottom of the form as a whole, is
there
any easy way to know that there isn't room to display the popup below the
text box and pop it up on top instead?

Regards
Simon


Dec 6 '05 #3

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

Similar topics

0
by: yotaxp | last post by:
Hello, everyone. I've been trying to get a popup editor going for a control I'm working on. I don't mean a design-time editor for properties, though that would be a good example of what I'm...
4
by: sam | last post by:
Hi all, When I use the HTML tidy tool in Firefox I see the following warning which I want to get rid of . I cleared all the errors and warnings it showed except for this one. I am not able to...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.