Solved

Controls in non-client area

Posted on 2002-04-30
7
267 Views
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
0
Comment
Question by:pierrecampe
7 Comments
 
LVL 15

Accepted Solution

by:
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.
0
 
LVL 6

Author Comment

by:pierrecampe
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 ?
 
0
 
LVL 6

Author Comment

by:pierrecampe
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)
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 3

Expert Comment

by:y2kwacko
ID: 6982614
0
 
LVL 15

Expert Comment

by:ameba
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.
0
 
LVL 6

Author Comment

by:pierrecampe
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
0
 
LVL 1

Expert Comment

by:Computer101
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.


Computer101
E-E Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now