473,324 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Rectangle & Line

Hello.
How do I can to drawing rectangle and line on my form??
PHM (Please Help Me)
Cris
Dec 2 '05 #1
4 1105
Cristian wrote:
Hello.
How do I can to drawing rectangle and line on my form??
PHM (Please Help Me)
Cris


Simple google search shows many examples.
http://msdn.microsoft.com/library/de...LineOnForm.asp
Do the drawing in the form's paint event so it get drawn every time the
form redraws. the Graphics object has many ways to draw including lines
and rectangles.

Chris
Dec 2 '05 #2
Sorry for VB net!!

"Chris" <no@spam.com> ha scritto nel messaggio
news:eX**************@tk2msftngp13.phx.gbl...
Cristian wrote:
Hello.
How do I can to drawing rectangle and line on my form??
PHM (Please Help Me)
Cris


Simple google search shows many examples.
http://msdn.microsoft.com/library/de...LineOnForm.asp
Do the drawing in the form's paint event so it get drawn every time the
form redraws. the Graphics object has many ways to draw including lines
and rectangles.

Chris

Dec 2 '05 #3
"Cristian" <cr*********@libero.it> schrieb:
How do I can to drawing rectangle and line on my form??


<URL:http://www.bobpowell.net/beginnersgdi.htm>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Dec 2 '05 #4
Cristian,

This is very often answered with "create a very small groupbox". That goes
much faster than GDI+

Cor
Dec 3 '05 #5

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

Similar topics

15
by: Steven T. Hatton | last post by:
The following may strike many of you as just plain silly, but it represents the kind of delelima I find myself in when trying to make a design decision. This really is a toy project written for...
3
by: | last post by:
I am having a hard time understanding the logic behind the Rectangle object. My problem has to do with the way the rectangle treats the "Width" property. For example, take the following rectangle...
5
by: DazedAndConfused | last post by:
I have a rectangle around text that I want to fill in with color. I do not know the height of the rectangle until I actually go through and draw out the text. Is there a way of filling in the...
0
by: moondaddy | last post by:
In a WPF windows application I want to drop an end of a line on a rectangle's border but am not sure the best approach to take. I've built a simple project with resizable and dragable rectangles...
7
by: Florian Haag | last post by:
Hello, I'm trying to compile a programme which compiles fine under Linux; I'm trying it with MinGW G++ 3.4.2: Component.h: #ifndef COMPONENT_H_ #define COMPONENT_H_
4
by: nothix9 | last post by:
Hello guys, Ive been working this for 2 days, I am required to position a string using drawstring but the problem is its dynamic and changes depending on the database or source. A quick fix I thought...
10
by: sklett | last post by:
I have a situation where I'm getting in Image that has a gray (solid, same color) background with a smaller white rectangle inside. The position is not always the same. What I need to do is...
3
by: sumuka | last post by:
Hello, I'm doing a project in java using swings ,im able to create a panel and frame but i have a problem in event handling.I have added the MouseMotionListener but it's giving some error .Here i...
4
by: =?Utf-8?B?Unlhbg==?= | last post by:
Why do I sometimes get this error; works fine most of the time: Rectangle '{X=0,Y=0,Width=0,Height=0}' cannot have a width or height equal to 0 void OnPaint(Object sender, PaintEventArgs e) {...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.