This project has moved and is read-only. For the latest updates, please go here.

Getting text string from textbox - VB.NET

Topics: Code 128
Sep 1, 2014 at 1:25 AM
I'm trying to get the image to work using a textbox. The textbox has about 930 characters in it. If I use the quotes and enter a string between then with one line, there's no problem; example:

Dim bdf As CodeQrBarcodeDraw = BarcodeDrawFactory.CodeQr
Dim x AS String = "This is just a test."
PictureBox1.Image = bdf.Draw(x, 4, 4).

But if I try anything else I get either nothing or an error: Index was outside the bounds of the array. I even tried MemoryStream, StreamReader and String reader, but non worked.

Any ideas how I can make this work with the textbox control?

Thank you.