I am currently converting a VB.net project over to Teleriks components. On one of my forms i have multiple panels. When one of the panels get clicked the borderstyle changes to fixed3D and the rest change to FixedSingle. But, with telerik borderstyle is not a member. Is there a work away around this? Do i need to change it from a panel to a label for this feature? Below is my code.
Thank You
#Region "PRIORITY PANEL SELECT"
Private Sub Panel2_Clicked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Panel2.Click
Try
If Panel2. = BorderStyle.FixedSingle Then
Panel2.BorderStyle = BorderStyle.Fixed3D
Panel3.BorderStyle = BorderStyle.FixedSingle
Panel4.BorderStyle = BorderStyle.FixedSingle
Panel5.BorderStyle = BorderStyle.FixedSingle
Panel6.BorderStyle = BorderStyle.FixedSingle
Else
Panel2.BorderStyle = BorderStyle.FixedSingle
End If
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
Private Sub Panel3_Clicked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Panel3.Click
Try
If Panel3.BorderStyle = BorderStyle.FixedSingle Then
Panel3.BorderStyle = BorderStyle.Fixed3D
Panel2.BorderStyle = BorderStyle.FixedSingle
Panel4.BorderStyle = BorderStyle.FixedSingle
Panel5.BorderStyle = BorderStyle.FixedSingle
Panel6.BorderStyle = BorderStyle.FixedSingle
Else
Panel3.BorderStyle = BorderStyle.FixedSingle
End If
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
Private Sub Panel4_Clicked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Panel4.Click
Try
If Panel4.BorderStyle = BorderStyle.FixedSingle Then
Panel4.BorderStyle = BorderStyle.Fixed3D
Panel3.BorderStyle = BorderStyle.FixedSingle
Panel2.BorderStyle = BorderStyle.FixedSingle
Panel5.BorderStyle = BorderStyle.FixedSingle
Panel6.BorderStyle = BorderStyle.FixedSingle
Else
Panel4.BorderStyle = BorderStyle.FixedSingle
End If
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
Private Sub Panel5_Clicked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Panel5.Click
Try
If Panel5.BorderStyle = BorderStyle.FixedSingle Then
Panel5.BorderStyle = BorderStyle.Fixed3D
Panel3.BorderStyle = BorderStyle.FixedSingle
Panel4.BorderStyle = BorderStyle.FixedSingle
Panel2.BorderStyle = BorderStyle.FixedSingle
Panel6.BorderStyle = BorderStyle.FixedSingle
Else
Panel5.BorderStyle = BorderStyle.FixedSingle
End If
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
Private Sub Panel6_Clicked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Panel6.Click
Try
If Panel6.BorderStyle = BorderStyle.FixedSingle Then
Panel6.BorderStyle = BorderStyle.Fixed3D
Panel3.BorderStyle = BorderStyle.FixedSingle
Panel4.BorderStyle = BorderStyle.FixedSingle
Panel5.BorderStyle = BorderStyle.FixedSingle
Panel2.BorderStyle = BorderStyle.FixedSingle
Else
Panel6.BorderStyle = BorderStyle.FixedSingle
End If
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
#End Region
Thank You
#Region "PRIORITY PANEL SELECT"
Private Sub Panel2_Clicked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Panel2.Click
Try
If Panel2. = BorderStyle.FixedSingle Then
Panel2.BorderStyle = BorderStyle.Fixed3D
Panel3.BorderStyle = BorderStyle.FixedSingle
Panel4.BorderStyle = BorderStyle.FixedSingle
Panel5.BorderStyle = BorderStyle.FixedSingle
Panel6.BorderStyle = BorderStyle.FixedSingle
Else
Panel2.BorderStyle = BorderStyle.FixedSingle
End If
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
Private Sub Panel3_Clicked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Panel3.Click
Try
If Panel3.BorderStyle = BorderStyle.FixedSingle Then
Panel3.BorderStyle = BorderStyle.Fixed3D
Panel2.BorderStyle = BorderStyle.FixedSingle
Panel4.BorderStyle = BorderStyle.FixedSingle
Panel5.BorderStyle = BorderStyle.FixedSingle
Panel6.BorderStyle = BorderStyle.FixedSingle
Else
Panel3.BorderStyle = BorderStyle.FixedSingle
End If
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
Private Sub Panel4_Clicked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Panel4.Click
Try
If Panel4.BorderStyle = BorderStyle.FixedSingle Then
Panel4.BorderStyle = BorderStyle.Fixed3D
Panel3.BorderStyle = BorderStyle.FixedSingle
Panel2.BorderStyle = BorderStyle.FixedSingle
Panel5.BorderStyle = BorderStyle.FixedSingle
Panel6.BorderStyle = BorderStyle.FixedSingle
Else
Panel4.BorderStyle = BorderStyle.FixedSingle
End If
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
Private Sub Panel5_Clicked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Panel5.Click
Try
If Panel5.BorderStyle = BorderStyle.FixedSingle Then
Panel5.BorderStyle = BorderStyle.Fixed3D
Panel3.BorderStyle = BorderStyle.FixedSingle
Panel4.BorderStyle = BorderStyle.FixedSingle
Panel2.BorderStyle = BorderStyle.FixedSingle
Panel6.BorderStyle = BorderStyle.FixedSingle
Else
Panel5.BorderStyle = BorderStyle.FixedSingle
End If
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
Private Sub Panel6_Clicked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Panel6.Click
Try
If Panel6.BorderStyle = BorderStyle.FixedSingle Then
Panel6.BorderStyle = BorderStyle.Fixed3D
Panel3.BorderStyle = BorderStyle.FixedSingle
Panel4.BorderStyle = BorderStyle.FixedSingle
Panel5.BorderStyle = BorderStyle.FixedSingle
Panel2.BorderStyle = BorderStyle.FixedSingle
Else
Panel6.BorderStyle = BorderStyle.FixedSingle
End If
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
#End Region