Solved

How to draw a square like sizing win95 form?

Posted on 2000-02-17
4
188 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

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

Suggested Solutions

Title # Comments Views Activity
Windows 10 start screen issues 9 51
Updates not working for MS Windows 7 12 152
Added a column screws up code 5 49
fso.FolderExists("\\server\HiddenFolder$") 4 49
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…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…

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

23 Experts available now in Live!

Get 1:1 Help Now