 |
|
 |
Hi there,
The tab panel is great and working excellent at my end, except, the ActiveDocumentChanged event. It do not fires always when I use ctrl+tab key, but works excellent with mouse.
Due to this problem, I am in great trouble, I have deployed two applications at client end using the same tab, but now problem rose.
Actually on change of tab, I enable/disable different sets of buttons depending upon the type of screen.
Please help me
Regards
Muhammad Sharjeel Ahsan
        :(
|
| Sign In·View Thread·PermaLink | 2.00/5 |
|
|
|
 |
|
 |
Hi, How to autosize dockpanel when the userform gets minimized and maximized in vb.net.
Thanks, Brindha
|
| Sign In·View Thread·PermaLink | 1.00/5 |
|
|
|
 |
|
 |
Hey, excellent control but what's wrong with the BackgroundImage property and the BackColor??
All generalizations are wrong, including this one! (\ /) (O.o) (><)
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Just found the answer and thought to let you know.. Apparently, the control was inherited from the Windows.From class and have the very same problem when it comes to setting background implementing some properties, to make it possible:
1. Make sure your dockPanel/mdi control have the RightToLeft property set to false 2. For DockPanel set the DocumentStyle property to SystemMdi 3. Set the back color and the background image using this:
private void SetBackground() { foreach (Control c in this.Controls) { if (c is MdiClient && c.Name == "Your Form Name") { c.BackColor = //Your Color c.BackgroundImage = //Your Image } } }
Cheers,
All generalizations are wrong, including this one! (\ /) (O.o) (><)
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
hy great control. using latest version (2.3), if set documentstyle to systemmdi got error on opening a document window ...
so the problem of background image continous .....
thank u very much 4 this coooool control 
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Unable to get the window handle for the '' control. Windowless ActiveX controls are not supported.
@ DockContentHandler.cs:line 698
697 if (Form.Visible != visible) 698 Form.Visible = visible;
Software Developer Jayzon Ragasa Baguio City, Philippines
|
| Sign In·View Thread·PermaLink | 4.00/5 |
|
|
|
 |
|
 |
Let say I have 4 windows open in tabs and Window1 s active. I would like to set Window3 active - but I don't know how to do it. In example it is possible to chose "Window" from the tool bar and simply click on the "Document3". However I cannot track this event in code.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Hi. Great Job! Is it possible to disable the closing of all forms and instead just hide the window closed? Thanks for your work  Regards, Agelos
|
| Sign In·View Thread·PermaLink | 1.00/5 |
|
|
|
 |
|
 |
I tried to adapt that in my project: its strange because its work cool with all the windows (like solution explorer/properties window etc) but not with DummyDoc.
I have those exception: "Invalid parent form. When using DockingMdi or SystemMdi document style, the DockPanel control must be the child control of the main MDI container form."
My main form containing dockPanel has set IsMdiContainer: True;
all the setting of dockPanel are also the same as in example. But still when I try to use:
DummyDoc dummyDoc = CreateNewDocument(); if (dockPanel.DocumentStyle == DocumentStyle.SystemMdi) { dummyDoc.MdiParent = this; dummyDoc.Show(); } else dummyDoc.Show(dockPanel);
-- the last line throw this excetion. Have any ideas?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
PS. Temporary I solve this by changing dockPanel property 'document style' from 'DockingMDI' to 'DockingWindow'. But I wish to know why its not working - still can help others as well. And what is exactly difference between 'DockingMDI' & 'DockingWindow'? for me it works the same.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
OK - finally solved it!
DragPanel was indeed not placed on Main Form with MDI. I overlooked that it was placed on ToolStripContainer, I replaced ToolStripContainer with ToolStripPanels and docked them around the Form, so now DockPanel is placed directly on (MDI enabled)Form.
I hope it might help someone as well.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I added the DockPanel to my toolbox in VS2008, popped one on my form and that's pretty much it!
I notice some unfamiliar 'Docking' properties, but nothing allows me to place further DockPanel's within that DockPanel which is at one point what I thought must be the right thing to do.
Are there more controls that should be showing in my toolbox? Do I need to actually code my own controls inheriting from this DockPanel for a number of conveniences? Care to show how to use this thing?
Thanks
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I'm in the same situation - except I'm using VS2005! Thought I'd get a whole series of components in the toolbox for dockable windows, project explorer type windows et al.
|
| Sign In·View Thread·PermaLink | 2.00/5 |
|
|
|
 |
|
 |
Been hacking around with a test app and managed to make a start 
Try this: 1. Add the reference to the WeifenLuo.WinForms.UI.Docking.dll 2. In your toolbox "add a tab" and then "choose items...", browse to the dll above and DockPanel should appear. 3. Add a MDIParent form to the app and add the DockPanel component to the form. 4. Either: (a) Add a new (normal) form to the app and change the inherited form to WeifenLuo.WinFormsUI.Docking.DockContent OR (b) Add an inherited form to the app and browse for the dll above and select one of the obvious forms to inherit from. 5. In the MDIParent form double click the Windows->New Window menu item to show the event handler. Change the code to the following:
ChildForm childForm = new ChildForm(); childForm.Show(dockPanel1);
Think this project needs a good Code Project article or a getting started guide.
Andy
|
| Sign In·View Thread·PermaLink | 5.00/5 |
|
|
|
 |
|
 |
yes, true.. this article need more guideline about how to start.
also don't forget to update this.IsMdiContainer = true; in your parent form.
else, you will not be able to start these functionality of DockManager. )
Hiral
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I have some docked windows and when I dock one window inside of another they don't stay together when I move them to and from the DockPanel. Is there anyway to keep these window grouped together with the current code? I have found myself inheriting from DockContent and modifying the code along with the factories in order to allow this behavior.
Thanks.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I have shown a dock window with DockContent.Show().
I would now like to show a dockable window inside that window I just have shown and I want to dock it inside of the bottom of the window. I think this may be called a pane. So I have a dock window and I want to dock another dockable window inside the bottom pane of the dock window.
How can I do this? I haven't been able to figure out which pane is the bottom pane and where the method is to show a window inside that pane.
Thanks.
|
| Sign In·View Thread·PermaLink | 2.00/5 |
|
|
|
 |
|
 |
This code works fine if DockState of m_dlgFrm.Show is document. How Can I check for the other dock states to see if the panel is actually showing? and if showing, how to activate and make it courrent?
if ( FindDocument("dlgFrmTitle") == null ) { dlgFrm m_dlgFrm = new dlgFrm(); m_dlgFrm.Show(DockPanel, DockState.DockLeftAutoHide); }
private IDockContent FindDocument(string text) { if (DockPanel.DocumentStyle == DocumentStyle.SystemMdi) { foreach (Form form in MdiChildren) if (form.Text == text) return form as IDockContent;
return null; } else { foreach (IDockContent content in DockPanel.Documents) if (content.DockHandler.TabText == text) return content;
return null; }
}
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi! First of all your suite is great and powerful tool!!
but I'm having a problem with content refreshing. the scarnario: -I have class AA deriving from DockContent with DockAreas = Document -I add a new object (aa1) of the AA to a DockPanel:
dockPanel1.Show(aa1, DockState.Document) -in this item's constroctor or onload event I invoke some async method. -method finishes or not - doesn't matter -I add another instance of my AA class - aa2:
dockPanel1.Show(aa2, DockState.Document)
and here the problem occurs. in the tabs bar the aa2 tab is active but the document shows aa1 content.
when I click aa1 tab and then aa2 tab the aa2 tab's content shows properly.
without the async call everything works fine..
how can I fix it?
thanks for any help
life is study!!!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
ok.. I guess I got this solved - in a way.. the problem was that before the async call I put the main application window Enabled to false and in WorkCompleted to true.. this somehow caused tab content not refreshing... when I removed the interface blocking it works just fine.
life is study!!!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I am showing smart part as document view in Dockpanelworkspace. I am opening 5 different views as document in workspace now I select 3rd tab page and then select 5th Tab page and close 5th tab page. Now the latest selected tab should be 3rd one. But here always first tab is selected. In original docking library from weifen luo it persists last slected Tab. Can someone please help me in fixing this issue.
I am using Weifen Luo Docking dll and CAB Architecture.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Ok, maybe I'm just a dummy but I just cant find any good C# examples on how to use DockSuite. Especially with MDI. I have a parent Mdi form inside of which I open Mdi children.
So I have added the DockPanel object to my parent form but just dont see how to add the Mdi children inside it. any example code.
|
| Sign In·View Thread·PermaLink | 2.00/5 |
|
|
|
 |
|
 |
Hello,
I would like to use this part of code for a project that i want to sell.
Can i do that freely ?
Thank.
|
| Sign In·View Thread·PermaLink | 1.00/5 |
|
|
|
 |
|
 |
No licencing is mentioned, so it should be free. But anyhow, author can change the licence at any time and you cannot proove if there was a licence at the moment you downloaded the code... It's not tracked...
C#, ASPX, SQL, novice to NHibernate
|
| Sign In·View Thread·PermaLink | 1.50/5 |
|
|
|
 |