>>>You're ok so far. We can also add that the name of the container is also Message. :) So, from an external point of view it may look like this: ThisForm.Message.Message.Refresh().
>>
>>>The code is in the NodeClick(). I have the following:
>>>
>>>LPARAMETERS node
>>>Node.Selected=.T.
>>>This.Parent.ShowInfo(Node.Key,Node.Index)
>>>
>>>Then, the ShowInfo() method is dealing with various thing. The last 2 lines are:
>>>
>>>*This.Message.SelStart=1
>>>This.Message.Refresh()
>>>
>>>As you see, I put a comment to avoid the bug.
>>
>>Michel, I may be confused by 2 layers both named MESSAGE, but it seems to me you're putting your SelStart in the container, not in the editbox. Try again putting in the entire hierarchy thisform....message.message.selstart = 1 (or 0 as Gerald suggests).
>
>The upper code is executed in a method of the container Message. So, this represent Message and .Message is the Editbox.
>
>In an email to Paul, I just decided to define the container as a form class instead. By that, I will get rid of the container and a lot of problems. An hour of work which will worth it.
>
>Thanks.
OIC
Glad you got it working.
Barbara