What text1.SetFocus used for?

Cheers,
FPinget

Text1.SetFocus is used to set your cursor to Text1(Control).
Thanks

As Kinwang pointed out, the cursor will go to text1 if its setfocus property is invoked. Be carefull though of errors, if text1 is not visible you will receive an error, if the setfocus is invoked with another object i.e 'Text1.SetFocus, Text2.SetFocus, an error will be raised, if text1 forms part of a frame control and the frame is not visible, an error will be raised.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.