SetFocus

  • Thread starter Thread starter Christie Sorenson
  • Start date Start date
C

Christie Sorenson

Hello,
I have a custom form based on the message form. It works
well except for one thing.

When I reply to a message, it focuses in the "To" field.
I need it to focus in the "Message" field like the normal
message form does.

I can not do anything to cause security popups. Any ideas?

Thank you!
Christie
 
Well, I know that I just submitted this, but I think I
found the best way to do it. Please let me know if there
is anything flawed with this code. Thank you again!

Dim blnIsOpen

Function Item_Open()
blnIsOpen = True
End Function

Function Item_PropertyChange(Fullname)

If Fullname = "To" And blnIsOpen <> True Then
Set ctl = GetInspector.ModifiedFormPages
("Message").Controls("Message")
ctl.setfocus

End If

End Function
 
Back
Top