Click here to Skip to main content
15,879,348 members
Home / Discussions / C#
   

C#

 
AnswerRe: ngen in windows applications c# Pin
Dave Kreskowiak9-Aug-14 4:25
mveDave Kreskowiak9-Aug-14 4:25 
GeneralRe: ngen in windows applications c# Pin
Zeyad Jalil9-Aug-14 19:27
professionalZeyad Jalil9-Aug-14 19:27 
GeneralRe: ngen in windows applications c# Pin
Dave Kreskowiak10-Aug-14 4:45
mveDave Kreskowiak10-Aug-14 4:45 
AnswerRe: ngen in windows applications c# Pin
V.10-Aug-14 7:20
professionalV.10-Aug-14 7:20 
QuestionMulti-label Classifiers based Associative Classification (MCAC) algorithm Pin
sadish67-Aug-14 17:03
sadish67-Aug-14 17:03 
AnswerRe: Multi-label Classifiers based Associative Classification (MCAC) algorithm Pin
Mycroft Holmes7-Aug-14 18:02
professionalMycroft Holmes7-Aug-14 18:02 
AnswerRe: Multi-label Classifiers based Associative Classification (MCAC) algorithm Pin
OriginalGriff7-Aug-14 21:30
mveOriginalGriff7-Aug-14 21:30 
QuestionDotNetBar (DevComponents) DockingContainer Pin
HobbyProggy7-Aug-14 1:53
professionalHobbyProggy7-Aug-14 1:53 
Greetings,

I currently worke on Programm working with the DevComponents.DotNetBar.DockingContainers, those Containers have a lot of functionality. My Problem is now, since i'm working with them as dynamic objects, e.g. a new usercontrol Needs to be shown -> Check if a DockingContainer is empty -> if not create one and put the uc in the new Container, i get several issues that i'm not able to solve.

1. The DockingContainers get deleted from time to time, e.g. uc is not needed anymore -> dispose it and delete the Container.
In this case my dockSite gets shrunk by the amount the Container was.

I have a "Workaround" for that but ist not satisfying as the other Containers are flashing while i resize.

Code for delete given:

XML
/// <summary>
/// Deletes the container.
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
/// <exception cref="System.NotImplementedException">Something went terribly wrong</exception>

C#
private void DeleteContainer(object sender, EventArgs e)
{
    DockContainerItem _tmp = (DockContainerItem)_currentClickedBar.Items[0];
    PanelDockContainer _tmpPanel = (PanelDockContainer)_tmp.Control;
    if (_tmpPanel.Controls.Count != 0)
    {
        ... // Codeblock that is unfinished and not relevant
    }
    else
    {
        //Wenn der Container leer ist kann er einfach gelöscht werden
        _dockingPanels.Remove(_dockingPanels.Find(dp => dp.Name == _tmpPanel.Name));
        _dockingContainers.Remove(_dockingContainers.Find(dc => dc.Name == _tmp.Name));
        _barContainer.Remove(_barContainer.Find(bc => bc.Name == _currentClickedBar.Name));
        //My workaround
        DockSite _ds = (DockSite)_currentClickedBar.DockedSite;
        int _width = _currentClickedBar.Size.Width;
        int _height = _currentClickedBar.Size.Height;
        //delete the Container
        dotNetBarManager1.Bars.Remove(_currentClickedBar);
        //resize the DockSite
        _ds.Size = new System.Drawing.Size(_ds.Size.Width + _width, _ds.Size.Height + _height);
        _currentClickedBar = null;
        //System.GC.Collect();
    }
}


*EDIT*
2. Another Problem i have is that if i undock a Container, dock it into another one everything gets pretty messed up as i can't undock it out of the Container again and the old one stays inoperable for some reason.
It wasn't inoperable, i just messed up the Text property of the DockingContainerItem, therefore i couldn't see it in the "Tabs"
/SOLVED/
*EDIT OFF*

Here the other code for my Containers:

Creation:

XML
/// <summary>
/// Creates the named docking container.
/// </summary>
/// <param name="NameContainer">The name container.</param>
/// <param name="NameBar">The name bar.</param>
/// <param name="NamePanel">The name panel.</param>

C#
public void CreateNamedDockingContainer(string NameContainer, string NameBar, string NamePanel)
{
    // Create the new Bar and set the specific Settings
    Bar newBar = new Bar("neuer Container");
    newBar.Name = NameBar;
    newBar.LayoutType = eLayoutType.DockContainer;
    newBar.GrabHandleStyle = eGrabHandleStyle.Caption;
    newBar.Stretch = true;
    newBar.CanCustomize = false;
    newBar.CanAutoHide = false;
    newBar.MouseClick += bar_Click;
    newBar.BarUndock += barContainer_BarUndock;
    _barContainer.Add(newBar);

    //Create the dockContainerItem
    DockContainerItem tempDock = new DockContainerItem();
    tempDock.Name = NameContainer;
    _dockingContainers.Add(tempDock);

    //Create the dockingPanel
    PanelDockContainer tempPanel = new PanelDockContainer();
    tempPanel.Name = NamePanel;
    _dockingPanels.Add(tempPanel);
    tempPanel.MouseClick += panelDockContainer_Click;

    //Create a new Control for the ContainerItem and reset it to the panel
    tempDock.Control = new Control();
    tempDock.Control = tempPanel;

    //add the dockContainer to the bar, the bar to the dotNetBarManager and set the dockposition
    newBar.Items.Add(tempDock);
    dotNetBarManager1.Bars.Add(newBar);
    dotNetBarManager1.LeftDockSite.GetDocumentUIManager().Dock(newBar);
}


Any help or experience with those DockingContainers would be appretiated Smile | :)
C# / VS2013
if(this.signature != "")
{
MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
}
else
{
MessageBox.Show("404-Signature not found");
}

AnswerRe: DotNetBar (DevComponents) DockingContainer Pin
Eddy Vluggen7-Aug-14 23:24
professionalEddy Vluggen7-Aug-14 23:24 
Questionassign the filed for XtraReport of Devexpress ? Pin
Member 24584677-Aug-14 0:01
Member 24584677-Aug-14 0:01 
Question.net Query Pin
Member 109952356-Aug-14 22:26
Member 109952356-Aug-14 22:26 
AnswerRe: .net Query Pin
Richard MacCutchan6-Aug-14 22:40
mveRichard MacCutchan6-Aug-14 22:40 
AnswerRe: .net Query Pin
Keith Barrow7-Aug-14 1:45
professionalKeith Barrow7-Aug-14 1:45 
AnswerRe: .net Query Pin
Gerry Schmitz7-Aug-14 11:00
mveGerry Schmitz7-Aug-14 11:00 
QuestionConnecting to License Application on Server Pin
Jassim Rahma6-Aug-14 20:25
Jassim Rahma6-Aug-14 20:25 
AnswerRe: Connecting to License Application on Server Pin
Bernhard Hiller6-Aug-14 20:39
Bernhard Hiller6-Aug-14 20:39 
QuestionSame EXE vs Different EXE Pin
KUMAR6196-Aug-14 19:36
professionalKUMAR6196-Aug-14 19:36 
AnswerRe: Same EXE vs Different EXE Pin
Akhil Mittal6-Aug-14 20:05
professionalAkhil Mittal6-Aug-14 20:05 
AnswerRe: Same EXE vs Different EXE Pin
Bernhard Hiller6-Aug-14 20:43
Bernhard Hiller6-Aug-14 20:43 
AnswerRe: Same EXE vs Different EXE Pin
Mycroft Holmes6-Aug-14 21:54
professionalMycroft Holmes6-Aug-14 21:54 
GeneralRe: Same EXE vs Different EXE Pin
KUMAR6196-Aug-14 23:06
professionalKUMAR6196-Aug-14 23:06 
GeneralRe: Same EXE vs Different EXE Pin
Mycroft Holmes6-Aug-14 23:10
professionalMycroft Holmes6-Aug-14 23:10 
GeneralRe: Same EXE vs Different EXE Pin
KUMAR6196-Aug-14 23:49
professionalKUMAR6196-Aug-14 23:49 
GeneralRe: Same EXE vs Different EXE PinPopular
Mycroft Holmes7-Aug-14 0:57
professionalMycroft Holmes7-Aug-14 0:57 
GeneralRe: Same EXE vs Different EXE PinPopular
GuyThiebaut7-Aug-14 2:44
professionalGuyThiebaut7-Aug-14 2:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.