Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-12-2004, 08:09 AM
narsinha narsinha is online now
Registered User
 
Join Date: 08-21-2003
Posts: 7
dll doesn't show up on the taskbar

I have used the example provided in VB6Actiion to create my own dll. I have created a build script to register, execute and unregister the dll using the examples. The users of this build script are complaining that they can't alt-tab to the form that the dll displays. The form doesnot show on the taskbar. I have tried displaying the form as non-modal in the dll, but the build script won't allow a non-modal form to be displayed. Is there a way to work around this problem.
Reply With Quote
  #2  
Old 05-12-2004, 09:21 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
There is (gleaned from http://groups.google.com/groups?hl=e...show%2Btaskbar):

Add this code to the VB form

Private Sub Form_Resize()
Me.Caption = Me.Caption
End Sub
Reply With Quote
  #3  
Old 05-12-2004, 10:27 AM
narsinha narsinha is online now
Registered User
 
Join Date: 08-21-2003
Posts: 7
That helps. Users can now alt-tab to the dll.

BUT it still does not show up in the taskbar. The link you provided mentioned setting ShowInTaskbar property in VB. This property is true when I display its value in the form_load. Need to investigate this further.
Reply With Quote
  #4  
Old 05-12-2004, 10:40 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
I noticed that too. One workaround would be to force the form to be always on top:

' in form declaration section
Private Const HWND_TOPMOST = -1
Private Const SWP_NOMOVE = &H2
Private Const SWP_NOSIZE = &H1

Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long

Private Sub Form_Load()
SetWindowPos Me.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
End Sub
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 05:19 AM.


Copyright © 1999-2023 Kinook Software, Inc.