Darc Posted September 19, 2003 Posted September 19, 2003 is there a .NET equivalent of TextWidth from VB 6.0? I need to center some text... Quote
Moderators Robby Posted September 19, 2003 Moderators Posted September 19, 2003 Vb6 TextWidth? What do you mean? Quote Visit...Bassic Software
Darc Posted September 19, 2003 Author Posted September 19, 2003 you could get the width of text in pixels, making it possible to center text. Quote
AndreRyan Posted September 19, 2003 Posted September 19, 2003 You can use the a label and set the alignment to center otherwise you can use the MeasureString function Quote .Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?
wichawd Posted September 29, 2003 Posted September 29, 2003 Hey, I was trying the MeasureString function above in VB.Net but it seems that there's no such function in .Net. I'm not sure thought if I understand you guys correctly. Quote
wichawd Posted September 29, 2003 Posted September 29, 2003 Just got it. its part of the controls CreateGraphics method. :) Quote
AndreRyan Posted October 1, 2003 Posted October 1, 2003 It's actually part of the Graphics class, which can be created with CreateGraphics Quote .Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.