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

Traverse shapes on drawing canvas -

Hi I have a drawing canvas in word which is a collection of shapes. For instance if I click on one of the shapes in the drawing canvas I can format it. How do you traverse all the shapes in the drawing canvas object?

 

Traverse shapes on drawing canvas -
Hi I have a drawing canvas in word which is a collection of shapes. For instance if I click on one of the shapes in the drawing canvas I can format it. How do you traverse all the shapes in the drawing canvas object?


Add MouseListeners to a canvas/drawing area{resolved} -
Is there a way to add a mouseListener to a canvas/drawing area? What I want is to draw a horizontal line where ever the mouse is on the drawing surface.


Drag canvas boundary -
Hi, The website given below is the coding I used for dragging of canvas: http://blogs.msdn.com/marcelolr/arch...02/542641.aspx I want to set the boundary for the canvas. I know how to set boundary of a rectangle. But how can I set boundary for a circle or some other shapes like


[2005] Drawing in picturebox -
Why does this not work Code: Dim canvas As Graphics canvas = Picturebox1.CreateGraphics() canvas.DrawLine(Pens.Red, 5, 4, 15, 15)


setLayout() and addActionListener(). -
hey guys. i have two questions. first of all, what does the setLayout do in the applet. second, i am having trouble understanding when to put the parameter in the addActionListener "this" or "canvas". since in some examples that i have seen, there is a canvas and


Using BringToFront with shapes -
Hi there Could anyone please tell me how I can go about using the BringToFront command with shapes. I found this code on the MSDN website for creating shapes at runtime: Dim Shape1 As New System.Windows.Forms.Label ' Show a solid red rectangle 14 pixels from the top left


manipulating the shapes in vb.net -
using drawing class and by tracing mouse movements i hav provided the user the ability to create shapes...........but............now i want to provide them with the ability to edit the shapes,i.e., user is able to select any shape drawn by him and then scale it, rotate it, fill color


Drawing shapes in a Panel with controls -
I am trying to draw some shapes using GDI+ in a panel that has controls in it. I need for the drawn shapes to be on top of the controls that are currently in the panel. But right now the shapes are drawn under the controls. The panel is actually a user control that I have inherited


shapes with vb5 -
hi there......i need some help with shapes. i have a form with a couple of shapes on it.i have also made duplicate shapes as well.what i want to do is to click on a shape and drag it to the matching shape. also how could i compare if the two shapes are matching/identical sothat i c


Painting and Saving a Large PictureBox -
I have a large PictureBox, which is my "Canvas". I have a smaller PictureBox, into which I load an image using LoadPicture. I want to copy this image onto the canvas PictureBox using PaintPicture. Then I want to load another image into the small PictureBox, and copy that


Group, Align, Ungroup Shapes in Word2002/VBA -
I have a "group" shape, a line entering a textbox to the left, text box, an arrow exiting the text box on the right. When you enter text into the text box, it grows (as expected), but the line and arrow don't change position relative to the middle. Since I have several of t


[2005] A simple question about rectangles -
I'm making good headway on my project now, thanks to the helpful folks here. I've now got a query about the rectangle drawing method. With a view to eventually constructing some graphs I am working with rectangles in a PictureBox. Here's the code I have for it so far: Code:


visio 2003 drawing control, access -
I have a visio 2003 drawing control embeded in an access form. I want to be able to specify, programmatically in VBA, what stencils are displayed. I also want to be able to gain access to the properties of shapes and link the shapes to records in such a manner that, when a user clicks


How to draw a line with Powerpacks from a module -
Hi! How do I draw a Lineshape (Powerpacks) from a sub inside a module to a form called "Form1"? I found this code but I can't use "me" inside a module. What should I put canvas.parent to? Code: Dim canvas As New Microsoft.VisualBasic.PowerPacks.ShapeConta


Drawing Canvas and VB's Circle\Line\Pset methods... -
Hello, I have a project to make a drawing program and I am supposed to use the Circle\Line\PSet methods of a picturebox\form... well, seeing as when you move a form offscreen, or if you alt-tab\minimize the program, the whole thing gets cleared (redrawn), what i want to do is use Creat


Define shapes -
I am makeing a drawing program based on msPaint and was wondering how i would go about geting defined shapes placed on the form at the click of the mouse and i also would like the user to beable to resize the shape hope i ant asking to much of yous guys but any help would be appres


ink canvas -
Hi, I have a ink canvas control in my application. When the user draw the graphic they want in the ink canvas and click on ok button, that graphic that the user had drawn will be saved. Can it be done...? If yes, can it be done using Visual Studio (VB.NET). I'm using WPF application


shapes and lines -
How should I go about defining whether or not a user of my program has clicked on a shape drawn at runtime. Should I use select case or control array, I have tried to use if, then, else and have the first click working but there it ends. 5 shapes all different to define whether click


odd shapes -
1)How do i draw a sector in asp.net gdi? I can use drawarc but that just draw s the arc in a rectangle. It gets a little confusing for me drawing shapes this way. 2)how do i draw 2 parallel lines (drawline) with a line bisecting them at an angle? I can draw 2 parallel lines easy enou


Drawing on a transparent usercontrol... -
I need to be able to overlap usercontrols with userdrawn items on them. Unfortunately, the shapes I'm drawing get covered up by the other usercontrols. Is there a way to have a transparent control that still allows drawing code to work? I've tried setting the Windowless property to


Interacting With Java Canvas -
I was wondering how you interact with the Sun Java Canvas. For instance clicking a button in the Java Game in the Canvas. Because is all i get back when i try use a Api Spy is the JavaCanvas and nothing else. I was told you got to do it by pixels of the image but still i have no knoled


Drawing component -
Hi, Does anyone know where I can get a good drawing component where I can draw regular shapes like rectangle, square and a line? Thanks Loftty


Showing Desktop on the canvas of Form -
Hello friends, I am using VB 6.0 How can I set the Picture of the form same as the Wallpaper OR How can I set the backcolor of form same as the backcolor of Desktop ? If user changes the backcolor of desktop or change the wallpaper, it should be dynamically reflects to the ca


Canvas and text wrap -
I have a applet that scrolls a Canvas upwards on the screen! I want to add text to the Canvas, how do i get the text to wrap ???


[2008] Casting Double to Integer -
I'm trying to write a (WPF) program with Option Strict on, but I have a problem. I have a Canvas with a background image, and I want to use the coordinates of where the canvas was clicked to determine what should happen next. (Something like this) Code: Dim p As Point = e.G


creating an image component. merging images. -
Hi all, Im in the process of creating an image component for use on an asp server. What I wanted to know if what is the best way to load two files and then merge them together, ie i load a canvas (what should i use for the canvas) and then load one file and "paste" it ont


[C++] Sample code for drawing shapes -
Hey guys Does anyone know of an tutorials or have any code that just draws a shape on the screen? I wanted to get started by just drawing a few shapes and then I'll figure out what the code is doing from there.


DC Saving and Restoration -
Ok, so I am creating a 'paint' program in Visual Basic and there are few issues im trying to address. First of all, when you move the form that im drawing on off-screen, or if you move something over it, minimize, etc... then the form clears what was once drawn on it. So what I


My drawing program is chopy -
Hi all. First of all let me explain what I'm trying to do and then I'll tell you my problem. I'm trying to make a drawing program where the user makes rectangles and only rectangles. I've got it running with a graphics buffer (an array) that holds all previously drawn rectangles s


M$ code not working... -
Hm, most confusing. If I go to the CanvasShapes bit of the Office XP help (do a search in VBA help, Word) and get the code therein for adding a new canvas item followed by some shapes, then I find it doesn't work in my current project. However, if I start a new document, bung a butto


"NEW" Keyword Problems -
Hello. I need my form to ahve A LOT of shapes. I'm talking 3000 shapes. So, I go Dim Shapes(3000) as Shape Private Sub Form_Load() FOR A=1 to 3000 Shapes(A).Shape=VbShapeSquare Shape(A).width=132 Shapes(A).Height=132 ..... Next A End Sub ETC. I set the colors and the bor


[2.0] Save an image -
I have a Bitmap object within my app named canvas. How would I go about saving canvas as an image to the path specified by my SaveFileDialog?


Canvas -
Anyone know how to move a Canvas?


Drawing shapes-fill-database -
hello everybody and thanks very much for all ur help so far. i am developing a program that loads a picture(map) .I have some toolboxes and i want to add something from it to the picture. I have a toolbox with shapes ,square,triangle and polygon.a) I want to draw these shapes on my


Returning Recursive values -
I know this might be a simple recursion question to some of you but I'm just a beginner to VB and to the whole programming world so please bear with me if my question seems a little bit dumb.... Lets say you have a search tree structure and you want to traverse the the tree to get a v


[2005] Traverse a TreeView -
Hi All, I would like to ask how to traverse a TreeView. Private Sub showTree (TreeView t) ‘display a treeView to the screen which structure is an unknown End Sub Mike


drawing shapes in runtime -
i am drawing a box with : Picture1.Line (sX, sY)-(x, y), vbBlack, B and circle with: Picture1.Circle (sX, sY), r using my x,y xordinates in runtime. how can i draw a triangle or a polygon?


Drawing A Chart Using Borland -
Okay where to start. Hi Everyone I have an external data file (Scores.dat), which I have written code for, it opens the file up counts the number of times each number is repeated and stores the answer in another file called chart.txt. What I have now been trying to do is use


Bitmap capture using PictureBox control -
Hi All, I'm using GDI drawing functions to create an animation using a PictureBox control as the drawing surface. The GDI functions are wrapped into my own animation functions. The PictureBox control has the picture property initially set to a background bitmap in design mode. In using


Word like document -
hi, I'm trying to make an activeX conrtol like the word document, anybody knows or has any idea about how the word document supports multi font and colored text along with pictures and shapes like Lines, Tables etc. I'm not looking forward to use VBA for this. I thought of using t