J Trahair
Well-known member
Hi. I have a series of exes, opened by a 'central' exe. After normal use, the child exes have become separated from the central exe, eg. by the user running a browser or any other program between using Central and Child, so when the child exe closes the topmost window is the browser.
I want to bring to front the 'Central'.exe when I close the child exe.
What WM_constant should I use? I'm looking for a WM_BRINGTOFRONT. But there isn't such a constant. What should I use?
	
	
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Thank you.
	
		
			
		
		
	
				
			I want to bring to front the 'Central'.exe when I close the child exe.
What WM_constant should I use? I'm looking for a WM_BRINGTOFRONT. But there isn't such a constant. What should I use?
			
				VB.NET:
			
		
		
		      Dim target_hwnd As Integer = FindWindow(vbNullString, "Central")
                If (target_hwnd = 0) Then
                    'MessageBox.Show("Error finding target window handle")
                    'Exit Sub
                End If
                PostMessage(target_hwnd, WM_?????, 0, 0)Thank you.
 
	 
 
		 
 
		 
 
		