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

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
 
J

joecool1969

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top