Ok guys I need some help why I am getting this error and how do I fix this:'Handles clause requires a withevent variable defined in the containing type or one of its base types'
Code below Error occurs on line 14:
Imports System.ComponentModel
Imports System.Text
Imports DevComponents.DotNetBar.Metro
Imports DevComponents.DotNetBar
Namespace MetroTilePanel
Partial Public Class Form1
Inherits MetroForm
Public Sub New()
StyleManager.MetroColorGeneratorParameters = New DevComponents.DotNetBar.Metro.ColorTables.MetroColorGeneratorParameters(ColorScheme.GetColor("0E6D38"), ColorScheme.GetColor("0E6D38"))
InitializeComponent()
End Sub
Private Sub metroTilePanel1_ItemClick(sender As System.Object, e As System.EventArgs) Handles metroTilePanel1.ItemClick
Dim Proc As New System.Diagnostics.Process
Proc.StartInfo.WorkingDirectory = "D:\"
Proc.StartInfo.FileName = "index.jpg"
Proc.Start()
End Sub
End Class
End Namespace