Solved

How to draw a square like sizing win95 form?

Posted on 2000-02-17
4
190 Views
Last Modified: 2010-05-02
I want to draw a gray square next to the mouse cursor like Windows95 moving and resizing or the option show content while dragging off!
0
Comment
Question by:powlin
4 Comments
 

Expert Comment

by:thammond
ID: 2533114
Im not sure what you want to do ???
0
 
LVL 32

Expert Comment

by:Erick37
ID: 2533165
Here are some old articles which still apply to VB6:

"How to Create Rubber-Band Lines/Boxes in Visual Basic"
http://support.microsoft.com/support/kb/articles/Q71/4/88.ASP

"How to Create Flashing/Rotating Rubber-Band Box in VB"
http://support.microsoft.com/support/kb/articles/Q71/4/89.ASP

If you need to draw the lines off the form, some API functions will be needed, but it's the same concept.
0
 

Expert Comment

by:genef
ID: 2533559
As far as I understand you like conditionally change your mouse cursor, don't you?.
In this case there are two form properties: MouseIcon and MousePointer.
If you set MousePointer to 99 (Custom),
it accepts Icon that is set by MouseIcon property. You can take the icon file somewhere or design it using any proper tool.
Sorry if I misunderstand you,
Gene
0
 
LVL 12

Accepted Solution

by:
pjknibbs earned 50 total points
ID: 2534982
The Windows API function DrawFocusRect() is what you're looking for.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

772 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