Click here to Skip to main content
16,007,809 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralCustom toolbar control in .Net framework Pin
agrafov17-May-05 9:59
agrafov17-May-05 9:59 
GeneralRe: Custom toolbar control in .Net framework Pin
John Arlen117-May-05 10:23
John Arlen117-May-05 10:23 
GeneralRe: Custom toolbar control in .Net framework Pin
Carl Mercier17-May-05 11:13
Carl Mercier17-May-05 11:13 
GeneralRe: Custom toolbar control in .Net framework Pin
Sebrell22-May-05 15:50
Sebrell22-May-05 15:50 
GeneralDetermining logon provider Pin
Ryan McCauley17-May-05 6:24
Ryan McCauley17-May-05 6:24 
GeneralProblem with GetTextExtentPoint32 Pin
Alsvha17-May-05 1:20
Alsvha17-May-05 1:20 
GeneralRe: Problem with GetTextExtentPoint32 Pin
John Arlen117-May-05 10:18
John Arlen117-May-05 10:18 
GeneralRe: Problem with GetTextExtentPoint32 Pin
Alsvha17-May-05 18:31
Alsvha17-May-05 18:31 
What I'm trying to do is find information as to how "wide" a string would be if I were to write it to the screen. This would allow me to size menus, checkbox and all sorts of other onscreen containers et al, before actually having to write the string(s) to the screen and then meassure them up by hand.
So what GetTextExtents tells me - is excatly the information I'd like to get ..... but I can't just get it to work, because of the NullReference (maybe because of the wrong DC)

I tried dabbeling with Graphics.MeasureString, but fell short when I appaently needed to get the PaintEventArgs to run it from.
Graphics.MeasureString wouldn't compile, but PaintEventArgs.Graphics.MeasureString would - so I discontinued this path, because I'm not sure I could get such an event for what I want to do.


---------------------------
127.0.0.1 - Sweet 127.0.0.1
GeneralRe: Problem with GetTextExtentPoint32 Pin
Dave Kreskowiak17-May-05 19:31
mveDave Kreskowiak17-May-05 19:31 
QuestionA bug in .net debugger??? Pin
anurik16-May-05 21:53
anurik16-May-05 21:53 
AnswerRe: A bug in .net debugger??? Pin
Marc Clifton17-May-05 0:23
mvaMarc Clifton17-May-05 0:23 
QuestionHow to change desktop theme and start menu style in c# Pin
mmsspp16-May-05 17:51
mmsspp16-May-05 17:51 
QuestionHow to reload .Net control (Applet) Pin
Anonymous16-May-05 10:49
Anonymous16-May-05 10:49 
AnswerRe: How to reload .Net control (Applet) Pin
Marc Clifton16-May-05 11:31
mvaMarc Clifton16-May-05 11:31 
GeneralRe: How to reload .Net control (Applet) Pin
Anonymous16-May-05 11:59
Anonymous16-May-05 11:59 
GeneralContinuous Async read Pin
goldoche16-May-05 7:36
goldoche16-May-05 7:36 
GeneralRe: Continuous Async read Pin
Marc Clifton16-May-05 11:34
mvaMarc Clifton16-May-05 11:34 
QuestionIDesignerHost resources? Pin
Dr Herbie16-May-05 1:28
Dr Herbie16-May-05 1:28 
AnswerRe: IDesignerHost resources? Pin
Dr Herbie16-May-05 22:00
Dr Herbie16-May-05 22:00 
GeneralRe: IDesignerHost resources? Pin
Marc Clifton17-May-05 0:24
mvaMarc Clifton17-May-05 0:24 
GeneralAppDomain.AppendPrivatePath Pin
David Wulff15-May-05 10:00
David Wulff15-May-05 10:00 
GeneralRe: AppDomain.AppendPrivatePath Pin
Marc Clifton15-May-05 14:20
mvaMarc Clifton15-May-05 14:20 
GeneralRe: AppDomain.AppendPrivatePath Pin
David Wulff15-May-05 14:25
David Wulff15-May-05 14:25 
GeneralArray Problem Pin
Saksida Bojan15-May-05 7:04
Saksida Bojan15-May-05 7:04 
GeneralRe: Array Problem Pin
S. Senthil Kumar15-May-05 7:22
S. Senthil Kumar15-May-05 7:22 

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.