Solved

VB6 Application, Docked to Right of Screen, Disable Region

Posted on 2006-07-18
3
235 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 400 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Updates not working for MS Windows 7 12 181
VB6 Compile Compatibility Issue 4 115
How to compare ms sql hashbytes results within vb6 5 84
using web browser with BING 40 131
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…
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…
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…

839 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