Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
GeneralRe: Get a properties name via reflection Pin
S. Senthil Kumar6-Oct-06 19:20
S. Senthil Kumar6-Oct-06 19:20 
QuestionHow to use Collection.CopyTo? Pin
nicknotyet5-Oct-06 10:08
nicknotyet5-Oct-06 10:08 
AnswerRe: How to use Collection.CopyTo? Pin
S. Senthil Kumar6-Oct-06 5:51
S. Senthil Kumar6-Oct-06 5:51 
GeneralRe: How to use Collection.CopyTo? Pin
nicknotyet6-Oct-06 7:13
nicknotyet6-Oct-06 7:13 
GeneralRe: How to use Collection.CopyTo? Pin
S. Senthil Kumar6-Oct-06 19:14
S. Senthil Kumar6-Oct-06 19:14 
GeneralRe: How to use Collection.CopyTo? Pin
nicknotyet9-Oct-06 4:00
nicknotyet9-Oct-06 4:00 
QuestionActiveX in C# Pin
jjvainav5-Oct-06 9:54
jjvainav5-Oct-06 9:54 
QuestionRotate Text - Problem Pin
seq-5-Oct-06 9:52
seq-5-Oct-06 9:52 
Hello,

I have a problem, my application is drawing a simple text in the middle of a window, but the text is rotated by a user-defined angle. The problem is I cant make the text appear in the middle (the rotating makes the point change its location. My code looks like follows:

<br />
 graphics.RotateTransform(-rotateAngle);<br />
 graphics.DrawString(mystring, myfont, myBrush, drawpoint, new StringFormat());<br />


I know I should put a graphics.TransformTranslate(_x,_y) - BUT I HAVE NO IDEA HOW TO FIGURE OUT THE POINTS for that purpose (before the locatin I was simply using X=width/2-measurestring/2, Y=height/2-measurestring/2). Any one know the maths for that ?
AnswerRe: Rotate Text - Problem Pin
Christian Graus5-Oct-06 11:21
protectorChristian Graus5-Oct-06 11:21 
AnswerRe: Rotate Text - Problem Pin
Christian Graus5-Oct-06 11:22
protectorChristian Graus5-Oct-06 11:22 
GeneralRe: Rotate Text - Problem Pin
seq-5-Oct-06 11:46
seq-5-Oct-06 11:46 
GeneralRe: Rotate Text - Problem Pin
Christian Graus5-Oct-06 11:55
protectorChristian Graus5-Oct-06 11:55 
QuestionDetect events from another app? Pin
theog5-Oct-06 9:29
theog5-Oct-06 9:29 
QuestionHard Question about display screen Pin
Yanshof5-Oct-06 9:15
Yanshof5-Oct-06 9:15 
AnswerRe: Hard Question about display screen Pin
Chris Buckett5-Oct-06 9:27
Chris Buckett5-Oct-06 9:27 
GeneralI need to know how to do it ... and i dont need something Pin
Yanshof5-Oct-06 9:32
Yanshof5-Oct-06 9:32 
GeneralRe: I need to know how to do it ... and i dont need something Pin
Dan Neely5-Oct-06 9:46
Dan Neely5-Oct-06 9:46 
GeneralRe: I need to know how to do it ... and i dont need something Pin
Chris Buckett5-Oct-06 21:35
Chris Buckett5-Oct-06 21:35 
QuestionLoading Treeview in the Background Pin
smarttom995-Oct-06 8:21
smarttom995-Oct-06 8:21 
AnswerRe: Loading Treeview in the Background Pin
hdv2125-Oct-06 8:33
hdv2125-Oct-06 8:33 
GeneralRe: Loading Treeview in the Background Pin
louthy5-Oct-06 17:01
louthy5-Oct-06 17:01 
QuestionKeep a dialog open if OK hit and error occured Pin
kozu5-Oct-06 8:14
kozu5-Oct-06 8:14 
AnswerRe: Keep a dialog open if OK hit and error occured Pin
Chris Buckett5-Oct-06 8:59
Chris Buckett5-Oct-06 8:59 
GeneralRe: Keep a dialog open if OK hit and error occured Pin
kozu5-Oct-06 9:46
kozu5-Oct-06 9:46 
QuestionRestrict multiple instance of my application Pin
Nadia Monalisa5-Oct-06 6:21
Nadia Monalisa5-Oct-06 6:21 

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.