problem with setfocus after point input in acad
Hello, i have a problem with the part of the code i have paste below
[vba]If InStr(regel1, "Point:") Then
'UserForm1.hide
'returnPnt = ThisDrawing.Utility.GetPoint(, "click het nulpunt van het model aan ")
'UserForm1.Show
textbox2.SetFocus
teller = TextBox2.LineCount[/vba]
It works so okay.
But when i remove the ' in front off the 3 other lines it will not function anymore. It will then not set the variabele teller and stop there, it gives a error when i quit the application. The error is that the focus can not be set on textbox2.
textbox 2 is a part of userform1
Ow and this is part of more code what should happens as a button in userfomr1 is clicked. (so maybe it goes wrong because of this)