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

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?

 

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?


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


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


[2005] Draw shape & get co-ordinates -
Hi. I'm completely new to image editing with vb.net. What I want to do is to create a tool to help the user create imagemaps for HTML pages. So bascally, I want the user to select a shape(square, circle, or polygon) from DropDownList1, and then be able to draw that shape on a pictureb


drawing question!!! -
Does anyone know how to allow user to draw any shape as they want by using mouse on a image and save the shape so that next time they can reload the image with the shape?


flickery moving images -
Can anyone explain why, when in the attached app you draw a square the left and top change. Mousedown drag to draw shape mouse up to finish


How to stop the shape from flickering(A Shape control is used) -
Hello Every1, I have a peuliar problem for u guys. Follow closely the code given below...... Dim x1 As Single, y1 As Single Dim draw As Boolean Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) x1 = X y1 = Y draw = True End Sub Priva


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


Shapes runtime created/detect click -
Can anyone help please? I am drawing 5 shapes onto a page and want to draw a rubberband line only if user has clicked into shape requested. After identifying that user has clicked into each shape only then proceding to continue the rubber line to next shape. End result is drawn pol


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


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


Classic Drawing problem -
Here's the jist of it: (classic drawing problem) I need to be able to draw some stuff on a graphics object. When the user selects a shape, the outline of the shape moves with the mouse cursor until they click on the drawing surface, where it becomes planted onto the surface. In the


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


Moving 'shape' controls with mouse -
Does anyone know any quick way of being able to move 'shape' (rectangle) controls around a picture box using a mouse. As far as I know 'shape' controls don't allow DragNDrop mode. Any help would be grateful, cheers.


Draw a box around form -
I have a borderless form that i want to draw a box around to represent a boundary. In visual basic i would do this with the shape control, but i can't find the shape control in VB .NET (probably doesn't have it). So how would i draw a box around the form? (see the image to get the idea


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


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?


[2005] Draw shape outside the form -
is it possible to draw shape outside the vb.net form? if no, is it possible to replace cursor with transparent rectangle or something. I'm looking for a way for user to choose area of the screen.


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


how can i draw a rectangle with my mouse -
Hello everybody , i'm currently developping an application that draw a rectangle with my mouse , nothing very hard My qustion : I want( like in paint ) to draw only the perimeter of my rectangle when i move my mouse without filling it with a color i have attached my project Can u


shape control help pls... -
Can anyone help me please ? I am trying to create an array of shape controls in vb.net v2002. My software is supposed to allow a user to draw a generic shape on screen and then alter it after the fact by selecting it and dragging it to new dimensions... this dosn't appear to be so easy


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


can't see ellipse *RESOLVED* -
I have attached a simple program, I cant see why the ellipse is not working. I use the shape object to draw a shape then want the ellipse API call to draw a solid copy on the picure box. For some reason the ellipse is not showing. I'm sure it is someting fundamental.


can't see ellipse **RESOLVED** -
I have attached a simple program, I cant see why the ellipse is not working. I use the shape object to draw a shape then want the ellipse API call to draw a solid copy on the picure box. For some reason the ellipse is not showing. I'm sure it is someting fundamental.


How do I learn the cursor coordinates on the screen -
I have this program in VB6 that I use to teach basic statistical concepts. One of the ideas that I have not been able to implement is one where I draw a set of coordinates on a form, and then I would do something (perhaps click on the mouse right button) and “enter” a “drawi


Problem with shape redraw with GDI+ -
I am trying to create a gauge control on vb.net. The problem is that, unlike VB6, there is no shape control that I can draw on screen. I tried to draw a circle and am trying to move the needle over it - but everytime I need to redraw the entire thing which is becoming very cumbersom


[2005] Please help me with vb -
Hi there- I am trying to create a program and I am very new at this! Please help. Using the mouse up and mouse down event I need to draw lines. The lines will begin where the mouse is pressed down and will end where it is released. Then I need to save the X and Y values of the mouse l


rotate rectangular shape -
I am very new to visual basic. I am wondering if there is a simple way to rotate a rectangular shape. If I draw a rectangle with the rectangle shape control can it be rotated somehow or do I have to draw the rectangle with 4 lines and then rotate each line? I am surprised there is n


Drawing my own command buttons -
I would like to know if it is possible to draw my own command buttons. I mean, I would like to draw a button in the shape of a parallelogram or even randomly making shapes like an explosion shape. Is this possible because I have seen programs with these kind of buttons but have never b


ballon toltip.. -
In this project are present many circle-shape colored yellow (are the province of region). When the mouse go on one of that the shape change color in red. and appear in REGIONE and in FILIALE CAPOFILA the name of region and name of province. Now with mouse move effect on all shape is


How to draw multiple shape objects on a form. -
Hi. I have scoured the net all night looking for an answer to this question with no luck, so here I am. I'm developing a program that has a graphic element to it. In one part of the program, the user is supposed to draw a bunch of rectangles using the mouse by click, drag, and unc


draw irregular shape -
I want to draw a irregular shape on applet. u have any idea please....................


Draw a square at run time *Resolved* -
I have a program where I have add a control called "Shape2" at run time. In a portion of the program, I want the user to be able to select items by clicking and dragging his mouse over a picture box. As the mouse is being drug, the width and height of the square shape should


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


[DX9,C#]Mouse Selection on Risk Like Board -
I've been thinking of the best way to do this.... I'm using the D3DSprite Class to draw my images to my screen and say I've drawn out different countires/continents to make a map. Countries come in various shapes and sizes and I'm trying to think of the best way to do a "grid.&quo


ToolTip Text Question -
I have made a simple demo (see attachment) to help explain what I am trying to do - Its only a few lines I have a picture with three coloured shapes, when the mouse is pressed on a shape the name and colour of that shape goes into a text box – All this works Now I need to use t


Identify user click in shapes and draw rubberband -
I am drawing 5 shapes at runtime. I wish to detect if user has clicked on correct shape and if they have then draw a line using rubberband method, then go to detect if clicked in next shape. Result should draw a Polygon if all dhapes clicked.runtime


A circular button's border -
You can use the API "DrawEdge" to draw different kinds of borders around a button. But it only works for a rectangular button. How can I use it if I have changed the button's regions to a circle shape? How can I make it draw those kinds of borders around the button in a c


how to draw points onto a frame control -
-------------------------------------------------------------------------------- I need to draw hundreds of points onto a frame control. It should look like the points on a form in the form designer of VB6. I tried to create a shape control array, but that is too slow to swich on


Shape question -
Hi all, I need to put an triangle shape on my form but the normal shape's are square, circle and oval. I could draw one with some line's but in need change the fillcolor. Who can help? thanks in advance