Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

VB6 Application, Docked to Right of Screen, Disable Region

Posted on 2006-07-18
3
Medium Priority
?
241 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
[X]
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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
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

618 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