Opening a small form from a large main from...screen customozation

Hello,
I have a medium size form ( lets say half of screen size ) with a botton on it.
I created another from which is a small from (size of a a monthCalander control)
Now,
i when i press the button i want the small monthCalander from to open under the button,
but if the user will drag the form down and the user would not be able to see the calander form i would like it to be opened upward the button,
same goes for left and right.
are there any ideas? or functions who does this ?

Thanks

Tomer
tomer_baAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tomer_baAuthor Commented:
??
TonylmillerCommented:
For your popup form, set the start position to "manual" and you can set the "location" property to anything you want.  This will allow you to place all your forms any place you like.

Does this solve the problem?  I'm not sure I understand exactly the problem.

Good luck!

Tony
tomer_baAuthor Commented:
i am looking for a "ready function" maybe that will already include all the "edje cases"

Thanks,

Tomer
OWASP: Threats Fundamentals

Learn the top ten threats that are present in modern web-application development and how to protect your business from them.

TonylmillerCommented:
Perhaps I do not understand the question.  I have explained how to arrange the forms exactly as you wish.  There must be something else that you need.  Would you please explain what you still need to do?

Thanks,

Tony
tomer_baAuthor Commented:
Hi Tony,
How can i now the screen size or screen borders ?

Tomer
TonylmillerCommented:
The size and borders are all properties of the form.  You can open the properties menu of the form in the form designer and edit them there, or you can set them in your code.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.