Hi,
I have created the template form with the control RadTabStrip. When the other form inherites from the template, I can’t add more TabItems in design time, because it fails. The errors are:
|
at Telerik.WinControls.RadElementCollection.CheckElementAlreadyAdded(Object value) at Telerik.WinControls.RadElementCollection.OnInsert(Int32 index, Object value) at System.Collections.CollectionBase.System.Collections.IList.Insert(Int32 index, Object value) at Telerik.WinControls.RadItemCollection.OnInsertComplete(Int32 index, Object value) at System.Collections.CollectionBase.System.Collections.IList.Add(Object value) at Telerik.WinControls.RadItemCollection.AddRange(RadItem[] value) |
this.radTabStrip1.Items.AddRange(new Telerik.WinControls.RadItem[] {
this.tabItem2});
and change it for
this.radTabStrip1.Items.AddRange(new Telerik.WinControls.RadItem[] {
new Telerik.WinControls.UI.TabItem()
});
there is no error. In run time it doesn´t present this error.
I tried to add a tooltiptext to RadToggleButton and RadTrackBar.
The code is below:
toggleButtonMagnifier.RootElement.ToolTipText = "Magnification Toggle";
toggleButtonMagnifier.ShowItemToolTips = true;
Also tried the other way:
((RadMenu)AttachmentView.Controls[1]).MenuElement.Items[0].ToolTipText = "Magnification Toggle";
but tooltiptext did not pup up.
Any suggestion?
Thanks,
Susan
| Dim Result As DialogResult = frmShapedForm.ShowDialog(Me) |
| Me.StartPosition = FormStartPosition.CenterParent |