Click here to Skip to main content
15,916,371 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: setup project Pin
Heath Stewart14-Jun-04 9:22
protectorHeath Stewart14-Jun-04 9:22 
GeneralQuestion about .NET's Setup Project Pin
Rafferty Uy13-Jun-04 15:12
Rafferty Uy13-Jun-04 15:12 
GeneralRe: Question about .NET's Setup Project Pin
Heath Stewart13-Jun-04 19:15
protectorHeath Stewart13-Jun-04 19:15 
GeneralRe: Question about .NET's Setup Project Pin
Rafferty Uy16-Jun-04 13:41
Rafferty Uy16-Jun-04 13:41 
GeneralRe: Question about .NET's Setup Project Pin
Heath Stewart16-Jun-04 13:44
protectorHeath Stewart16-Jun-04 13:44 
GeneralRemoting and security exceptions Pin
Tom Archer13-Jun-04 13:21
Tom Archer13-Jun-04 13:21 
GeneralRe: Remoting and security exceptions Pin
Heath Stewart13-Jun-04 19:19
protectorHeath Stewart13-Jun-04 19:19 
GeneralError looping through Collection Pin
rfox511-Jun-04 8:47
rfox511-Jun-04 8:47 
Generalincremental installation of C# application Pin
ting66810-Jun-04 15:52
ting66810-Jun-04 15:52 
GeneralRe: incremental installation of C# application Pin
O Ismail13-Jun-04 14:52
O Ismail13-Jun-04 14:52 
GeneralRe: incremental installation of C# application Pin
ting66814-Jun-04 15:52
ting66814-Jun-04 15:52 
QuestionStoring Trace/Debug Entries in Memory? Pin
llyal200010-Jun-04 13:48
llyal200010-Jun-04 13:48 
AnswerRe: Storing Trace/Debug Entries in Memory? Pin
Heath Stewart13-Jun-04 19:26
protectorHeath Stewart13-Jun-04 19:26 
GeneralRe: Storing Trace/Debug Entries in Memory? Pin
llyal200013-Jun-04 22:16
llyal200013-Jun-04 22:16 
Generalnewbie trying to register TLB, COM DLL and .NET DLL for Interop Pin
sabushadi10-Jun-04 7:25
sabushadi10-Jun-04 7:25 
GeneralRe: newbie trying to register TLB, COM DLL and .NET DLL for Interop Pin
Heath Stewart13-Jun-04 19:31
protectorHeath Stewart13-Jun-04 19:31 
GeneralRe: newbie trying to register TLB, COM DLL and .NET DLL for Interop Pin
sherif13-Jun-04 19:53
sherif13-Jun-04 19:53 
GeneralRe: newbie trying to register TLB, COM DLL and .NET DLL for Interop Pin
Heath Stewart13-Jun-04 19:58
protectorHeath Stewart13-Jun-04 19:58 
QuestionHow to Set the Window Class Name of a Windows Form App? Pin
Matt Gerrans10-Jun-04 7:06
Matt Gerrans10-Jun-04 7:06 
AnswerRe: How to Set the Window Class Name of a Windows Form App? Pin
Heath Stewart13-Jun-04 19:50
protectorHeath Stewart13-Jun-04 19:50 
The "semi-random" one is not actually random - if you specify a registered window class. The window class is actually used in well-defined pattern. If the control does not have a window class associated with it, then it becomes random (though the basic pattern is still used).

Just like with VC++, MFC, etc., you need to either use a window class that is already registered (like Static, Button, etc.) or register your own a la RegisterClassEx, which uses the WNDCLASSEX structure. You can P/Invoke this easily enough.

Register the class (with a classname of your choosing, so long as it doesn't already exist) once, then override CreateParams in your Control derivative and set the CreateParams.ClassName as well as any other extended, window, or class styles you want.

Also, if you're merely looking for your application, you might consider enumerating Process.GetProcesses (which can also gets the processes given an executable name). Using the Process class's properties, you can discover additional information. If you need an HWND at any point, just use Process.MainWindowHandle.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: How to Set the Window Class Name of a Windows Form App? Pin
Matt Gerrans16-Jun-04 10:18
Matt Gerrans16-Jun-04 10:18 
GeneralRe: How to Set the Window Class Name of a Windows Form App? Pin
Heath Stewart16-Jun-04 10:21
protectorHeath Stewart16-Jun-04 10:21 
GeneralWindows service problem accessing network share Pin
Member 116497710-Jun-04 6:03
Member 116497710-Jun-04 6:03 
GeneralRe: Windows service problem accessing network share Pin
Heath Stewart13-Jun-04 19:39
protectorHeath Stewart13-Jun-04 19:39 
Generallocalizing bitmaps Pin
klawipo10-Jun-04 1:42
klawipo10-Jun-04 1:42 

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.