Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 210
  • Last Modified:

How to draw a square like sizing win95 form?

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
powlin
Asked:
powlin
1 Solution
 
thammondCommented:
Im not sure what you want to do ???
0
 
Erick37Commented:
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
 
genefCommented:
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
 
pjknibbsCommented:
The Windows API function DrawFocusRect() is what you're looking for.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now