[Vb2008] MDI application - Selects ALL text of active form

  • Thread starter Thread starter Rob W
  • Start date Start date
R

Rob W

Greetings,

My MDI application is a wordpad style application.

When several documents are open, closing the active document (form) action a
previously inactive document to become the focal point and becomes active
with all text within SELECTED. Document form consists of one textbox.

The form has the property HideSelection set to True.

I cannot see anywhere within the code why it would select the text, is this
normal behaviour?

I do have a sub procedure for MDIActivate but I assumed this only is
initiated on creation and there is no code within which utilises the textbox
of the MDIChildren.

If I used the MDIWindowListItem to switch between documents it does not
select all text nor if I open or create a new document.

I could write code within the form to reset the selected text at this moment
in time I more interested in why it does what it does.

I hope this isn't too trivial and I have explained the issue in an easy to
understand manner.


Cheers
Rob
 
Greetings,

My MDI application is a wordpad style application.

When several documents are open, closing the active document (form) action a
previously inactive document to become the focal point and becomes active
with all text within SELECTED. Document form consists of one textbox.

The form has the property HideSelection set to True.

I cannot see anywhere within the code why it would select the text, is this
normal behaviour?

I do have a sub procedure for MDIActivate but I assumed this only is
initiated on creation and there is no code within which utilises the textbox
of the MDIChildren.

If I used the MDIWindowListItem to switch between documents it does not
select all text nor if I open or create a new document.

I could write code within the form to reset the selected text at this moment
in time I more interested in why it does what it does.

I hope this isn't too trivial and I have explained the issue in an easy to
understand manner.

You might try deselecting the text in the child form's Activate event
handler.
 
Back
Top