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
Printable View
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
The form will only show in the taskbar if it is visible not hidden.
Nick
As ShowInTaskbar is readonly at runtime,
SO have to find another method i guess...
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
VB Code:
Private Sub Form_Load() Me.WindowState = 1 End Sub
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