Solved

How to draw a square like sizing win95 form?

Posted on 2000-02-17
4
192 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

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…
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…

739 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