mdi

Why would overwriting .GetHashCode clear these databound values in WinForms?

拈花ヽ惹草 提交于 2019-12-10 12:31:11
问题 We have run into a strange bug that we're having problems debugging. We have a MDI workspace that uses Microsoft CAB, DevExpress components, and .Net 3.5. If users open two windows in the workspace that each contain a UserControl bound to two separate data models, then minimize both of them, the first window to minimize is getting it's bound fields cleared when the second one minimizes. The .Equals and .GetHashCode methods of the data model have been overridden so that both data models are

C# WPF Child Windows inside Main Window

浪尽此生 提交于 2019-12-10 11:49:59
问题 So iv looked around for a bit and found out that MDI is obselete for WPF, Basically what i am trying to do is show a specific page in a grid object on load, and once a menu item from my drop down menu is selected, the content of the grid will be changed to the content from a different page (this is depending on which menu item is selected). To go into more detail (perhaps this will help) The area where the window will be shown will need to have the window with no borders, or titles, or

adding frames to mainFrame

孤人 提交于 2019-12-10 00:32:43
问题 i want to add some frame to my main frame, lets say we've 3 frames (Frame1, Frame2, and Frame3) i want to: Create new Frame called Frame 4 and add menu bar with items (View Frame1, View Frame2, View Frame3) --> actually i've created this frame successfully. When click on View Frame1 i want to display Frame1 in a certain place in Frame4 and so on for all menuItems My problem is i've created my old frames by using Drag-and-drop tech. in net beans There is a component called internalFrame but

Allow multiple MDI Parent Forms on same Application

房东的猫 提交于 2019-12-10 00:32:17
问题 I'm trying follow what was suggested in this answer, changing this part of Vcl.Forms.pas : procedure TCustomForm.CreateWindowHandle(const Params: TCreateParams); var CreateStruct: TMDICreateStruct; NewParams: TCreateParams; begin if (FormStyle = fsMDIChild) and not (csDesigning in ComponentState) then begin {if (Application.MainForm = nil) or (Application.MainForm.ClientHandle = 0) then raise EInvalidOperation.Create(SNoMDIForm);} with CreateStruct do begin szClass := Params.WinClassName;

How to set MDIParent property of Child form in nonMDI Class?

爱⌒轻易说出口 提交于 2019-12-08 06:24:40
问题 I am working on MDI app which have Child Forms. I have to show Child Window once a certain conditions is met. I created a separate Class named clsDashbord having method loadDashboard() which is supposed to load frmDashboard already designed. Code is given below: public void loadDashboard(String userName) { _Dashboard = new frmDashboard(); _Main = new frmMDI(); // _Dashboard.MdiParent = _Main; _Dashboard.Text = userName; _Dashboard.Show(); } Form does not show up if I set MDIParent to Main

MDI object oriented approach, retrieving this pointer from MDICREATESTRUCT

≡放荡痞女 提交于 2019-12-08 03:32:51
问题 I'm trying to implement MDI Child window base class, acording to this reference details on remarks say When the MDI client window creates an MDI child window by calling CreateWindow, the system sends a WM_CREATE message to the created window. The lParam member of the WM_CREATE message contains a pointer to a CREATESTRUCT structure. The lpCreateParams member of this structure contains a pointer to the MDICREATESTRUCT structure passed with the WM_MDICREATE message that created the MDI child

MDI Pros & Cons

a 夏天 提交于 2019-12-07 15:50:16
问题 I have inherited a application framework from the previous developer where I now work. This framework utilizes multiple parent/child relationships. In many instances parent/parent/child occur. I asked why he WASN'T using MDI and he stated that years ago, when he had started, MDI had major shortcomings concerning the previously stated relationship scenarios. Particularly with the multiple Parents. My actual questions are; Does MDI still have these shortcomings? & Those of you who have worked

MessageBox loses focus in maximized MDI form

风流意气都作罢 提交于 2019-12-07 14:49:53
问题 I have an MDI application (written in .NET 2.0) which lets users open multiple child forms. The child forms are always maximized inside the MDI parent. When the MDI parent is maximized and I attempt to do a MessageBox.Show, the MessageBox doesn't show. If I do an alt-tab (or even just press alt) the MessageBox pops to the front. Any ideas how to make that sucker show up to begin with? This is only a problem when the MDI parent is maximized... 回答1: Try using MessageBox.Show(Window owner,

C#.NET MDI bugs when programmatically hiding and showing again a maximized child form and when maximized, child form's icon cannot be changed

元气小坏坏 提交于 2019-12-07 00:53:48
问题 Basically I am having two problems with C#.NET MDI. You can download VS2010 solution which reproduces bugs here. 1) When programmatically hiding and showing again a maximized child form, it is not maximized properly again and becomes neither maximized or in normal state. childForm = new Form(); childForm.Text = "Child Form"; childForm.MdiParent = this; ... private void showButton_Click(object sender, EventArgs e) { childForm.Visible = true; } ... private void hideButton_Click(object sender,

How to get default Ctrl+Tab functionality in WinForms MDI app when hosting WPF UserControls

谁说我不能喝 提交于 2019-12-06 15:16:45
I have a WinForms based app with traditional MDI implementation within it except that I'm hosting WPF based UserControls via the ElementHost control as the main content for each of my MDI children. This is the solution recommended by Microsoft for achieving MDI with WPF although there are various side effects unfortunately. One of which is that my Ctrl+Tab functionality for tab switching between each MDI child is gone because the tab key seems to be swallowed up by the WPF controls. Is there a simple solution to this that will let the Ctrl+tab key sequences reach my WinForms MDI parent so that