Hi,
I need to load 2 variables in the Title Bar as the Form.Name on Page load but this isnt working.
Me.Name = fname + " " + surname
Any help please?
Printable View
Hi,
I need to load 2 variables in the Title Bar as the Form.Name on Page load but this isnt working.
Me.Name = fname + " " + surname
Any help please?
Me.name is the internal name for the form. Change it tovb Code:
me.text = fname + " " + surname
In what way isnt that working? You need to give us as much information as possible.
Edit: Ah yes, good find irishman ;)
Number one swede, number one :)
Thanks guys, became rusty!
Are you still having problems displaying the two variables?
It needs to be in the form load event and would have to be
vb Code:
me.text = "blah blah blah"
Your missing the " "
Did it work !!!???
should you not also be using the & operator instead of + with strings... or does it not make any difference?
As long as you have Option Strict ON, it should make no real difference. I much prefer & to +, since it makes it more clear, but they both work the same. Without Option Strict, there is the chance that certain variables might be added rather than concatenated, which has tripped up people in the past, but it isn't common.
Rep+ Shaggy I never realised that, although I have option strict always on! :thumb: