Solved

How to draw a square like sizing win95 form?

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

708 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

10 Experts available now in Live!

Get 1:1 Help Now