PC Review


Reply
Thread Tools Rate Thread

Control Drawing Issue Please Help !!!!

 
 
=?Utf-8?B?TWlrZSBTdGFya2V5?=
Guest
Posts: n/a
 
      6th Feb 2004
I have created a transparent control and I am using to to create drawing objects Inside the transparent objects I have created I am trying to using the draw shapes oval, rectangle etc. An example would be like in word are when you drag an oval onto the screen, the drawing resizes as the control does. The problem I am running into is actually drawing the rectangle. I am attempting to use this code here:

Rect = new Rectangle(this.Bounds.X - 10, (this.Bounds.Y -10), (this.Bounds.Width - 10), (this.Bounds.Height - 10))

I have placed this code in the Resize event. It does draw, however it seems to be reponsive to the bounds of it's container rather then the control itself. What I could like is if someone can help me figure out how to draw a rectangle close to the edges of the custom control and the drawing would resize itself as the control does. Please help!!! If anyone has any examples please email them (E-Mail Removed)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
drawing issue Alain R. Microsoft C# .NET 3 22nd Sep 2007 07:28 PM
Control Drawing Issue =?Utf-8?B?TWlrZSBTdGFya2V5?= Microsoft Dot NET Framework Forms 1 9th Feb 2004 07:27 PM
Drawing Issue =?Utf-8?B?TWlrZSBTdGFya2V5?= Microsoft Dot NET Framework 1 7th Feb 2004 01:18 AM
Control Drawing Issue =?Utf-8?B?TWlrZSBTdGFya2V5?= Microsoft Dot NET Framework Forms 0 6th Feb 2004 07:11 PM
Control Drawing Issue =?Utf-8?B?TWlrZSBTdGFya2V5?= Microsoft C# .NET 0 6th Feb 2004 07:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:17 PM.