473,626 Members | 3,285 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is there a way I can get the handle of the active MDI child

I know about GetForegroundWi ndow but if I click a MDI child window and do
GetForegroundWi ndow I get the handle of the MDI Parent not the child.

Is there a way I can get the handle of the active child (MDI/Child are not
in my application)?

Thanks
PS
I read about GetActiveWindow but do not understand the difference from
GetForegroundWi ndow
Nov 17 '05 #1
0 1020

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
9446
by: Svennglenn | last post by:
How do i make a child window "active" like the root window? from Tkinter import * def open_child(): c = Toplevel(root) c.title("Child window") c.geometry('200x160+230+130') Label(c, text="Child window").grid()
0
1642
by: Morten Wennevik | last post by:
Given using a Parent and Child setup in MDI and overriding OnMdiChildActivate in the Parent, how come it seems to active the child I want active only every 2nd time? class Parent { private Child priorityChild = null; ....
0
1182
by: objectref | last post by:
Hi to all, is there a way to get the Active Child Window of another process ? I mean, let's say that we have an app that is running and it displays a form that asks for data input. I want to use PostMessage to enter some data there but i need to know the active child window to do this. I have the MainWindowHandle of that process and i can use the EnumChildWindows with it to get the child windows but what exactly is the
11
5073
by: objectref | last post by:
Hi to all, is there a way to get the window handle of the main window of an application or process ? For example, if someone opens Microsoft Word, he gets a window so he/she can write text. Spy++ gives that this window is called _Wwg. How we can get a handle to this window assuming that we do not know beforehand the name of the process,
0
1292
by: Frank_00001 | last post by:
I'm trying to use Active Directory to get a list of users that are in the same directory as the logon user. I'm trying to do this as a Web App written in C# using Windows Security and Impersonation. When running from the local host I have no problem; but when I try the same thing remotely I get the error "System.Runtime.InteropServices.COMException" on the second hit on Active Directory, the first hit works fine. I used to get the same...
1
1269
by: Ray Martin | last post by:
I have two tables in the dataset: -Invoice header which contains invoice total (Parent table) -Invoice line which contains line item details (Child table) I am using a data adapter to update the actual database There are appropriate table relations Here is the problem: If I delete a row from the Invoice_line I want to recalculate the invoice total. I use a loop to recalculate the total line item cost using the code below:, but I get...
0
1692
by: jpr | last post by:
Hello, I have a problem with my database and need some help. My database has a main menu named MENU which allows to access all the different forms of the program I am trying to develop. One of these forms is named MASTER and has its source to the main table of my db also named MASTER. To open the form and add a new recorset I simple press a button to which I have associate the following simple code: DoCmd.OpenForm ("Master")...
0
1214
by: VMahaadevan | last post by:
Hi, I have MDI form in that I have 4 panels left panel has treeview control top panel has heading, version, label, Bottom panel has status bar for MDI and right side panel is work area where I have child form. When I load my child form from the treeview I am not able to set the focus for the child window. I give example is when I open two child window one will be active (that is title bar will be blue color) other one will be shaded...
1
2995
by: ferguslogic | last post by:
Hello everyone, I have a C# winforms application which is designed as a mdi application. I am having a focus problem with it that I cannot seem to solve. If I open a mdi child and it is the only child form that is open in the mdi parent then the focus sets to this mdi child without issue and the cursor appears in the text field with the tab index of 0 exactly as it should. However, if I open up a mdi child form and another mdi child...
0
8262
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8364
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7192
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6122
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5571
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2623
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.