o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Fill color of a shape -

How do you change the Fillcolor of a Shape Array with code.
I try to use:

Shape1(0 - 5).FillColor = vbBlue

but it errors

 

Graphics for fun -
I am trying to round off the outside corners of a square form by creating a shape, filling it with a color and setting the transparency color to the fill color Seemed to be a good idea at the time.... I can draw squares and circles and elipses and everything, but I can't figure o


Change color of shapes in vb -
I have a shape on my worksheet which has a fill color of green. When I click the shape, I would like the fill color to switch to the color red. I would like to be able to toggle between to two fill colors each time the shape is "clicked". I experimented with the "if then


Shape1_click event -
how can I come to know that a particuar shape has been clicked..? wat i wan to do is... i acttually want to toggle the shape fill color when the user clicks on the shape.. wat wud be the best way to do it... let say i have three shapes in a form or picture box (i don't know whic


Custom Colored Command Buttons of Irregular Shape -
I developed Triangular, Hexagonal and Arrow Shape custom command buttons which are responding fine in "Click Event" but I am atall not able to fill color in these where as I could easily fill color in Rectangular and Round shape custom command buttons. Then I tried Window API


Fill a Shape -
Hi! How can I fill out a polygon with a color. When I know the outline or the corner points of a polygon, so how can I get all pixels that are inside the shape. I tried to move along the outline till I reach the center of the shape but I had a lot of problems. Thank you for a


Filling in a shape in a picture box -
i have set up a picture box, and have drawn my desired shape using a number of draw line commands. However i would like to fill in the shape that i have drawn, but i do not know how to do this. I am aware that you can use fill rectangle, oval etc but that is not appropriate. My shap


Fill shape using API -
Hi, If you have a shape with various blocks of colour in it, is it possible using an API call (in a picture box), to refill an area with a new colour? Its basically the main API call to actually fill a shape (like the MSPaint fill tool) which I am interested in. Is there one? If


Filling control with color -
I have a usercontrol by name octo ( which is having 8 sides ) I created the control like follows: 1. selected new control 2. placed a shape control on it 3. placed 8 lines on shape control 4. arranged 8 sides (lines) so that it forms a closed box. _______ /


Graphical Style Check Box -
hi buddies how are u.. i have got one problem.. i want to paste one rectangle shape on check box.. (graphical style).. when this check box is down.. this shape fill color should be green and when check box is up ... this shape fill color should be red... but the problem is that


Fill color of a shape -
How do you change the Fillcolor of a Shape Array with code. I try to use: Shape1(0 - 5).FillColor = vbBlue but it errors


how to draw shape and fill it using the mouse -
how can I draw the ff. shape using the mouse? rectangle,square,oval,circle,rounded square,rounded rectangle. how can i fill the shape with color using the mouse too?


Visio - Is there a list of properties -
I had been trying to generate a visio drawing from code, which the FAQ section was able to help me do. (Thanks for the help) The problem I'm running into now, is I can add a shape, but I can't seem to find the propery references listed anywhere to know how to override them. For instan


SOLVED - Arrays in Java -
I am trying to set up an array that hold objects that i am creating, however their parameters are of different types and i get an 'incompatable types error when i try to compile. This is the code that i am using: PHP Code:        &


Can you do this -
Well instead of using vbs lovely buttons I tend to use a transparent shape with a label inside. OK now in the labels mousemove sub I set the boredercolor of the shape to a differernt color, thus changing the color of the shape when the mouse is over the label.. this works great and I


creating costom shape -
I need to create a shape, consisting of lines and circles, to move this new shape as one shape. The use of the several parts ended in a wobbeling shape. Thanks


[2005] How to gradient fill a shape -
Hi, I have a shape in my mind and I would like to make a gradient fill of it. Let's say I have a rectangle, it is easy to gradient fill it like this: VB Code: Dim black_white_brush As New Drawing2D.LinearGradientBrush(New Point(15, 15), New Point(150, 100


Fill Region -
I cant seem to figure this out so maybe someone has some tips for me. I create a rounded rectangle region in a picture box with CreateRoundRectRgn, and i then want to fill that region with white. It would be awesome if it had a black line around it but im not going to get greedy.


textures -
How can you have a shape that has textures such as marble or bark or something. I found the perfect example in PowerPoint. I thought that you could dynamically load as many pictures with the texture that fill the shape but was wondering if there was an easier way.


Gradient in a Round Shape -
How could i create a multi-color smooth looking color gradient in a round shape ... maybe even like in the Round Shape Control ? , or changing the shape of a PictureBox Control to Round in which a Color Gradient would appear ?


How to delete a shape object from a picturebox -
Hi! Does anyone know how I can delete/remove a shape object from a picture box in codes? Another question is how to I destroy a dynamic array? I've declared it as : --------------------------- Private arrayX() as Shape Redim arrayX(5) --------------------------- I want t


Shooting Bullets in vb 6.0 -
Okay, I need some help please. No idea how to code this at all, so here it goes Oh yeah i need codes for vb 6.0 please So basicly i have a Shape. And i want it to "shoot" another shape from the shape i have already. Shapes can be replaced with images. I already have a c


creating a shape at runtime **RESOLVED** -
Does anyone know how to create a shape at runtime user enters x1,y1,x2,y2 and shape in text boxes and the shape appears on the form.


shapes -
hi all, in vb if you create a shape with -shape-, you get a shape with no procedure. no click, dblclick, mouse move etc. i want something to happen when i click on a shape (i also want tool tips to appear when im over it). what should i do?


How to use shape -
Hi Could I use the shape control found in the toolbox to create a rectangle and a circle? If yes, how is it done? Thanking you in advance PORRASTAR Answer: Draw the control and choose the the shape required using the shape property


Memory Problems and Shape Control -
Has Anyone else ever had a problem with using the Shape Control and getting a "unable to read Memory" error? I've got this form where I've created a Process Flow Chart using the shape control. What I basically do is show the status of a record in the grand flow of things


How to design irregular shape forms -
Friends, i am unable to change the shape of my VB forms from the normal rectangular shape.. i want to design forms that have irregular shape.. u may find that go!zilla, and media player skins are all of irregular shape.. they dont have the normal rectangular shape.


Shape a form by mask color -
some application can define it's form's shape by a bitmap'mask color (e.g. K-JOFOL,it' skin bitmap's magenta area make the form transparent).Can I do it with VB


zorder -
I have a ton of command buttons and I want to put little shape controls on top of some of them to indicate something, kinda flag them. I only want to shape at the top so you can see its flagged but still be able to click on it... problem is when I have the runtime code move the shape


Creating a shape during run time -
Well, i need to be able to create a shape when i click on a command button, the shape is = to my mouse and y co-ordinates until i click then the shape will be placed or "dropped" there. this needs to be a dynamic array as I'm not sure how many shapes i will be using, is this


shape object refresh -
Hi im updating the shape width property on each 10 ms because property is associate with an value read from serial port. But this is causing a bad refresh on shape. Shape appear blinking. There's a way to correct this problem? thanks bye


Shape in front of Picturebox -
Hello, I'm having a heck of a time trying to figure out how to show a shape on top of a picturebox. This shape is not contained in the picturebox, nor do I want it to be. What I need is for the left part of a shape to overlap the picturebox. I've tried .ZOrder among other things but no


[02/03] Filling a Drawn Shape with a Gradient -
Hello guys! Long time no see I just like to know if it is possible to fill an already drawn object with a Gradient (linear, Path) & How to fill the already drawn object with a Hatch brush ¿ I already know how to fill the shapes with Solid colors, basically it takes the old


Shape/ Frames -
im trying to Highlight the Control in focus... but i need a generic shape that would travel across frames.. what i mean is, i have a shape, and on focus of a control, i move the shape behind(or) around the control according to its width and height.. imagine i place this shape


Setting Move Constraints -
I want to limit how much I can move a shape so that shapes do not overlap each other. For example in this picture I want to set up a limit as to how far the red shape can be moved to the right without overlapping the yellow. In my program I would not have only one shape but ma


Using shapes in excel vba -
can anybody help me how i can workout the following using vb. i am preparing a software in excel with VB.for that while using combo box if i click trapezoidal then trapezoidal shape should come in excel, if i click rectangular then rectangle shape should come and trapezoid should g


naming shapes programmatically -
I am trying to assign a name to a shape I create through code. The user is presented with a form on which they can select the type of shape and enter top, left, width and height properties. I want to allow the user to be able to edit this shape by selecting it ie change its positio


[2005] Moving Shapes in Form -
Hi here is the code i found in the web. You can add shapes to the form and resize them or move them. My problem is if you move a shape outside of the area of the form you can drop the shape, I need to avoid this and restrict to move any shape outside of the form. Steps: 1- Run th


ActiveX Control - Transparency Problem -
Hi, I need to put an hourglass shape on an ActiveX control. I've put an Image Control on the ActiveX control and put my hourglass GIF (essentially an inverted colored triangle on top of an upright one...) on it. I've also set the backstyle property of the ActiveX control to 0 (Trans


change color of custom shape(bitmap)in runtime -
Is it possible to change the color of a custom shape (bitmap; for example a shape consiting of several lines and circles)during runtime??


16 Million Colours -
Hi, I just want to know hoe I can fill a box with all the RGB colours you know like the specturm boxes you get in drawing apps. Also if any one know how I can fill it into a desired shape i.e. Circle, triangle etc. !!!THANKS IN ADVANCE!!!