Solved

Fill with color

Posted on 2000-03-24
5
223 Views
Last Modified: 2010-05-02
i need to fill a selected area on the form with a certain color .
the area is very similar to a spot light. it begin narrow and get wider in the end. if it could give the light effect will be great.

thanx
0
Comment
Question by:raed
5 Comments
 
LVL 2

Expert Comment

by:damienm
ID: 2653428
Why don't you create an image using Paintbrush or something, then add the picture to your form.
0
 
LVL 12

Expert Comment

by:mark2150
ID: 2653456
Pset allows you to set a specific point with a specific color. You can also do LINE (x1, y1)-(x2, y2), color.

You use the same x1, y1 for all lines and then walk the x2, y2 thru an arc of a circle.

M
0
 
LVL 32

Expert Comment

by:bhess1
ID: 2654275
Check out this reference:

http://www.thescarms.com/vbasic/IrregularForms.htm

It discusses making forms and controls (textbox, label, image, whatever) with non-standard shapes (oval, polygons, etc), and using gradient fills on them to create special effects.

It uses some API calls, and can create a lot of fun effects.
0
 
LVL 27

Accepted Solution

by:
Ark earned 100 total points
ID: 2655989
Hi
you need ExtFloodFill API
Take a look at http://www.freevbcode.com/ShowCode.Asp?ID=629
If you need light effect, you can try http://www.freevbcode.com/ShowCode.Asp?ID=719
Cheers
0
 

Author Comment

by:raed
ID: 2692905
thanx
was very helpfull
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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.
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…

895 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

11 Experts available now in Live!

Get 1:1 Help Now