The taskbar is not showing when a form loads RRS feed

  • Question

  • Hi Good People

    When a form loads the Taskbar does not show. On the form in properties, I have set the windows state to Maximized.

    I have tried different settings on the windows state. Normal, Minimised and the taskbar does show. 

    I have looked at the taskbar settings but all seems to be OK.

    And on another program That I have not yet finished, The same form, same size, Same settings, shows the taskbar.

    There has been an update on Visual Basic. could this have been the problem or is there something I am not doing right?

    I have not had this problem before the taskbar has always shown after the form load.

    Kind regards 


    Gary Simpson

    Friday, December 11, 2020 4:30 PM

All replies

  • Sorry Good People

    I have forgotten to mention that I removed the control box, 

    from the properties I set the control box to False and "I think" this is what is causing the problem. and if it is the problem, Then is there a way to show the taskbar.

    Very sorry


    Gary Simpson

    Friday, December 11, 2020 5:04 PM
  • Do you have a lot going on in the load or shown event?

    The new site to post is


    Tag with


    Search Documentation

    SerialPort Info

    Multics - An OS ahead of its time.

     "Those who use Application.DoEvents have no idea what it does

        and those who know what it does never use it."    former MSDN User JohnWein

    • Edited by dbasnett Friday, December 11, 2020 7:47 PM
    Friday, December 11, 2020 7:44 PM
  • Hi dBasnett

    Thank you for getting back to me.

    I have two Labels ,18 Buttons to open other forms. When the form loads from a Login form I created a check

    whether the User is Admin, Management, or staff Member on the Login Form

    And when the Form called (FrmMenu) loads the result of whatever the Member Name is, Gets put into Label (Member Name). And Puts the Member Level into another Label (Member Level) 

    and all depending on the result of Member Level It Enables/Disables Certain Buttons.

    This is the best way I can describe what happens after the Login is successful. 

    Gary Simpson

    Public Class FrmLogin
        Private ReadOnly SQL As New SQLControl
        Private AuthUser As String
        Private Sub FrmLogin_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        End Sub
        Private Function IsAuthenticated() As Boolean
            'Clear existing records
            If SQL.SQLDS IsNot Nothing Then
            End If
            SQL.RunQueryA("SELECT Count(MemberName) As MemberCount " &
                          "FROM Members " &
                          "WHERE MemberName='" & TxtMemberName.Text & "' COLLATE SQL_Latin1_General_CP1_CS_AS " &
                          " AND Password='" & TxtPassword.Text & "' COLLATE SQL_Latin1_General_CP1_CS_AS ")
            If SQL.SQLDS.Tables(0).Rows(0).Item("MemberCount") = 1 Then
                Return True
            End If
            MsgBox("Hi " & TxtMemberName.Text & " Your Credentials Are Invalid.", MsgBoxStyle.Critical, "LOGIN DENIED")
            Return False
        End Function
        Private Sub CmdLogin_Click(sender As Object, e As EventArgs) Handles CmdLogin.Click
            If IsAuthenticated() = True Then
                AuthUser = TxtMemberName.Text
                MsgBox("Hi, " & TxtMemberName.Text & ", Hope you have a good day." & vbCrLf & vbCrLf & " You Last Logged in on, " & TxtLastLoginDate.Text, MsgBoxStyle.Information, "Your Login Is Successful")
                FrmMenu.LbMemberName.Text = TxtMemberName.Text
            End If
        End Sub
        Private Sub GetDateTime()
            SQL.RunQueryA("SELECT LastLoginDate " &
                          "FROM Members " &
                          "WHERE MemberName='" & TxtMemberName.Text & "' ")
            For Each I As Object In SQL.SQLDS.Tables(0).Rows
                TxtLastLoginDate.Text = I.item("LastLoginDate")
        End Sub
        Private Sub CmdCancel_Click(sender As Object, e As EventArgs) Handles CmdCancel.Click
            MsgBox("Program is now closing ", MsgBoxStyle.Information, "Closing")
        End Sub
        Private Sub TxtPassword_TextChanged(sender As Object, e As EventArgs) Handles TxtPassword.TextChanged
            If TxtPassword.Text = Nothing Then
                CmdLogin.Enabled = False
                CmdLogin.Enabled = True
            End If
        End Sub
        Private Sub TxtMemberName_Leave(sender As Object, e As EventArgs) Handles TxtMemberName.Leave
        End Sub
        Private Sub GetMemberLevel()
            'Gets the member status level of whoever is logged in
            SQL.RunQueryA("SELECT MemberLevel " &
                          "FROM Members " &
                          "WHERE MemberName='" & TxtMemberName.Text & "' ")
            For Each i As Object In SQL.SQLDS.Tables(0).Rows
                FrmMenu.LbMemberLevel.Text = i.item("MemberLevel")
        End Sub
        Private Sub UpdateLoginDateTime()
            SQL.AddParam("@LastLoginDate", DateTime.Now)
            SQL.AddParam("@MemberName", TxtMemberName.Text)
            SQL.ExecQuery("UPDATE Members " &
                            "SET LastLoginDate=@LastLoginDate " &
                            "WHERE MemberName=@MemberName;")
            If SQL.HasException(True) Then Exit Sub
            'MsgBox(TxtMemberName.Text & " Time Updated Successfully! ", MsgBoxStyle.Information, ", Time updated Complete")
        End Sub
    End Class

    Friday, December 11, 2020 8:22 PM
  • Hello,

    See if the following code sample might assist in determining the issue. It was an to answer a question over ten years ago.

    BTW Monday this forum shuts down so in the future go here


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    My GitHub code samples
    GitHub page

    Check out:  the new Microsoft Q&A forums

    • Proposed as answer by KHURRAM RAHIM Sunday, December 13, 2020 2:20 PM
    Saturday, December 12, 2020 12:31 PM
  • Hi Karen

    Thank you for getting back to me.

    Thank you for the reminder about asking questions.

    I have tried to open the file Full Screen, But it has been moved or renamed.

    Message I Get 1 Kind Regards

    GaryMessage 2

    Gary Simpson

    Saturday, December 12, 2020 9:30 PM