Click here to Skip to main content
15,929,504 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralWMI call from VB6 locking HKCU Pin
dougstratton10-May-05 7:38
dougstratton10-May-05 7:38 
GeneralRe: WMI call from VB6 locking HKCU Pin
Dave Kreskowiak10-May-05 8:09
mveDave Kreskowiak10-May-05 8:09 
GeneralRe: WMI call from VB6 locking HKCU Pin
dougstratton10-May-05 8:13
dougstratton10-May-05 8:13 
GeneralRe: WMI call from VB6 locking HKCU Pin
Dave Kreskowiak10-May-05 8:17
mveDave Kreskowiak10-May-05 8:17 
GeneralListview Pin
suiscf10-May-05 6:36
suiscf10-May-05 6:36 
GeneralFTP Automation Pin
Rajkumar S10-May-05 5:39
Rajkumar S10-May-05 5:39 
GeneralRe: FTP Automation Pin
Dave Kreskowiak10-May-05 7:59
mveDave Kreskowiak10-May-05 7:59 
GeneralShow new form without taking focus off first form Pin
carlos_rocha10-May-05 4:22
carlos_rocha10-May-05 4:22 
Hi!

I read the articles related to message windows that popup but i still don't have the answer for my problem.

I have a form which launches a new form (i want it to be a topMost form) but even with the ShowWindow() function the second form still gets focus.I tried a simpler example with a main form and a second that didn't contain any controls or painting code and it still gets the focus.This is my declaration of function.Am i doing anything wrong?When should i call showWindow()?

<dllimport("user32")> _
Private Shared Function ShowWindow(ByVal hWnd As IntPtr, ByVal nCmdShow As Int32) As Boolean
End Function

(...)

Dim myForm2 As New Form2
ShowWindow(myForm2.Handle, 4) '4 is the SW_SHOWNOACTIVATE value

This doesn't work for me (using vb.net).Can anyone help me?

Never say never
GeneralRe: Show new form without taking focus off first form Pin
rudy.net10-May-05 10:08
rudy.net10-May-05 10:08 
GeneralRe: Show new form without taking focus off first form Pin
carlos_rocha10-May-05 22:26
carlos_rocha10-May-05 22:26 
GeneralRe: Show new form without taking focus off first form Pin
carlos_rocha11-May-05 0:19
carlos_rocha11-May-05 0:19 
GeneralRe: Show new form without taking focus off first form Pin
rudy.net11-May-05 2:12
rudy.net11-May-05 2:12 
GeneralRe: Show new form without taking focus off first form Pin
carlos_rocha11-May-05 3:33
carlos_rocha11-May-05 3:33 
Generalhelp on add-in for outlook and outlook express Pin
iamalik10-May-05 3:48
professionaliamalik10-May-05 3:48 
GeneralCount lines in textbox Pin
josblow10-May-05 3:12
josblow10-May-05 3:12 
GeneralRe: Count lines in textbox Pin
Dave Kreskowiak10-May-05 8:42
mveDave Kreskowiak10-May-05 8:42 
GeneralRe: Count lines in textbox Pin
rudy.net10-May-05 10:28
rudy.net10-May-05 10:28 
GeneralPrinting Forms in VB.NET 2003 Pin
Treacherous_110-May-05 2:43
Treacherous_110-May-05 2:43 
GeneralRe: Printing Forms in VB.NET 2003 Pin
Treacherous_112-May-05 5:31
Treacherous_112-May-05 5:31 
Generalremoting deployment Pin
Rizwan Bashir10-May-05 0:37
Rizwan Bashir10-May-05 0:37 
Generalthumbnail emages Pin
suis9-May-05 21:47
suis9-May-05 21:47 
GeneralRe: thumbnail emages Pin
Dave Kreskowiak10-May-05 8:26
mveDave Kreskowiak10-May-05 8:26 
Generalcreating web services in Visual basic Pin
abhi20089-May-05 21:01
abhi20089-May-05 21:01 
GeneralRe: creating web services in Visual basic Pin
Dave Kreskowiak10-May-05 8:24
mveDave Kreskowiak10-May-05 8:24 
GeneralReturn an array within an object - Web Service Pin
aussieole9-May-05 20:41
aussieole9-May-05 20:41 

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.