I just converted one of my VB6 project to VB2005. I tried and made some modification to the new style - VB2005. Please let me know what else I can do to make it like VB2005 compliance so that I can learn the new syntax/concept.
Thank You
Code:Private Const mcstrAlarmStart As String = "Start Alarm" Private Const mcstrAlarmStop As String = "Stop Alarm" Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load Me.Text = "Alarm Clock" Me.Show() 'Automatically Center MediaPlayer1.Visible = False 'PURPOSE: Default Minutes Dim intLP As Short For intLP = 1 To 100 cboInterval.Items.Add(intLP.ToString) Next cboInterval.Text = (10.5).ToString 'Default 10 minutes and 30 seconds lblStartTime.Text = "" lblAlarmTime.Text = "" 'PURPOSE: Default cmdAlarmAction.Text = mcstrAlarmStart 'PURPOSE: Default Timer Timer1.Interval = 1000 Timer1.Enabled = True Call Timer1_Tick(Timer1, New System.EventArgs()) 'PURPOSE: Just for status ToolTip1.SetToolTip(lblCurrent, "Application Start Time: " & Now) ToolTip1.SetToolTip(lblCurrentTime, "Application Start Time: " & Now) End Sub


Reply With Quote