victor12345
New Member
- Messages
- 42
- Reaction score
- 0
- Points
- 0
How to make a time viewer in the icon tray:
I just designed it from scratch. I also know that I have alot of stuff I don\'t need!
1. Create The Design of the forms
1. Form1 (Only form to design)
You need the following objects
Form Settings
1. FormBorderStyle => None
Just Scatter the labels around, it doesn\'t matter the slightest!
1. Label1 - No purpose at the moment
2. Label2 - No purpose at the moment
3. Label3 ---=> Text => 00:00:00
4. Label4 -/
5. Label5 ---=> Text => Dec 1, 10001
6. Label6 -/
These have no location, so who cares about the location?
7. Timer1 => Interval => 1 | Enabled =>1
8. NotifyIcon1 => Visible => True | Icon MUST be set to anything, but it just has to be set to something!
For those lazy people, I am using Microsoft Visual Studio 2008 Beta 2, free for about 300 days. This is the content of Form1.Designer.vb :
==================================Start Code==================================
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
Inherits System.Windows.Forms.Form
\'Form overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
Finally
MyBase.Dispose(disposing)
End Try
End Sub
\'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
\'NOTE: The following procedure is required by the Windows Form Designer
\'It can be modified using the Windows Form Designer.
\'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(Form1))
Me.Label1 = New System.Windows.Forms.Label
Me.Label2 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.Label4 = New System.Windows.Forms.Label
Me.Label5 = New System.Windows.Forms.Label
Me.Label6 = New System.Windows.Forms.Label
Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
Me.NotifyIcon1 = New System.Windows.Forms.NotifyIcon(Me.components)
Me.SuspendLayout()
\'
\'Label1
\'
Me.Label1.AutoSize = True
Me.Label1.Location = New System.Drawing.Point(1, -2)
Me.Label1.Margin = New System.Windows.Forms.Padding(6, 0, 6, 0)
Me.Label1.Name = \"Label1\"
Me.Label1.Size = New System.Drawing.Size(238, 36)
Me.Label1.TabIndex = 0
Me.Label1.Text = \"Calgary (GMT-7)\"
\'
\'Label2
\'
Me.Label2.AutoSize = True
Me.Label2.Font = New System.Drawing.Font(\"Microsoft Sans Serif\", 15.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label2.Location = New System.Drawing.Point(1, 34)
Me.Label2.Margin = New System.Windows.Forms.Padding(6, 0, 6, 0)
Me.Label2.Name = \"Label2\"
Me.Label2.Size = New System.Drawing.Size(234, 29)
Me.Label2.TabIndex = 1
Me.Label2.Text = \"Shenzhen (GMT+8)\"
\'
\'Label3
\'
Me.Label3.AutoSize = True
Me.Label3.Location = New System.Drawing.Point(244, -2)
Me.Label3.Name = \"Label3\"
Me.Label3.Size = New System.Drawing.Size(133, 36)
Me.Label3.TabIndex = 2
Me.Label3.Text = \"00:00:00\"
\'
\'Label4
\'
Me.Label4.AutoSize = True
Me.Label4.Location = New System.Drawing.Point(244, 34)
Me.Label4.Name = \"Label4\"
Me.Label4.Size = New System.Drawing.Size(133, 36)
Me.Label4.TabIndex = 3
Me.Label4.Text = \"00:00:00\"
\'
\'Label5
\'
Me.Label5.AutoSize = True
Me.Label5.Location = New System.Drawing.Point(383, -2)
Me.Label5.Name = \"Label5\"
Me.Label5.Size = New System.Drawing.Size(193, 36)
Me.Label5.TabIndex = 4
Me.Label5.Text = \"Dec 1, 10001\"
\'
\'//------------------------------------------------------//\'
It\'s So long! See Next Post!
I just designed it from scratch. I also know that I have alot of stuff I don\'t need!
1. Create The Design of the forms
1. Form1 (Only form to design)
You need the following objects
Form Settings
1. FormBorderStyle => None
Just Scatter the labels around, it doesn\'t matter the slightest!
1. Label1 - No purpose at the moment
2. Label2 - No purpose at the moment
3. Label3 ---=> Text => 00:00:00
4. Label4 -/
5. Label5 ---=> Text => Dec 1, 10001
6. Label6 -/
These have no location, so who cares about the location?
7. Timer1 => Interval => 1 | Enabled =>1
8. NotifyIcon1 => Visible => True | Icon MUST be set to anything, but it just has to be set to something!
For those lazy people, I am using Microsoft Visual Studio 2008 Beta 2, free for about 300 days. This is the content of Form1.Designer.vb :
==================================Start Code==================================
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
Inherits System.Windows.Forms.Form
\'Form overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
Finally
MyBase.Dispose(disposing)
End Try
End Sub
\'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
\'NOTE: The following procedure is required by the Windows Form Designer
\'It can be modified using the Windows Form Designer.
\'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(Form1))
Me.Label1 = New System.Windows.Forms.Label
Me.Label2 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.Label4 = New System.Windows.Forms.Label
Me.Label5 = New System.Windows.Forms.Label
Me.Label6 = New System.Windows.Forms.Label
Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
Me.NotifyIcon1 = New System.Windows.Forms.NotifyIcon(Me.components)
Me.SuspendLayout()
\'
\'Label1
\'
Me.Label1.AutoSize = True
Me.Label1.Location = New System.Drawing.Point(1, -2)
Me.Label1.Margin = New System.Windows.Forms.Padding(6, 0, 6, 0)
Me.Label1.Name = \"Label1\"
Me.Label1.Size = New System.Drawing.Size(238, 36)
Me.Label1.TabIndex = 0
Me.Label1.Text = \"Calgary (GMT-7)\"
\'
\'Label2
\'
Me.Label2.AutoSize = True
Me.Label2.Font = New System.Drawing.Font(\"Microsoft Sans Serif\", 15.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label2.Location = New System.Drawing.Point(1, 34)
Me.Label2.Margin = New System.Windows.Forms.Padding(6, 0, 6, 0)
Me.Label2.Name = \"Label2\"
Me.Label2.Size = New System.Drawing.Size(234, 29)
Me.Label2.TabIndex = 1
Me.Label2.Text = \"Shenzhen (GMT+8)\"
\'
\'Label3
\'
Me.Label3.AutoSize = True
Me.Label3.Location = New System.Drawing.Point(244, -2)
Me.Label3.Name = \"Label3\"
Me.Label3.Size = New System.Drawing.Size(133, 36)
Me.Label3.TabIndex = 2
Me.Label3.Text = \"00:00:00\"
\'
\'Label4
\'
Me.Label4.AutoSize = True
Me.Label4.Location = New System.Drawing.Point(244, 34)
Me.Label4.Name = \"Label4\"
Me.Label4.Size = New System.Drawing.Size(133, 36)
Me.Label4.TabIndex = 3
Me.Label4.Text = \"00:00:00\"
\'
\'Label5
\'
Me.Label5.AutoSize = True
Me.Label5.Location = New System.Drawing.Point(383, -2)
Me.Label5.Name = \"Label5\"
Me.Label5.Size = New System.Drawing.Size(193, 36)
Me.Label5.TabIndex = 4
Me.Label5.Text = \"Dec 1, 10001\"
\'
\'//------------------------------------------------------//\'
It\'s So long! See Next Post!