drawrectangle

Clearing DrawRectangle in Windows Forms

I am drawing a rectangle, sleeping for a few milliseconds--then I want to clear the rectangle, but I can't figure out how. (The rectangle is sitting over a graphic so I can't simply cover it up with another rectangle) graphics.DrawRectangle(p, innerRectangle) System.Threading.Thread.Sleep(75) ...

C#, GDI+ - Why are my rectangles truncated?

When I run the following code: private void button1_Click(object sender, EventArgs e) { Bitmap b = new Bitmap(300, 400); using (Graphics g = Graphics.FromImage(b)) { g.FillRectangle(Brushes.Black, new Rectangle(0, 0, 300, 400)); } b.RotateFlip(RotateFlipType.Rotate90FlipNone);...

Tweening a Rounded Rectangle in Actionscript 3

I would like to tween between a short rounded rectangle and a tall rounded rectangle. (I only want deal with the height - no other parameters). I am programming with actionscript 3. My tweening engine is TweenLite. I have been tweening a sprite that contains a rounded rectangle. The tweened sprite produces distortion. I suppose tha...

Painted Border Runs In Certain Situations

In my tool I use a a panel to change pages. Each page has it's own panel and when I change a page I send the panel with the controls. On the panel I use as the canvas I have the following paint event: private void panelContent_Paint(object sender, PaintEventArgs e) { e.Graphics.CompositingQuality = CompositingQuality.H...

How to draw a rectangle in C# using a mouse

Hi, I want to draw a rectangle on a form in C#. I read and found this article. Are there any samples or tutorials available ? The article was not very helpful. ...

VB.NET DrawRectangle For A Table

I want to draw a table in my print output using the System.Drawing.Printing's Graphics object. I'm trying to use the DrawRectangle to draw my table cells. This requires drawing several rectangles in a row. It should be pretty easy, right? Well it appears that DrawRectangle four parameters are x, y, width, and height. However x and y are...

Draw a User Defined Rectangle

Hi, My current code allows me to draw rectangles from a user defined spot but not in the way in whihc i desire. I need it to be like you would do it in paint, here is my current code: namespace SimpleDraw2 { /// /// Description of MainForm. /// public partial class MainForm : Form { bool IsMouseDown = fals...

IB builder or programmaticaly draw?

quick question to the gurus of coding! What do you advise? should i programmatically draw my textfields, labels, images or should i use IB? would it make any difference? i have scrolling issues (bit jerky) but not something i cannot live without! thanks EDIT: Please, Please gentleman.... get in line for your answers.... NOT all toge...