473,657 Members | 2,595 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Drawing lines & shapes with Mouse using VB.Net

I am writing my app using Visual Studio 2005 (VB.NET). I want to draw
images (nothing complex, just lines and shapes) using a mouse. How do
one go about achieving this with VB.NET??

If someone could just give me a starting point that would be great.
Thanks
Christie

Nov 28 '06 #1
3 2888
I come across this time and time again - people posting to this group
without first looking for answers on Google.

Posting to this group is a "Priviledge " NOT a "Right". Myself and
others devote a lot of time to this newsgroup helping others to solve
problems. You shouldn't abuse our kindness by not first having the
courtesy to look for a few answers.

Steve Ray Irwin
Christie wrote:
I am writing my app using Visual Studio 2005 (VB.NET). I want to draw
images (nothing complex, just lines and shapes) using a mouse. How do
one go about achieving this with VB.NET??

If someone could just give me a starting point that would be great.
Thanks
Christie
Nov 28 '06 #2
Sorry...will do
Master Programmer wrote:
I come across this time and time again - people posting to this group
without first looking for answers on Google.

Posting to this group is a "Priviledge " NOT a "Right". Myself and
others devote a lot of time to this newsgroup helping others to solve
problems. You shouldn't abuse our kindness by not first having the
courtesy to look for a few answers.

Steve Ray Irwin
Christie wrote:
I am writing my app using Visual Studio 2005 (VB.NET). I want to draw
images (nothing complex, just lines and shapes) using a mouse. How do
one go about achieving this with VB.NET??

If someone could just give me a starting point that would be great.
Thanks
Christie
Nov 28 '06 #3
Don't let that guy bully you. That's what he does.

You can do this through mouse events.

Robin S.
---------------------------------

"Christie" <c.*******@yaho o.comwrote in message
news:11******** **************@ l39g2000cwd.goo glegroups.com.. .
>I am writing my app using Visual Studio 2005 (VB.NET). I want to draw
images (nothing complex, just lines and shapes) using a mouse. How do
one go about achieving this with VB.NET??

If someone could just give me a starting point that would be great.
Thanks
Christie

Nov 28 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
22420
by: john | last post by:
Hi I am a C++ newbie, I am looking to draw single lines and simple boxes in a C++ console window. Is there a draw command with x and y coordinates that can be used with my Dev C++ compiler. For simplicity sake, I would be prepared to draw using characters such as _ or * if proper line drawing is really complicated. Thanks in advance. Walt
5
2367
by: Manuel Daponte | last post by:
I found this code in this newsgroup and used it, but the lines drawn are composed of point too separated when the mouse moves at medium or fast speed. How can I fix it? Thanks in advance !!! Dim bTracking As Boolean Dim blackPen As Pen Dim g As Graphics
2
2615
by: Dursun | last post by:
Collegues, is it possible to do the foloowing: Let end user draw specific shapes (a circle that has a number within it and a connector that points to a specific area on the background image) using Windows Forms and controls. To be more specific, I want to design a VB.Net Windows form where end user will mark damages on an airplane picture (which might be background picture of the form) using a marker object that has a circle (with a...
1
1715
by: Sam | last post by:
Hi guys I'm writing a small drawing program which has "snap to grid" mode and I want to display something (some kind of shapes for example a small square or circle which indicate the current snap point of my mouse) but I have no success so far. I tried controlpain.drawreversibleframe method to draw a tiny square to indicate my current snap point of my mouse as it moves on my grid points; and this somwhat gives me what I want. The...
9
3170
by: davetelling | last post by:
I am not a programmer, I'm an engineer trying to make an interface to a product I'm designing. I have used C# to make a form that interrogates the unit via the serial port and receives the data. I want to be able to draw lines in a picturebox based upon certain data points I have received. I dragged a picturebox from the toolbar onto my form, but after having gone through the help files, looking online and trying a variety of things, I...
3
8450
by: kamleshgk | last post by:
Hi, I have a requirement to draw a rectangle and a line on a the container control and sometimes as i move the mouse the drawing must occur on top of user controls and other controls, which are placed in the container control... I'm using System.Drawing namespace (C#) to perform the drawing. But as i move the mouse and draw the rectangles, the drawing takes place behind the user controls....I have a requirement to
2
3222
by: mattc66 via AccessMonster.com | last post by:
Does anyone know of some simple line drawing add-on apps. I just need to be able to do some simple line drawing with dims. 4 walls and a door and allow the user to type the dims for the walls. All simple. Thanks MAtt -- Matt Campbell mattc (at) saunatec com
1
3958
by: YouPoP | last post by:
I am doing an app (C# 2.0) where you can draw in a panel with your mouse in "real time". I actually have 2 problems; 1- it does not really is "real time", if your mouse move fast or very fast the line is added after a very small delay. 2-Because I use AddLine(), it adds very short lines from one point to another and it does not give a very good result. Also because of this and my "not real time" problem, when the mouse moves fast it adds...
5
12868
by: Macias | last post by:
Hi, Please help me, how I can make a line drawing on PictureBox similar to MS paint. I thinking about this: click and hold button, move mouse and relase button. I'm trying useing this g.DrawLine(..), but I have a lot of line. In C++ is a parameter XORPUT, but in C# I can't find it.
0
8310
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6167
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2731
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1957
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1620
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.