Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 292
  • Last Modified:

Controls in non-client area

how can i place controls in the non-client area of a form
say i want to place a command button in the title bar or the menu bar
please dont suggest simulating a title/menu bar
i need it to be a form with a real title/menu bar because i use windows scrollbars and not vb scrollbars and i dont want the scrollbars to extent into the simulated title/menu bar
0
pierrecampe
Asked:
pierrecampe
1 Solution
 
amebaCommented:
Put your form and your button inside another form, or into mdi client area, so they'll have common parent window.
0
 
pierrecampeAuthor Commented:
Hi ameba
i'm afraid i dont get what you mean
if i place form2 inside form1 with setparent i still can not move form2 into the non-client area of form1
or can i ?
 
0
 
pierrecampeAuthor Commented:
or is there a way to limit the extend of the vertical scrollbar so it will not extend into the simulated titlebar of a form without a titlebar (windows scrollbars not vb scrollbars)
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
y2kwackoCommented:
0
 
amebaCommented:
If you place Form1 inside parent borderless frmParent (no caption, no border)
and put button1 inside frmParent, you can position button over any part of Form1.

I'm not saying that is good, but that is one way to have control over non-client area.
0
 
pierrecampeAuthor Commented:
Hi Guys
sorry for having taken so long
i have decided to simulate a form with title bar in a form without and to use the vb scrollbars
i'll reduce this questions points to 0
and post 100 points and A grade to both of you
0
 
Computer101Commented:
Points reduced to 100.  Now you can accept one experts comment as an answer and make a 100 point question for the other expert in this topic area.


Computer101
E-E Moderator
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now