hugobooze Posted September 9, 2003 Posted September 9, 2003 To use this Graphics.MeasureString you have to instanciate Graphics, but that can't be done. (the constructor is private) How do you use is? Quote // Hugo
AndreRyan Posted September 10, 2003 Posted September 10, 2003 (edited) Dim MyGraphics As Graphics = Me.CreateGraphics() 'There are several "From" Functions, use the Object Browser to find out the one you want Dim MyGraphics As Graphics = System.Drawing.Graphics.From*() Edited September 10, 2003 by AndreRyan 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?
hugobooze Posted September 15, 2003 Author Posted September 15, 2003 Ok! Thank you very much! Quote // Hugo
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.