Solved

Create....Rgn, can I do that on any object?

Posted on 1998-01-04
2
335 Views
Last Modified: 2008-03-17
Hi there.
I want to know if I can use fx CreateRoundRectRgn on fx a label or textbox, commandbutton etc.
Then what is the Set..?..Rgn I am supposed to use.
Set MetaRgn?????
Please Help.
0
Comment
Question by:CATT
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
polygon earned 30 total points
ID: 1449139
You can create whatever regions you want.
The restriction is that you cannot set them to all of the controls.
You can use the SetWindowRgn for every control which has ".hWnd" property.
For example : forms, picture boxes,command buttons, textboxes,dir and file listboxes, List boxes and etc.


0
 
LVL 2

Expert Comment

by:polygon
ID: 1449140
For the whole list see hWnd propery in the VB Help.Look at the "Applies To".
I'm sure that you cannot use SetWindowRgn for labels.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

777 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