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

.NET (Core and Framework)

 
GeneralRe: PLEASE HELP ME OUT SOMEBODY Pin
Paul Conrad13-Mar-08 10:45
professionalPaul Conrad13-Mar-08 10:45 
GeneralRe: PLEASE HELP ME OUT SOMEBODY Pin
pmarfleet13-Mar-08 11:08
pmarfleet13-Mar-08 11:08 
GeneralRe: PLEASE HELP ME OUT SOMEBODY Pin
Paul Conrad13-Mar-08 10:44
professionalPaul Conrad13-Mar-08 10:44 
QuestionHijacking another application window Pin
TheIdleProgrammer12-Mar-08 0:47
TheIdleProgrammer12-Mar-08 0:47 
GeneralRe: Hijacking another application window Pin
AndrewVos12-Mar-08 3:20
AndrewVos12-Mar-08 3:20 
GeneralRe: Hijacking another application window Pin
TheIdleProgrammer12-Mar-08 3:26
TheIdleProgrammer12-Mar-08 3:26 
AnswerRe: Hijacking another application window Pin
AndrewVos12-Mar-08 3:29
AndrewVos12-Mar-08 3:29 
GeneralRe: Hijacking another application window Pin
AndrewVos12-Mar-08 3:26
AndrewVos12-Mar-08 3:26 
Ok, I have created for you a horrible horrible hack... If you can make it elegant then it should work...

Create a new project, and add a button to the form. Then add this code:

<code>&lt;DllImport("user32.dll", CharSet:=CharSet.Auto, ExactSpelling:=True)&gt; Public Shared Function SetParent(ByVal hWnd As IntPtr, ByVal hWndParent As IntPtr) As IntPtr
End Function
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
System.Diagnostics.Process.Start("cmd")
Dim process As Process = process.GetProcessesByName("cmd")(0)
Do Until Not process.MainWindowHandle.Equals(IntPtr.Zero)
process.Refresh()
Loop
Trace.WriteLine(process.MainWindowHandle)
Me.SetParent(process.MainWindowHandle, Me.Handle)


Catch ex As Exception
Return
End Try
End Sub</code>


www.wickedorange.com
www.andrewvos.com
GeneralRe: Hijacking another application window Pin
Rajesh Anuhya13-Mar-08 0:56
professionalRajesh Anuhya13-Mar-08 0:56 
QuestionFramework 3.0 with IIS [modified] Pin
Rock Star.11-Mar-08 23:20
Rock Star.11-Mar-08 23:20 
GeneralRe: Framework 3.0 with IIS Pin
Simon P Stevens12-Mar-08 6:18
Simon P Stevens12-Mar-08 6:18 
Questionwindows service which monitors listening ports... Pin
routhu rao11-Mar-08 18:56
routhu rao11-Mar-08 18:56 
Generaluppercase encoding name with XMLTextWriter Pin
Uwe Ryssel11-Mar-08 10:38
Uwe Ryssel11-Mar-08 10:38 
GeneralTextbox scrolling problem Pin
TheIdleProgrammer11-Mar-08 5:27
TheIdleProgrammer11-Mar-08 5:27 
GeneralRe: Textbox scrolling problem Pin
Christian Graus11-Mar-08 10:59
protectorChristian Graus11-Mar-08 10:59 
GeneralRe: Textbox scrolling problem Pin
TheIdleProgrammer12-Mar-08 0:42
TheIdleProgrammer12-Mar-08 0:42 
GeneralRe: Textbox scrolling problem Pin
TheIdleProgrammer12-Mar-08 1:31
TheIdleProgrammer12-Mar-08 1:31 
GeneralGarbage Collector Pin
Het210910-Mar-08 13:11
Het210910-Mar-08 13:11 
GeneralRe: Garbage Collector Pin
Scott Dorman10-Mar-08 16:00
professionalScott Dorman10-Mar-08 16:00 
GeneralRe: Garbage Collector Pin
Het210910-Mar-08 16:29
Het210910-Mar-08 16:29 
GeneralRe: Garbage Collector Pin
Scott Dorman10-Mar-08 16:30
professionalScott Dorman10-Mar-08 16:30 
GeneralRe: Garbage Collector Pin
Mark Churchill12-Mar-08 1:20
Mark Churchill12-Mar-08 1:20 
Generalclass from database table Pin
seanwright10-Mar-08 6:59
seanwright10-Mar-08 6:59 
GeneralRe: class from database table Pin
led mike10-Mar-08 7:03
led mike10-Mar-08 7:03 
GeneralRe: class from database table Pin
Scott Dorman10-Mar-08 7:23
professionalScott Dorman10-Mar-08 7:23 

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.