Click here to Skip to main content
15,881,715 members
Home / Discussions / C#
   

C#

 
AnswerRe: Finding path of an application Pin
stancrm2-Aug-06 21:30
stancrm2-Aug-06 21:30 
QuestionPre-Requisites for my C# application Pin
wasife2-Aug-06 21:07
wasife2-Aug-06 21:07 
AnswerRe: Pre-Requisites for my C# application Pin
leppie2-Aug-06 21:16
leppie2-Aug-06 21:16 
Question(Very Urgent) WMP ActiveX Video Height And Width Pin
Souhail Jabbour2-Aug-06 20:54
Souhail Jabbour2-Aug-06 20:54 
QuestionFont size in MessageBox Pin
stancrm2-Aug-06 20:16
stancrm2-Aug-06 20:16 
AnswerRe: Font size in MessageBox Pin
Divyang Mithaiwala2-Aug-06 22:49
Divyang Mithaiwala2-Aug-06 22:49 
QuestionError Rolling Back Setup (Installer Class(deployment)) Pin
abhinish2-Aug-06 19:31
abhinish2-Aug-06 19:31 
QuestionActive Window [modified] Pin
Imtiaz Murtaza2-Aug-06 18:39
Imtiaz Murtaza2-Aug-06 18:39 
Dear friends,
I've a simple winform application with one form. My application loads MS-Word, and makes MS-Word window as a child window of my form.

When i type something in MS-Word window, its parent window (i.e my main form) becomes inactive and its title bar turns grey. It is so, because though MS Word window is a child window of my form, but it runs in a separate process.

Now the problem is that i want to make my main form window Active at a certain time. It only becomes active when i click on it. However, i want to do it programatically. I am calling Form.Activate() for this purpose, but it only causes my taskbar button to be flashed for few seconds. I want to completely activate my main window and having input focus. How can i do so? I also tried Form.BringToFront() and Win32 API SetWindowPos but nothing worked for me.

MSDN says about Form.Activate() as follows:

Activating a form brings it to the front if this is the active application, or it flashes the window caption if this is not the active application.

Obviously, my application is not an active application when focus is inside the MS-Word Window.




Imtiaz

QuestionRe: Active Window Pin
mkamioner2-Aug-06 19:07
mkamioner2-Aug-06 19:07 
Questionretrieving a Bitmap from an HTMLImgClass Pin
Dave_Roach2-Aug-06 15:09
Dave_Roach2-Aug-06 15:09 
AnswerRe: retrieving a Bitmap from an HTMLImgClass Pin
Christian Graus2-Aug-06 15:18
protectorChristian Graus2-Aug-06 15:18 
GeneralRe: retrieving a Bitmap from an HTMLImgClass Pin
Dave_Roach2-Aug-06 15:41
Dave_Roach2-Aug-06 15:41 
GeneralRe: retrieving a Bitmap from an HTMLImgClass Pin
llpnet27-Jan-09 11:24
llpnet27-Jan-09 11:24 
GeneralRe: retrieving a Bitmap from an HTMLImgClass Pin
Gjuro Kladaric28-Oct-11 1:40
Gjuro Kladaric28-Oct-11 1:40 
GeneralRe: retrieving a Bitmap from an HTMLImgClass Pin
brain_freeze126-May-12 17:36
brain_freeze126-May-12 17:36 
Questionhow to convert sqlserver2000 db to access 2003 ? Pin
hdv2122-Aug-06 13:10
hdv2122-Aug-06 13:10 
AnswerRe: how to convert sqlserver2000 db to access 2003 ? Pin
Guffa2-Aug-06 13:27
Guffa2-Aug-06 13:27 
Questionclick a button on a website using webbrowser in c# 2005 Pin
Green Fuze2-Aug-06 12:02
Green Fuze2-Aug-06 12:02 
QuestionMake Polygon Follow a Line Pin
Sautin.net2-Aug-06 11:21
Sautin.net2-Aug-06 11:21 
AnswerRe: Make Polygon Follow a Line Pin
Judah Gabriel Himango2-Aug-06 11:43
sponsorJudah Gabriel Himango2-Aug-06 11:43 
GeneralRe: Make Polygon Follow a Line [modified] Pin
Sautin.net2-Aug-06 12:26
Sautin.net2-Aug-06 12:26 
GeneralRe: Make Polygon Follow a Line Pin
lmoelleb2-Aug-06 22:52
lmoelleb2-Aug-06 22:52 
AnswerRe: Make Polygon Follow a Line Pin
Christian Graus2-Aug-06 14:05
protectorChristian Graus2-Aug-06 14:05 
AnswerRe: Make Polygon Follow a Line Pin
Sautin.net3-Aug-06 5:26
Sautin.net3-Aug-06 5:26 
QuestionDataGridView removing rows takes forever Pin
shultas2-Aug-06 10:18
shultas2-Aug-06 10:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.