Re: Winform inside a SplitContainer Funny Behaviour
- From: v-lliu@xxxxxxxxxxxxxxxxxxxx (Linda Liu [MSFT])
- Date: Mon, 16 Oct 2006 09:02:24 GMT
Hi AnikSol,
If we create a usercontrol derived from the existing winforms, it just
behaves the way it was before - ie, the cursor can only be added at the
beginning of the text.
Could you tell me what you mean in the above sentence? I don't think we
could have a usercontrol derived from a form.
But to convert atleast 40 winforms into user controls and change the
coding etc, its going to be a gigantic efforts.
You could almost copy the child controls and the code in the winform into a
usercontrol and only need a little modification.
my changing the whole application to an MDI also is causing a
few other headaches.
Could you tell me what the headaches are when you are trying to changing
the application to an MDI?
I have performed a test based on your sample code of setting the selection
start in the numerictextbox and it did work. However, I would say that it
may not be a formal way.
In my opinion, your problem has two workarounds. One option is to create a
usercontrol for each winform in order to show the usercontrols in the panel
of the split container. The other option is to show these winforms in a MDI
parent as MDI child.
As for the first option, as I have mentioned, it will ask for some efforts
to create a usercontrol for each winform. As for the second option, you may
use a toolstrip instead of the previous navigation menu in the left panel
within the split container and add the toolstrip onto the MDI parent. Then
you show those winforms as MDI child.
In short, if you do want to display those winforms in the right panel
within the split container and won't display those winforms outside a
container, I still recommend you to use usercontrols instead of winforms.
If you also want to show these winforms outside a container in some cases,
I recommend you to change the application to an MDI frame and add a
toolstrip instead of the previous navigation menu onto the MDI parent.
If you need our further assistance, please feel free to let me know.
Sincerely,
Linda Liu
Microsoft Online Community Support
.
- Follow-Ups:
- Re: Winform inside a SplitContainer Funny Behaviour
- From: AnikSol
- Re: Winform inside a SplitContainer Funny Behaviour
- References:
- Winform inside a SplitContainer Funny Behaviour
- From: AnikSol
- Re: Winform inside a SplitContainer Funny Behaviour
- From: AnikSol
- Re: Winform inside a SplitContainer Funny Behaviour
- From: Linda Liu [MSFT]
- Re: Winform inside a SplitContainer Funny Behaviour
- From: AnikSol
- Re: Winform inside a SplitContainer Funny Behaviour
- From: AnikSol
- Winform inside a SplitContainer Funny Behaviour
- Prev by Date: How to get a valid Image
- Next by Date: Re: PropertyGrid and INotifyPropertyChanged .NET 2.0
- Previous by thread: Re: Winform inside a SplitContainer Funny Behaviour
- Next by thread: Re: Winform inside a SplitContainer Funny Behaviour
- Index(es):
Relevant Pages
|