Click here to Skip to main content
15,898,943 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to differentiate between dates? Pin
help as an alias23-Jul-07 1:05
help as an alias23-Jul-07 1:05 
GeneralRe: How to differentiate between dates? Pin
originSH23-Jul-07 1:47
originSH23-Jul-07 1:47 
Questionreading xml file in C# Pin
S Palip23-Jul-07 0:57
S Palip23-Jul-07 0:57 
AnswerRe: reading xml file in C# Pin
Christian Graus23-Jul-07 1:00
protectorChristian Graus23-Jul-07 1:00 
GeneralRe: reading xml file in C# Pin
S Palip23-Jul-07 15:21
S Palip23-Jul-07 15:21 
AnswerRe: reading xml file in C# Pin
WillemM23-Jul-07 1:01
WillemM23-Jul-07 1:01 
AnswerRe: reading xml file in C# Pin
Kevin McFarlane23-Jul-07 1:55
Kevin McFarlane23-Jul-07 1:55 
Questionusing user control Pin
cyn823-Jul-07 0:47
cyn823-Jul-07 0:47 
hi, I'm a beginner here. I've create an empty user control. I wish to allow a shape(rectangle, circle,etc) to be able to be drawn onto it. i got a function in the user control class:

void AddRect(Graphics shape,float x,float y)
{
shape.DrawRectangle(x,y,20,20);
}


in form class:
Graphics graph;
private Rectangle rectangle=new Rectangle(0,10,50,50);

graph = Graphics.FromImage(m_objDrawingSurface);
graph.Clear(SystemColors.Control);
ShapeCanvasl shape=new ShapeCanvasl();
shape.AddRect(graph,rectangle.X,rectangle.Y);

However, it draws on the form and not exactly on the user control. Any help is much appreciated.

Thanks
QuestionHandling Large Memory Pin
satsumatable23-Jul-07 0:26
satsumatable23-Jul-07 0:26 
AnswerRe: Handling Large Memory Pin
WillemM23-Jul-07 1:04
WillemM23-Jul-07 1:04 
QuestionExecute program automatically at a prescribed time daily. Pin
javid4u23-Jul-07 0:17
javid4u23-Jul-07 0:17 
AnswerRe: Execute program automatically at a prescribed time daily. Pin
Pete O'Hanlon23-Jul-07 0:41
mvePete O'Hanlon23-Jul-07 0:41 
GeneralRe: Execute program automatically at a prescribed time daily. Pin
javid4u23-Jul-07 0:53
javid4u23-Jul-07 0:53 
QuestionGeneric Edit/Copy, Paste, Cut items in WinForms Pin
AndrusM23-Jul-07 0:05
AndrusM23-Jul-07 0:05 
AnswerRe: Generic Edit/Copy, Paste, Cut items in WinForms Pin
Christian Graus23-Jul-07 0:14
protectorChristian Graus23-Jul-07 0:14 
QuestionDeleting temporary file Pin
-spy-22-Jul-07 23:57
-spy-22-Jul-07 23:57 
AnswerRe: Deleting temporary file Pin
blackjack215023-Jul-07 0:05
blackjack215023-Jul-07 0:05 
AnswerRe: Deleting temporary file Pin
Luc Pattyn23-Jul-07 1:52
sitebuilderLuc Pattyn23-Jul-07 1:52 
AnswerRe: Deleting temporary file Pin
L Henson23-Jul-07 2:42
L Henson23-Jul-07 2:42 
QuestionCursor Dispose Problem Pin
Keshav V. Kamat22-Jul-07 23:43
Keshav V. Kamat22-Jul-07 23:43 
AnswerRe: Cursor Dispose Problem Pin
Luc Pattyn23-Jul-07 2:01
sitebuilderLuc Pattyn23-Jul-07 2:01 
QuestionPdf File Creation Pin
karthikeyanic22-Jul-07 23:32
karthikeyanic22-Jul-07 23:32 
AnswerRe: Pdf File Creation Pin
blackjack215022-Jul-07 23:55
blackjack215022-Jul-07 23:55 
GeneralRe: Pdf File Creation Pin
javid4u23-Jul-07 0:16
javid4u23-Jul-07 0:16 
Questiondatagrid problem Pin
srinivassam22-Jul-07 23:28
srinivassam22-Jul-07 23:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.