StatusBar1.Panels(4).BorderStyle = StatusBarPanelBorderStyle.Raised
' Create ToolTip text that displays the current time.
StatusBar1.Panels(4).ToolTipText = System.DateTime.Now.ToShortTimeString()
' Set the text of the panel to the current date.
StatusBar1.Panels(4).Text = System.DateTime.Today.ToLongDateString()
' Set the AutoSize property to size the panel to the size of the contents.
StatusBar1.Panels(4).AutoSize = StatusBarPanelAutoSize.Contents