Add internet explorer-window to tabgroup - c#

I'm opening some ie-windows from my c#-client
Is it possible to assign it to an exisiting tabgroup or at least open it as a tab in the already opened ie-window.
Maybe this would work with javascript in the onload of the window?
It has no parent, so is there a possibility to set this value before the window opens?
I use the IE-tab-settings to open new windows always in a tab, but this doesn't work for windows from my client...

Related

Detect Shift+Click on taskbar to open new window

If Notepad is open (or many other programs, don't need to be pinned) and user shift+clicks its taskbar item, it will open a new window. This behavior doesn't seem to be handled but the Windows Shell so it won't open another instance by default.
I have tried creating a hook MainWindowProc to get all window messages but that is not one of them and I don't know how to detect that event. Is there a way to get it from .NET?

List of Opened MDI Child in Toolbar

Is there a way to manage my opened MDI Child windows in a toolbar, my project manage lot of windows and the user dont know if some window is open and then open a new one (i also need that the user can open more that one window with works fine) i just one something like a toolbar or something where user can see all open mdi child and when click, focus that window.

Most efficient way to get the handle of an Open window given its parent?

I'm working on a program to simultaneously control a handful of other programs of the same type.
So far I use EnumWindows() and collect the handles of the appropriate windows(programs) that I'm going to be controlling. Upon recognizing some keyboard keystroke, I iterate through all of the programs(there could be any number of them open) and I post click messages to all of these programs simultaneously by using EnumChildWindows() to find the appropriate windows(buttons) based on which keystroke was pressed and then using PostMessage() to actually send the click.
Each of these programs that I'm controlling has a button named "Load Settings" which opens an Open file dialog when clicked. What I would like to do is first use PostMessage() to click "Load Settings"(I have successfully gotten this far, what follows is what I'm trying to do). Then I want to get the handle of that Open file dialog window, fill in the text field with the path to the appropriate settings file that I've already determined, then click the "Open" button to finish the task and close the Open window.
My main problem is finding that Open window. Now, I can use EnumWindows once again to find that window but the problem with this is upon clicking "Load Settings" the Open window doesn't open instantaneously. I could sleep after clicking the button, then enum through the windows to find it, but that's not practical as the window could take any amount of time to open.
I've used spy++ to gather some information about this window, but as far as I know, none of it helps enough. Anyways, here is what I have found:
The window "Open" is the Previous Window to the program which it was opened from.
The window "Open"'s parent is the program which it was opened from.
The window "Open"'s owner is the program which it was opened from.
But even though it's listed as a child of the main program under its window properties, it's listed on the same level as the main program (it's not nested like other child windows).
I've tried FindWindowEx() and EnumChildWindows() but neither could find the Open window.
I would think there should be some way to, based on some handle, get the handle of the previous window.
Once that's working, then I need to fill the Edit(text field) window with the appropriate file path.
UIA is what you want, if your goal is to automate UI actions (e.g. for testing). UIA exposes the entire UIA tree which contains all applications active on the machine.
So what you'll see is a root node which has one child node for each application. Each of those nodes should represent the top level window of that application. Any further children depend on the application itself.
See more info at UIA Overview

Prevent SettingsFlyout from reopening settings menu on dismiss

In Windows 8.1 using SettingsFlyout from the SDK, is there a way to prevent the settings menu reappearing on dismiss?
To give a use case, the pane in question is a user sign out pane, accessible via. the charms menu however I also want to open it when the user taps their thumbnail - but it then makes no sense to reopen the charms menu!
In your call to show the pane, use ShowIndependent() instead of Show(). The Show() method should be used when launched from the Settings charm itself to keep the flow.

how to open a dialog over topmost form window in C#

i have a C# program that i made that uses forms to display the control for the user.
the main form open other forms on top of it, each new form is set to topmost
in the program i call for PDFCreator in order to make a new PDF file, but i can't see the dialog becouse of the form that is set to "topmost"
is there a solution to this out the
Yes, there is.
Don't set the topmost flag on your forms.
There is no way to say "Stay on top of all forms, except ...".
Stay on top really means stay on top, if you don't want that, don't use it.
You may want to use .ShowDialog() instead of .Show() without TopMost. This will basically mean that new Forms created by your app will have to be closed if you would like to get to the bottom form (I guess that's why you use TopMost - to prevent doing stuff on forms that were opened before?)

Categories

Resources