problem about mdi-Collection of common programming errors


  • Nikita Rybak
    c# winforms menu mdi
    I have a MDI container form, and some child forms that update their title bar texts themselves, independently. After the Text property is changed on the child form, the new title bar text from the child is not updated in the window list menu when the menu is opened. This is the auto-generated window list provided by .NET via the MdiWindowListItem property.The change only propagates when another event changes the window list physically (opening a new child, closing a child, switching to another c

  • Huaskar
    mdi mdichild
    I have a MDI Parent with several MDI Childs in it, and those MDI Childs are opened on runtime.I would like to know if there’s a way to go back to the previous MDI Child with only one key. Something similar to: Ctrl + Tab or Ctrl + Shift + TabBut I would like to press F7 and go to the previous MDI Child instead of pressing Ctrl + Shift + TabThanks very much for your time and help.

  • arced
    vb.net winforms forms mdi
    ok here is the scenario. 1. i’ve create a project that has 1 form named form1.exe 2. i’ve also create a project that has 1 MDI form. in this MDI Form. i’would like to call “form1.exe” act like / behave like MDI Form child. i’ve tried using this code : Public Shared Function SetParent(ByVal hWndChild As IntPtr, ByVal hWndParent As IntPtr) As IntPtr End FunctionPrivate Sub ShowNewForm(ByVal sender As Object, ByVal e As EventArgs) Handles NewToolStripMenuItem.Click, NewToolStripButton.Click, NewWin

  • user1312891
    c# .net winforms mdi
    I have a main (MDI) form and around 70 child forms which are intialized and shown in runtime. At a time maybe more than 1 child form can be shown. In each of the child forms there are button named “OK” and its event “btnOk_click(object sender, EventArgs e). There is a button in the Parent form named “Save”, if we click on it, in the runtime the activeMDI child forms event (btnOk_click) should get fired.Please help me on this issue.at present I do this issue, by using following codeswitch (Act

  • Mike Hofer
    c# .net user-interface mdi
    This sounds like it would be a simple task, but I’m running into some issues.I have some fairly straightforward code for my C# application:private void SwitchToSdi(){MainWindow mainWindow = GetMainWindow();for (int index = mainWindow.MdiChildren.Length – 1; index >= 0; index–){Form form = mainWindow.MdiChildren[index];if (!(form is MainWindow)){ form.Visible = false;form.MdiParent = null;form.Visible = true;mainWindow.MdiChildren[index] = null;}}mainWindow.IsMdiContainer =

  • Salvador
    delphi mdi sdi
    I currently have an SDI application that is build with Delphi 7, I want the final user to choose the type of interface between SDI and MDI at runtime. my question is how can I change the behavior of the application between SDI and MDI at runtime?Currently I know a couple of applications build with delphi that allow this: EMS SQL Manager and TOAD.thanks in advance.

  • Nev
    vb6 runtime scrollbar mdi
    I need to enable the MDI parent scroll bar only in some MDI child forms and disable it for other forms. I have resize code for resolution changes but for DPI changes the forms width goes beyond screen size. So I need to enable it for these forms and disable it for other forms.For Resolution ResizeX = Screen.Width / (1024 * Screen.TwipsPerPixelX) ResizeY = Screen.Height / (768 * Screen.TwipsPerPixelY)For DPI XPIXELSPERINCH = GetDeviceCaps(hdc, 88) YPIXELSPERINCH = GetDeviceCaps(hdc, 90)Is there a

  • Terry
    menu menuitem mdi powerbuilder
    Can you change a MDI window’s menu at runtime? I tried Changemenu() function but I failed in registering the menu itself. When I debug, menu shows it’s null.menu m_menu m_menu = m_base_menu // where m_base_menu is the menu object this.changemenu(m_menu)m_menu is NULL on the line..I also tried instantiating it m_menu = create menustill to no avail. Any hints?

  • Cechner
    mfc interop mdi
    I have an MFC MDI frame (CMDIFrameWnd-derived) that I am hosting inside a WPF shell application. CMainFrame uses the WM_CHILD style (I’ve unset the WM_CAPTION and FWS_ADDTOTITLE flags) and is parented to the WPF HwndHost.Everything looks OK except that when I maximize a child frame I usually get an access violation somewhere around the child frame window’s CWnd::OnMDIActivate() method. I assume the problem has to do with the CMainFrame no longer having a menu or caption or something. My questi

  • Witness Protection ID 44583292
    windows debugging dll mdi
    The minimal DLL below, which uses only the Win32 API, tries to do nothing more than create an MDI frame/client window and one child window, and destroy the frame window when the DLL unloads. The DLL crashes on Windows XP with an exception upon executing an INT x2B instruction in USER32.For testing, the DLL is simply invoked by a one-line application calling LoadLibrary(‘badcode.dll’).The crash happens inside the final “DestroyWindow(framewindowhandle)” just before the DLL finishes, after FrameW

  • Codename_DJ
    mfc tree crash mdi
    I am new to MFC & I am maintaining a MFC Application, Which has a CView Window GUI for displaying and manipulating values of a Tree using CTreeCtrl. All my functionality are working fine but sometimes I am getting a crash. But still I can not identify any pattern for reason of the crash. Sometimes after some common action like changing values (which I have already performed like 100 times & just worked fine) ,the application hangs or crashes; sometimes for maximizing after 10-15 minutes

  • Riju
    vb.net for-loop mdi openform
    I have a logout menu option in my MDI application. On log out I want to close all open forms. currently i am using following code snippet to achieve this;For Each f As Form In My.Application.OpenFormsIf f.Name = Me.Name ThenFor Each child As Form In f.MdiChildrenchild.Close()NextElsef.Close()End If NextIt is working perfect in my test environment, even though I expected For Each loop will throw “Collection was modified; enumeration operation may not execute” exception. since on each child form C

  • David M
    delphi for-loop mdi
    I’m having a bit of trouble figuring out what’s going wrong with this function. I’m not sure if I should be using -1 or not anymore, and no matter how I try to arrange the code it seems to return nil even when it shouldn’t. Could someone with fresh eyes take a look? Also, I’m not sure my result := nil is in the proper place.function TFrmMain.FindQueryFrm(Server, Nickname: String): TFrmMessage; varI,M: Integer; begin/// No -1 in the I loop – why? Because the first childform will not always be///

Web site is in building