Getting the Width of a Text in Web

Like this:

dim x as integer

len = GetTheLength("MyBlaBla")


I try to do it this way with a Label but after a view thimes runnig the
thing it Crashes
by saying the Class allready exists...



Dim graph As System.Drawing.Graphics
Dim font As System.Drawing.Font
Dim label As New Windows.Forms.Label
Dim rect As New System.Drawing.SizeF

font = New System.Drawing.Font("verdana", 8)
graph = label.CreateGraphics <<<<<<<< There it crashes some times
(not evry time)
rect = graph.MeasureString("Bla", font)
graph.Dispose()
label.Dispose()