views:

39

answers:

1

what is control method in vb

+2  A: 

Well a control tends to be a visual component that can be added to a form in visual basic, and a method tends to be some code that can be run on an object.

Say you add a text box control to a form and call it txtBox1. You may then want to have the cursor move to this text box when the user clicks a button so they dont have to click in it themselves before starting to type. To do this you would call the setfocus method of the text box control called txtBox1. So (in that buttons click event) you would write the code:

txtBox1.Setfocus  

(This is at least the code as it would be in visual basic for applications with Access)

g_g