Controls in non-client area

Posted on 2002-04-30
Last Modified: 2006-11-17
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
Question by:pierrecampe
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 15

Accepted Solution

ameba earned 100 total points
ID: 6982365
Put your form and your button inside another form, or into mdi client area, so they'll have common parent window.

Author Comment

ID: 6982534
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 ?

Author Comment

ID: 6982538
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)
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.


Expert Comment

ID: 6982614
LVL 15

Expert Comment

ID: 6982764
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.

Author Comment

ID: 6990625
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

Expert Comment

ID: 6990708
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.

E-E Moderator

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Prevent user closing word document opened with VB6 6 84
Problem to With line 4 76
checkbox to hide entire section 10 63
transition to visual .net from vb6 5 63
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question