mdi

Is it possible to inject a Windows Form application into another application as an MDI Child in VB.NET?

北城余情 提交于 2019-12-11 21:00:04
问题 I am creating a program that interacts with another program and I would like to "inject" my program into this program as an MDI Child window. Is this even possible, and if so can it be done in VB.NET? What kind of pitfalls are associated with doing this? 回答1: It could be done, in two ways, the first way, by obtaining a copy of Detours, and use pinvoke to inject your process into that parent process with MDI controller, the second way, although more dangerous, is to hook into the MDI

Trouble bringing an MDI form to the front

*爱你&永不变心* 提交于 2019-12-11 13:51:44
问题 Imagine I have two MDI forms inside of a parent form. Each form has many many controls inside, some are even custom Infragistics controls such as an UltraPanel. Currently when both forms are open and in normal sized mode (not maximize or minimized), I can only bring one form to the front of the other by clicking on the forms title bar. If I click inside the form itself, it's not brought to the front. Is there some way for me to capture the click anywhere inside the MDI form and bring that one

MdiLayout.TileVertical doesn't work correctly

邮差的信 提交于 2019-12-11 07:36:31
问题 I had used MDI form in C# for displaying multi-windows. When I used MdiLayout.TileVertical to change the layout of my child windows, I couldn't get the correct result. Child windows had not be displayed vertically. I wanted result: 1 2 3 4 What I had get : 3 1 4 2 My code source: [STAThread] static void Main() { Application.Run(new Form1()); } private void menuItemNew_Click(object sender, System.EventArgs e) { oFileDlg.CheckFileExists=true; oFileDlg.CheckPathExists=true; oFileDlg.Title="Open

Problem with controls in MDI form

五迷三道 提交于 2019-12-11 05:48:01
问题 I have placed a button on MDI form , now when I open a child form , the button remains on top and distracts the child form , is there a way to solve it? I have done following to send the button back when any child is activated.But I am wondering to call button1.BringToFront(); private void MDIParent1_MdiChildActivate(object sender, EventArgs e) { button1.SendToBack(); } I tried following but it doesnt work. private void MDIParent1_Enter(object sender, EventArgs e) { button1.BringToFront(); }

Which's better: MDI children, or modeless dialogs?

筅森魡賤 提交于 2019-12-11 05:45:50
问题 What's the pros and cons for each of them? 回答1: It depends. Use MDI (or tabbed MDI) if the user will generally focus on one document at once, and will want to see as much as possible. Use owned non-modal forms (such as toolwindows) if the user will want to interact with many smaller forms at once. You can also use both, a la Visual Studio. 回答2: It depends on many factor, the most important is how do you want your user to interact with your application (or how does he/she choose to do it). For

using winforms , mdi , parent and child form, opening child forms in specified space under the parent form

泄露秘密 提交于 2019-12-11 05:33:57
问题 I have a winform MAINFORM , and need to open child forms in this form as shown in the image. The black portion is a panel & would contain a no. of LinkLabels and Treeview with multiple nodes. In the rest of the portion i want to display the child forms when the linklabels on the panel would be clicked. The child forms should exactly fit into the remaining space i.e. space excluding the space covered by the panel. Please help me out with the code, how to fit the new form in the left space.

Frame on main form with FormStyle = fsMDIForm

…衆ロ難τιáo~ 提交于 2019-12-11 04:42:40
问题 Is there a way to show MDI child forms ( FormStyle = fsMDIChild ) on the main form that has a frame with Align = alClient ? Creating a frame on the main form: Frame := TfrCalendar.Create(Self); Frame.Parent := Self; Creating MDI child form on the main form: if Assigned(FMDIRef) then FMDIRef.BringToFront else begin FMDIRef := TFReference.Create(Application); FMDIRef.Show; end; After this, the child form is not visible. If you do not create a frame, the form is visible. If you first show the

Cannot catch Ctrl+Alt+F1 in WinForms MDI. Is it special?

流过昼夜 提交于 2019-12-10 21:48:59
问题 My WinForms MDI application has several keyboard shortcuts set at ToolStripMeniItem items. Among the following ones: Ctrl + Alt + F1 Ctrl + Alt + F2 Ctrl + Alt + F3 the first one is never triggering its menu item. Others work as expected. Is it somewhere blocked/used? Is there some list of such blocked keyboard shortcuts? Is there a way how to use it? (Preferably just via designer without adding special code?) 回答1: If I press Ctrl+Alt+F1 on my machine then it activates the "Intel HD Graphics

How do you make your MDI MFC app show one instance in the TaskBar?

 ̄綄美尐妖づ 提交于 2019-12-10 19:04:42
问题 I have an MDI app and when I click new document, it opens up a separate tab. This creates another instance of the icon in the taskbar within Windows. Is there any way I can change this behavior so that only one icon instance is shown the taskbar? I know one way is to use SDI and use tabs for my views, but I want to keep it an MDI. Is this even possible. I'm trying to mimic the view of this particular application called 'Dameware NT Utilities': http://www.dameware.com/v3-dameware/media

Qt MDI app with OpenGL: how to grab a valid screenshot?

£可爱£侵袭症+ 提交于 2019-12-10 13:51:07
问题 I have an MDI app written in Qt. Some of the subwindows include QGLWidget s, i.e., OpenGL contexts. The most salient of these use OpenGL vertex and fragment shaders to visualize their data. I need to programmatically capture a screenshot of the application's main window, including of course all the subwindows that happen to be visible. Sounds easy at first ("definitely been asked many times, so let's just google it!"), but after a closer look it seems to be getting a bit tricky... Now here's