|
-
Apr 10th, 2004, 04:48 AM
#1
Thread Starter
Addicted Member
show instance of form in taskbar
hi i am declaring a variable as a form and want it so the form will
appear in the task bar but not show the form any ideas
would this work
VB Code:
dim bob as frmtemp
set bob = new frmtemp
bob.ShowInTaskbar = vbTrue
bob.show
bob.hide
-
Apr 10th, 2004, 05:19 AM
#2
Lively Member
The form will only show in the taskbar if it is visible not hidden.
Nick
-
Apr 10th, 2004, 05:21 AM
#3
New Member
As ShowInTaskbar is readonly at runtime,
SO have to find another method i guess...
-
Apr 10th, 2004, 05:31 AM
#4
New Member
try this one this may help
Private Sub Command1_Click()
Dim newFrm As Form1
Set newFrm = New Form1
newFrm.Visible = True
'
newFrm.Caption = "1234"
newFrm.Show
End Sub
-
Apr 10th, 2004, 07:23 AM
#5
VB Code:
Private Sub Form_Load()
Me.WindowState = 1
End Sub
-
Apr 10th, 2004, 07:53 AM
#6
What you after, badger, may lead you to a dead end but the following sample may as well work for you:
VB Code:
Option Explicit
Private Sub Command1_Click()
Dim frm As Form
Set frm = New Form1
Load frm
frm.Caption = "Form2"
frm.WindowState = vbMinimized
frm.Show
End Sub
Private Sub Form_Resize()
If Not Me.Caption = "Form1" Then
If Not Me.WindowState = vbMinimized Then
Me.WindowState = vbMinimized
End If
End If
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|