Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21842

VB6 displays the desktop when a 2nd window is displayed

$
0
0
I have a VB6 COM object that is called from C++ app.

This C++ app is displaying a series of windows that uses the entire screen display. The windows taskbar is not displayed.

This C++ App calls my VB6 COM object.

My VB6 COM object displays a window that is displayed in only a given portion of the screen. This window is displayed using SetWindowsPos() to display the window on top of all other windows.

When the user clickes the "Yes" button on this screen, my VB6 COM object unloads the 1st form and then displays a 2nd form.

Here's the issue...

When the 2nd window is displayed by my VB6 exe, the taskbar is displayed and also the desktop is displayed.

I need to display this 2nd window without the taskbar or desktop being displayed.

Here's a code snippet:

frmPrompt.Show vbModal
If frmPrompt.Tag = "NO" Then
Unload frmPrompt
Exit Function
End If
Unload frmPrompt

frmTax.Show vbModal
If frmTax.Tag = "YES" Then
Unload frmTax
Exit Function
End If
Unload frmTax

Any help would be appreciated!!!

Viewing all articles
Browse latest Browse all 21842

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>