Solved

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

Posted on 1998-01-04
2
341 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
[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
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Suggested Courses
Course of the Month4 days, 23 hours left to enroll

635 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