Search Tools Links Login

Show Modal Forms in Taskbar

Posted: 2019-09-13
By: ilanio
Viewed: 219

Filed Under:

Visual Basic 6, Visual Basic 6, Visual Basic 6

Title Uploaded Size 9/13/2019 7:58:31 AM 1,221

This is a simple way to force MODAL FORMS show in TaskBar. By default, modal forms aren't show in taskbar.

This method uses ShowWindow API to hide the form and show it again after change WS_EX_APPWINDOW attribute of form (a clever way to do this is define the caption of form).

Note if you use Visible property of VB, the code after form call continues executing when it set to false. So we use ShowWindow to avoid this problem.

Special Instructions

This code originally appeared on, and has been republished here with the permission of Andrea Tincani.

Comments on this post

No comments have been added for this post.

You must be logged in to make a comment.