Results 1 to 6 of 6

Thread: show instance of form in taskbar

  1. #1

    Thread Starter
    Addicted Member señorbadger's Avatar
    Join Date
    Oct 2003
    Location
    Mud pools of wellingborough
    Posts
    193

    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:
    1. dim bob as frmtemp
    2. set bob = new frmtemp
    3. bob.ShowInTaskbar = vbTrue
    4. bob.show
    5. bob.hide

  2. #2
    Lively Member
    Join Date
    Mar 2004
    Location
    UK
    Posts
    109
    The form will only show in the taskbar if it is visible not hidden.

    Nick
    UK Software Development http://www.all4yourpc.co.uk

  3. #3
    New Member
    Join Date
    Apr 2004
    Location
    mumbai
    Posts
    2

    Angry

    As ShowInTaskbar is readonly at runtime,
    SO have to find another method i guess...

  4. #4
    New Member
    Join Date
    Apr 2004
    Location
    mumbai
    Posts
    2
    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

  5. #5
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236
    VB Code:
    1. Private Sub Form_Load()
    2.  
    3. Me.WindowState = 1
    4.  
    5. End Sub

  6. #6
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132
    What you after, badger, may lead you to a dead end but the following sample may as well work for you:
    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub Command1_Click()
    4. Dim frm As Form
    5.  
    6.     Set frm = New Form1
    7.     Load frm
    8.     frm.Caption = "Form2"
    9.     frm.WindowState = vbMinimized
    10.     frm.Show
    11.  
    12. End Sub
    13.  
    14. Private Sub Form_Resize()
    15.     If Not Me.Caption = "Form1" Then
    16.         If Not Me.WindowState = vbMinimized Then
    17.             Me.WindowState = vbMinimized
    18.         End If
    19.     End If
    20. 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
  •  



Click Here to Expand Forum to Full Width