[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

VB6 Application, Docked to Right of Screen, Disable Region

Posted on 2006-07-18
3
Medium Priority
?
242 Views
Last Modified: 2006-11-18
OK, This one is a little hard to explain.

Remember back when Office had that failed experiment called Quick Launch Bar, or whatever it was.

Basically what I have right now is an application that I dock to the right side of the screen, and force it to stay on top.  However, what I'd like to do is get it so that the region that it is in (right side) is pretty much disabled.  So if someone launches an application, and they try and maximize, the application will only stretch as far right as possible until it reaches the left border of my application.

A Friend mentioned that there was an API for this, but I can't find anything on it.  I've searched for quite some time now, and I think the problem is that I don't know how to word my searches since I don't know what you would call this.

Any help would be appreciated, and if someone needs further explanation, just ask.
Thanks.

- Anthony
0
Comment
Question by:ALaRiva
3 Comments
 
LVL 9

Expert Comment

by:pradapkumar
ID: 17136063
As I know one API is available for your problem. But it only keeps your application on top of all the visible windows.
Pls read following links for that.

http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20699212.html?query=top+window+api&topics=93

http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_10021942.html?query=top+window+api&topics=93

http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20434302.html?query=top+window+api&topics=93

But i  am not sure that some system windows (like task manager in XP, NT, 2000) will be overridden by the above api.

But you need to code some VC++ codeing to control other applications to detect that app's right border reached your app's left border.

0
 
LVL 9

Accepted Solution

by:
Naveen Swamy earned 1600 total points
ID: 17136353
0
 
LVL 10

Author Comment

by:ALaRiva
ID: 17139553
navstar16,
The first link you provided gave me the exact code I needed.  As with what the links says, there were a couple of examples on the NET, but they were so convoluted that you couldn't figure out much with it.  That example was simple, and to the point.

pradapkumar,
I was already using the StayOnTop method, navstar16 hit the nail on the head though, Thanks for the Effort.

- Anthony
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

834 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