• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 234
  • Last Modified:

Fill with color

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
raed
Asked:
raed
1 Solution
 
damienmCommented:
Why don't you create an image using Paintbrush or something, then add the picture to your form.
0
 
mark2150Commented:
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
 
Brendt HessSenior DBACommented:
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
 
ArkCommented:
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
 
raedAuthor Commented:
thanx
was very helpfull
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

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