I am creating a simple usercontrol which has a textbox on it.
I add it to my project and define names with Vb control wizard. I think it
sets up all the code I need ( such as Property let )
I put the control on a form1 in my project
I define "k as new usercontrol1" , but when I want to use
k.text=anothertext.text it says
"object variable not set"
There mustbe a way to set k to .... an object . I tried several combinations
but it did not work
I will be gratefull if anybody helps me
Best Regards
Serdar Tibet
Alex Dybenko - 25 Oct 2004 12:05 GMT
if you have a control on a form - then you have to write:
dim k as usercontrol1
set k = me.Control1
k.text=anothertext.text

Signature
Alex Dybenko (MVP)
http://Alex.Dybenko.com
http://www.PointLtd.com
>I am creating a simple usercontrol which has a textbox on it.
>
[quoted text clipped - 16 lines]
>
> Serdar Tibet