Click here to Skip to main content
15,883,901 members
Home / Discussions / C#
   

C#

 
GeneralRe: DirectX Window Pin
Dave Kreskowiak27-Feb-04 4:02
mveDave Kreskowiak27-Feb-04 4:02 
GeneralRe: DirectX Window Pin
SherKar27-Feb-04 5:03
SherKar27-Feb-04 5:03 
GeneralRe: DirectX Window Pin
Dave Kreskowiak27-Feb-04 7:48
mveDave Kreskowiak27-Feb-04 7:48 
QuestionHow to count the running applications? Pin
yyf26-Feb-04 5:55
yyf26-Feb-04 5:55 
AnswerRe: How to count the running applications? Pin
SherKar26-Feb-04 6:19
SherKar26-Feb-04 6:19 
AnswerRe: How to count the running applications? Pin
Nick Parker26-Feb-04 6:56
protectorNick Parker26-Feb-04 6:56 
AnswerRe: How to count the running applications? Pin
turbochimp26-Feb-04 6:57
turbochimp26-Feb-04 6:57 
GeneralRe: How to count the running applications? Pin
yyf26-Feb-04 8:35
yyf26-Feb-04 8:35 
Thank all of you. This is very helpful!

Here is what I did using Win32API(I import the user32.dll and put it into my Win32API class), but it doesn't work as I except.

public int CheckWord<br />
{<br />
  int num;<br />
  string lpText = new string((char) 0, 100);<br />
  IntPtr hWnd = Win32API.GetWindow(Win32API.GetDesktopWindow(), Win32API.GW_CHILD);<br />
<br />
  int UStnNumber = 0;<br />
  while ( !hWnd.Equals(IntPtr.Zero) ) <br />
  {<br />
    num = Win32API.RealGetWindowClass(hWnd, lpText, lpText.Length);<br />
    if ( num > 0 ) <br />
    {<br />
      if ( lpText.Equals("OpusApp") ) <br />
      {<br />
         UStnNumber ++;<br />
      }<br />
    }<br />
    hWnd = Win32API.GetWindow( hWnd, Win32API.GW_HWNDNEXT );<br />
  }<br />
  return UStnNumber;<br />
}

Do you know why?
GeneralRe: How to count the running applications? Pin
Nick Parker26-Feb-04 8:45
protectorNick Parker26-Feb-04 8:45 
GeneralRe: How to count the running applications? Pin
yyf26-Feb-04 9:53
yyf26-Feb-04 9:53 
GeneralTreeView ToolTip Pin
Guinness4Strength26-Feb-04 4:40
Guinness4Strength26-Feb-04 4:40 
GeneralRe: TreeView ToolTip Pin
Heath Stewart26-Feb-04 5:26
protectorHeath Stewart26-Feb-04 5:26 
GeneralCheckboxes in TreeView Pin
torrud26-Feb-04 3:47
torrud26-Feb-04 3:47 
GeneralRe: Checkboxes in TreeView Pin
Heath Stewart26-Feb-04 4:50
protectorHeath Stewart26-Feb-04 4:50 
GeneralRe: Checkboxes in TreeView Pin
Heath Stewart26-Feb-04 4:56
protectorHeath Stewart26-Feb-04 4:56 
GeneralTreeView and ContextMenu Pin
torrud26-Feb-04 3:43
torrud26-Feb-04 3:43 
GeneralRe: TreeView and ContextMenu Pin
Heath Stewart26-Feb-04 4:48
protectorHeath Stewart26-Feb-04 4:48 
GeneralMSSQL Linked Server Pin
y_seval26-Feb-04 2:48
y_seval26-Feb-04 2:48 
GeneralRe: MSSQL Linked Server Pin
Heath Stewart26-Feb-04 3:00
protectorHeath Stewart26-Feb-04 3:00 
GeneralAutoComplete ComboBox Pin
gr8tushar26-Feb-04 0:36
gr8tushar26-Feb-04 0:36 
GeneralRe: AutoComplete ComboBox Pin
ian mariano26-Feb-04 1:06
ian mariano26-Feb-04 1:06 
GeneralRe: AutoComplete ComboBox Pin
Heath Stewart26-Feb-04 3:20
protectorHeath Stewart26-Feb-04 3:20 
QuestionHow to change Datagrid column width??? Pin
Reinier van de Wetering25-Feb-04 23:07
Reinier van de Wetering25-Feb-04 23:07 
AnswerRe: How to change Datagrid column width??? Pin
Heath Stewart26-Feb-04 3:05
protectorHeath Stewart26-Feb-04 3:05 
GeneralDataRaw class Pin
y_seval25-Feb-04 22:16
y_seval25-Feb-04 22:16 

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.