Textwidth question

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

I am rewritting a vb6 application and Iam stuch on how to replace the
textwidth command. Any suggestions?
 
I am rewritting a vb6 application and Iam stuch on how to replace the
textwidth command.

'System.Drawing.Graphics.MeasureString'.
 
Now is the perfect time for you to switch to another development
platform. If you havnt learned VB.NET yet then consider my advice.
Visual Studio.NET is complete and utter garbage. It will enable you to
work at half the speed you used to. Consider any other dev platform -
forget MS. They shit on us by destroying our language.

The Grand Master
 
I am rewritting a vb6 application and Iam stuch on how to replace the
textwidth command. Any suggestions?

I always used to use a hidden Label, set its Caption and read off its
Width. Maybe I still can ...

In the Brave New World,

System.Drawing.Graphics.MeasureString()

does the job; the "fun" part is finding a Graphics object that you can
use to do this ... ;-)

HTH,
Phill W.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top