A
Anil Gupte
I copied the following almost directly from
http://msdn2.microsoft.com/en-us/library/6xe5hazb.aspx
Dim instance As Graphics
Dim text As String
'Dim strfont As Font
Dim returnValue As SizeF
text = "asdas asd asd asd"
Dim strfont As New Font("Arial", 16)
returnValue = instance.MeasureString(text, strfont)
and it still does not work! I get an error saying Oject reference is not
set to an intance of an object. I have tried all kinds of combinations, but
it still will not work. In the documentation i.e. dynamic help the
implementation seems to be different.
Can anyone tell me how to implement this?
Thanx,
http://msdn2.microsoft.com/en-us/library/6xe5hazb.aspx
Dim instance As Graphics
Dim text As String
'Dim strfont As Font
Dim returnValue As SizeF
text = "asdas asd asd asd"
Dim strfont As New Font("Arial", 16)
returnValue = instance.MeasureString(text, strfont)
and it still does not work! I get an error saying Oject reference is not
set to an intance of an object. I have tried all kinds of combinations, but
it still will not work. In the documentation i.e. dynamic help the
implementation seems to be different.
Can anyone tell me how to implement this?
Thanx,