Class1.vb into textbox

Maaatt

Member
Joined
Sep 4, 2006
Messages
16
Programming Experience
Beginner
Well, tough to explain but i was just wondering how i'd go about getting everything in Class1.vb and putting it in a textbox.

Basically, i want all the code in the class to be put into the textbox. I just cant seem to do it. I've tried many things.

Theres no real purpose behind it other than knowing for future reference. I've been experimenting a lot lately.

If you can help then thanks heaps! Stumped for the past hour and a half. Cant find anything on the net to help me out really either...
 
Last edited:
Do you want this to happen at runtime from a compiled application or do you want to just load a .vb file into a text box?
 
Oh i sorted it out after i posted. I used a textfile as embedded resource and then used streamreader to read it and then assigned it to a textbox :)

I dunno if that would work for a Class1.vb file or CodeFile1.vb but i might try soon and see!

Thanks for reply though
 
use System.IO.StreamReader to read the entire contents of the *.vb file and put it in a textbox

vb files are all text based btw
 
Back
Top