or


Imports Telerik.WinControls.UI Public Class Form1 Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim rpbge As RadPanelBarGroupElement For i As Integer = 0 To 10 rpbge = New RadPanelBarGroupElement rpbge.Caption = "Group" & i rpbge.EnableHostControlMode = True RadPanelBar1.Items.Add(rpbge) Next Dim rlc As New RadListControl rlc.Height = 2 rlc.Width = rpbge.ContentPanel.ClientSize.Width rlc.Anchor = AnchorStyles.Left Or AnchorStyles.Right Or AnchorStyles.Top rpbge.ContentPanel.Controls.Add(rlc) rpbge.Expanded = True End Sub End Class 
|
The designer cannot process the code at line 56: this.panel1.BackgroundImage = global::Telerik.Examples.WinControls.Properties.Resources.brushedMetal; The code within the method 'InitializeComponent' is generated by the designer and should not be manually modified. Please remove any changes and try opening the designer again.
Hide Edit |
|
|
at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.CreateQuoteExpression(XmlElementData xmlElement) at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.XmlElementData.get_CodeDomElement() at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.EndElement(String prefix, String name, String urn) at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.Parse(XmlReader reader) at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.ParseXml(String xmlStream, CodeStatementCollection statementCollection, String fileName, String methodName) at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomParser.OnMethodPopulateStatements(Object sender, EventArgs e) at System.CodeDom.CodeMemberMethod.get_Statements() at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration) at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager) at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager) at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload) |
Private Sub RadPanelBar1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles RadPanelBar1.MouseDown Try If e.Button = Windows.Forms.MouseButtons.Right Then RadMessageBox.Show("Right click not allowed.") Exit Sub End If Catch ex As Exception RadMessageBox.Show(ex.ToString) End Try End Sub