Question Pre-fill out textbox with variable

mac-duff

Member
Joined
Dec 21, 2009
Messages
24
Programming Experience
Beginner
Hello,

I am right new in VB and before I just did some VBS Scripts, so my experience is very low but I have already an idea what I would like to write.

Btw. for some easy writings I would be thankful. The tutorials I find in the internet are good, but they are all starting by zero zero and I would like to see some easy example with classes, modules etc. ... Or good books ....

Well, my problems is follow. I use a textbox where the user can enter a text but which I would like to prefill out with a variable (later , with more experience, want to ask the AD for the username and put it in the box).

That means, when the user runs the app, automatically is the username written in the textbox without pushing a button but the user has the opportunity to change it (For example doesnt want the second surname).

I hope someone can understand my idea and help me out of this

Thx
Stephan
 
ha, think I found something:

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
TextBox_name.Text = "Stephan"

End Sub
 
Back
Top