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 to remove all the values in the array and fill it with new ones.
Thanks in advance for any help!
-mybren-
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
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
PictureBox shape -
i was just wondering if anyone could tell me if you can change the shape of a picturebox from the normal square to a circle or make a Shape that you can actually click on? if either is possible
thanks
lee
How remove shape object from picturebox -
Hi, does anyone know how I can remove shape objects from a picturebox at run-time?
Thank you!
changing width -
hello,
i was wondering how you change the width of a SHAPE by coding? i have two shapes. each shape represent an item. i know how to calculate the percentage of these items. i just need to know how to use the percentage i found to make one shape bigger than the other shape. ex, if obj
trace the outline of a shape on a bitmap **RESOLVED** -
I have a picturebox with a bitmap. White background with red circle in it.
How do I trace the edge of the red circle so I can reproduce its position and size with code onto another picturebox.
My thought was to start at 0,0 and check each pixel row by row. For each row remember th
deleteing shapes -
how do i delete a shape? n shape.delete doesnt work
[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
VBA Shapes -
Hi all,
Been a long time since i posted.. don't know if that's a good thing or bad!!!!
I have a quick question in VBA (Excel) I am adding a shape to the ActiveSheet by using:
ActiveSheet.Shapes.AddPicture cFile, True, True, 66, 665, 259, 175
This all works fine, but what I
Arrays and Deletion -
Again another question regarding my map editor.
If I have an array, whether it is an object array, or a type array, and the x, y, witdth, and heigth all equal zero, how exactly would i delete just that number in the array, and retain all the others, above and below it, and resort them
Grouping geometrical shapes: ... unless something even simpler comes up... -
Hi all,
In one of my projects there's a picturebox and a shape object (a rectangle) that I use to select a region I want to zoom in on by dragging it over the pbox. It's very easy to do by means of the Move method.
Similarly -but for a different purpose- I'd like to create a more
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
[2005] Generating a Shape in Picture Box -
Hi,
I am looking to achieve the enclosed shape in PictureBox Control by entering its width/ depth and thk properties.
Will be thankful for any feedback..
thanks
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
shape click events -
Now i know that Shapes and lines do not have click events, co I put a shape in a Picturebox and would like to use the picture1's events. But, i want to have it so on the Click() event, it checks to see if the Shape1 was in the boundaries of X and Y. This is very easy for rectangles, bu
How to create your own Object Model / API. Possibly too hard to answer -
Hey all,
My question is as such:
You know tools like Visio, Flowcharter, even MS Office etc, where you can open the Visual Basic editor and write your own customisation code? Well these tools always export an "Object Model" that you can use to do what you want.
For e
Picture box ans shape -
how can i draw a shape inside a picturebox?I can do it in not run time but in runtime I cant
[Word] create custom picture shape -
Hello all,
is there a way, under VBA for Word 2003, to create a custom Picture shape (such as that created by the Shapes.addPicture method) with some custom property (e.g. a custom text field) ?
In other words: I would like to add to a document a picture shape (i.e. a shape showi
Text over object -
I have a picturebox (gameboard) and I want to place lables on top of sections of the board. However, I want them to not "overlap" the board, in the sense that it triggers the label click, and not the board click.
What can i do so that even if I click on the label, it doesn
creating the shape object at runtime ***UNRESOLVED*** -
I want to create shape objects on the form at runtime, this will be done at the click of a button.
I also want the user to be able to select the shape and resize it or move it so it has to be responsive to events.
Creating child controls at run time -
I have this picturebox array where element 0 is created at design time and the other elements at run time. Likewise, a shape control with index 0 is created at design time as a child control of element 0 of the picturebox array. How do I create the rest of shape controls at run time so
Question about Paint based application -
You see everyone I'm stuck with a problem:
I've made a program like Paint with many more thing but my problem is that I dont know how to make an eraser to erase the
drawing made on the picturebox!
I've tried to make the autoredraw value of the picturebox to false
and (as an era
bitblt and shapes -
hi,
I'm still working on my old program.
This time I try to BITBLT one PictureBox onto another, that should be now problem, but...
On my first PictureBox I have a Shape which should be visible on the second PictureBox after the BITBLT. But that's seems to be a problem, WHY?
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 ?
controls order -
Hi.
I want to send a picturebox BEHIND a label, but above another label and above a shape.
If I put send to back the picturebox stays on top... i think you can't send a picturebox to back that easily.
So: is there a way to do it or should I ask at the API section?
Thanks
Erase a region -
I'm using the CreatePolygonRgn and FillRgn functions to plot an irregularly shaped contour in a picturebox. During program run, this shape must be replaced every once in a while by a different one. The problem is I don't know how to clear the picturebox and therefore all the polygons e
Selecting shapes in picturebox -
Is there any way to findout the co-ordinates of a shape (e.g Line) drawn on the Picturebox using its line method. If the shape is a line I want its X1,Y1,X2 an Y2 co-ordinates and if it is a circle I want to find its radius and centre. Finally I want to move the drawn shapes into the P
Help.net -
Ok, so here's the deal: you help me, i'll be in your debt for the next 30 years! or i can just say 'thanks'.
I have two structure: board (grid(5,5) as short) and shape(grid(5,5) as short; name as string; h,w as short)
I also have an array of shapes named Shapes(28) as shape.
i hav
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
Creating Shape in picturebox -
I have a program that makes creates a shape from a set of coordinates in a textbox, but i want it to put the shape as a part of a picture box instead of the form. Is this possible?
Here is the code i have so far:
Code:
Public WithEvents myshape As Shape
Private Sub Create_Sh
Object Detection -
Hello everyone,
i was just wondering if there was a way to fire an event when an object is ontop of another object. For Example, i have a Shape that is moving by a timer, when the shape hits the the finish line or is on top of the finish line, it fires a You won event. The only prob
Shape of Form -- [R E S O L V E D] -
Anyone know of a tool/utility that will create a form in the shape of an object provided in a picture file? Basically, you provide a pic with a uniform background and a single object in it. Seem to recall having seen something which does this, but can't recall it's name. Better still
rotating a picturebox manually -
How to rotate manually a picturebox using the mouse like when we rotate a shape in Microsoft Word or Autocad.
thanks
using bitblt API function -
i have a project about strips(one image that have many subimages, is very good for doing sprites movements)... i have same values(you don't need change the values) and 3 type of picturebox: 1 is the image that i want work, the other has a color(to change a shape bordercolor), and other
Locked file... -
Hello guys,
I have a picturebox, I fill it with an image from a file, something like PictureBox.FormFile(myfile). Now I set it to nothing, and I want to delete the file, something like File.Delete(myfile), but the file is locked and a file exception is thrown. The error says me the fi
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.
Pls check Shape Code , where i mistacken -
Dear friends
I wrote following codes but when i run it a message displayed "Insert, Delete , Edit , Delete required"
please any one correct this.
dim Cn as adodb.connection
dim Myrs as new adodb.recordset
Set myRs = New ADODB.Recordset
myRs.ActiveConnection = Cn