Telerik Forums
UI for WinForms Forum
1 answer
129 views
Hello,
I downloaded Telerik Q2 2011 Demos and Telerik reporting Q2 2011 Demos , and I created a C# winform project (about 30 Radforms including Radcontrols and 10 telerik reports).
Due to some reasons, I decided to uninstall both telerik and telerik reporting.
the problem is how can i change or convert my projectcontrols and forms from Radcontrols and Radforms to the standard Microsoft controls, without rebuilding it from scratch using the standard Microsoft controls and styles provided by Visual Studio.

If there's a manual way to do it I am okay with it, I am sure it would be better than writing everything from scratch.

Thanks in advanced 

Jack
Telerik team
 answered on 20 Jan 2012
9 answers
1.6K+ views
Hi,

I want to set the style of a grid cell at runtime. I am passing the radgridview control as a reference to a helper class and based on some values i am setting the background color of a cell as follows, but it does not work.

radGrid.Rows[1].Cells[1].Style.BackColor = System.Drawing.Color.Red;

Whereas setting the ForeColor the same way works.

radGrid.Rows[1].Cells[1].Style.ForeColor = System.Drawing.Color.Red;


Please advice.
thanks
Nikolay
Telerik team
 answered on 20 Jan 2012
7 answers
168 views
Hi there,

I have just upgraded my project to Q3 2011 controls and I'm having a problem with theme rendering.
I'm probably missing something really obvious, but I've tried as much as I can to fix it and nothing is helping.
Here's the situation:

Winform project (vs.net 2010/.net 4.0)
Upgraded to Q3 controls (still have the Q2 tools installed), ran the Telerik upgrade wizard inside Visual Studio - everything finished fine, ALL Telerik references are pointing to 2011.3.11.1116 versions of the .dll's.
There are no compilation errors or warnings at all in my project.

The problem is that the themes don't render correctly at run time - almost like the themes are missing or something. I've added the TelerikMetroBlueTheme control to my radform, set the theme properties for the form and the controls to that Theme, but at runtime, there's no close/min/max buttons on the form and the other controls on the form aren't rendering correctly.

Attached is a screenshot of what the designtime and runtime rendering looks like. The runtime is obviously not rendering correctly.

If I create a brand new project and add a theme and a form, then it renders correctly - just not for my existing project for some reason. Is Telerik hanging on to something somewhere, or could you point me in the right direction of where to look. Not had this issue before.
Nikolay
Telerik team
 answered on 20 Jan 2012
1 answer
96 views
Hi,
I was just wondering if it was possible to reduce the size of Telerik dll...

I even don't know if I have access to SourceCode but I guess I have.

If I have, knowing I only use:
RibbonBar control and its childs
RadLabel
RadTextBox
RadListView
RadDropDown
RadButton
Theme

Would it be possible to clean the dll of all others non dependant controls to have a lighter assembly?
Nikolay
Telerik team
 answered on 19 Jan 2012
3 answers
81 views
Hi
i am using chart control with legends.
is RighttoLeft property available for chart control.
when i set RightToLeft, the legend should be displayed at left side.

please find the attached screen shot for my requirement. i need to move atleast legend

Thanks
hema

Evgenia
Telerik team
 answered on 19 Jan 2012
1 answer
93 views
Hi! I had use the method of ViewDefinition. Where i can make column group.
The problem after the Grid show all my data its only read only... i can't do editing on particular row cell like normal.
Normally if i want particular columns is readonly then it won't able to edit. But with viewdefinition i didn't set any readonly via code.
May i know how can i do editing? Im using VB.NET 2010.
i code it like: http://www.telerik.com/help/winforms/gridview-viewdefinitions-column-groups-view.html

Hope to get the reply soon.

Thank you!

Regards
Johnny.
Johnny
Top achievements
Rank 2
 answered on 18 Jan 2012
1 answer
60 views

I have a chart that shows percent.  I would like the Y axis to show 0 through 100 if the maximum value in the series is less than 100.  If the maximum value is greater than 100 then I would like the chart to automaticaly scale the Y axis.

I thought that I could use Telerik.Charting.ChartSeriesCollection.GetMaxYValue() method, however it is not working as I expect.  The value it returns is Infinity, not the maximum value. This is how I am trying to achomplish.

if(chart.Series.GetMaxYValue() <= 100)
{
     chart.PlotArea.YAxis.MaxValue = 100;
     chart.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Color = Color.Black;
}
else
 {
     chart.PlotArea.YAxis.AutoScale = true;
     chart.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Color = Color.Red;
}

However when the maximum value is less than 100, I never get inside the IF startment, it always bounces to the ELSE.

To diagnose, I put the following line of code in so I can se the value returned by GetMaxYValue().

var x = chart.Series.GetMaxYValue();

Inside the debugger I can see the value of x is Infinity.

Any thoughts on what I'm doing wrong?  Is there a better way to achomplish this?

Thanks,

Chris

Yavor
Telerik team
 answered on 18 Jan 2012
1 answer
97 views
Hi, 

Is it possible to do a one to one relationship on a gridview to show the data hierarchically? If this is, would it be possible to let me know how please.

Thanks

Ivan Petrov
Telerik team
 answered on 18 Jan 2012
3 answers
222 views
Hi,

        I want to show new row at the top of gridview.How can I do ?

With Regards,
Aung Zaw Thant
Stefan
Telerik team
 answered on 18 Jan 2012
4 answers
854 views
Hi,

We have a window application which developing with RadForm and all the radcontrol (Q2 2011 version).  We found that after we close each form, the memory usage in client machine does not release.  We used the JustTrace tool / Net Performance Tool and found that some of the Telerik control was disposed but not in GC.

We created a testing application to compare the memory usage for RadForm and Window Form.  In the testing application, we have one Window Forms with menu control, one RadForm with RadGridView and one Window Form with RadGridView.  When we run the application, we keep open and close the RadForm 10 times.  Then, we found the memory usage is increase around 5,000k.  However, if we do the same on Window Form, the memory usage is only increase 500k.

So, how can we release the memory after we close the forms ( before the application was not closed)?

Code for the Window Form with menu control:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
    Inherits System.Windows.Forms.Form
 
    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub
 
    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer
 
    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer. 
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.RadContextMenuManager1 = New Telerik.WinControls.UI.RadContextMenuManager()
        Me.MainMenu = New Telerik.WinControls.UI.RadMenu()
        Me.menuFavorites = New Telerik.WinControls.UI.RadMenuItem()
        Me.menuCode = New Telerik.WinControls.UI.RadMenuItem()
        Me.menuMaster = New Telerik.WinControls.UI.RadMenuItem()
        Me.menuPrice = New Telerik.WinControls.UI.RadMenuItem()
        Me.menuPO = New Telerik.WinControls.UI.RadMenuItem()
        Me.menuSO = New Telerik.WinControls.UI.RadMenuItem()
        Me.menuInventory = New Telerik.WinControls.UI.RadMenuItem()
        Me.menuInvoice = New Telerik.WinControls.UI.RadMenuItem()
        Me.menuEnquiry = New Telerik.WinControls.UI.RadMenuItem()
        Me.menuAccount = New Telerik.WinControls.UI.RadMenuItem()
        Me.menuMobile = New Telerik.WinControls.UI.RadMenuItem()
        Me.menuWindow = New Telerik.WinControls.UI.RadMenuItem()
        Me.menuHelp = New Telerik.WinControls.UI.RadMenuItem()
        Me.menuTheme = New Telerik.WinControls.UI.RadMenuItem()
        CType(Me.MainMenu, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'MainMenu
        '
        Me.MainMenu.CausesValidation = False
        Me.MainMenu.Font = New System.Drawing.Font("Verdana", 9.0!)
        Me.MainMenu.Items.AddRange(New Telerik.WinControls.RadItem() {Me.menuFavorites, Me.menuCode, Me.menuMaster, Me.menuPrice, Me.menuPO, Me.menuSO, Me.menuInventory, Me.menuInvoice, Me.menuEnquiry, Me.menuAccount, Me.menuMobile, Me.menuWindow, Me.menuHelp, Me.menuTheme})
        Me.MainMenu.Location = New System.Drawing.Point(0, 0)
        Me.MainMenu.Name = "MainMenu"
        '
        '
        '
        Me.MainMenu.RootElement.AccessibleDescription = Nothing
        Me.MainMenu.RootElement.AccessibleName = Nothing
        Me.MainMenu.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft
        Me.MainMenu.RootElement.AngleTransform = 0.0!
        Me.MainMenu.RootElement.FlipText = False
        Me.MainMenu.RootElement.Margin = New System.Windows.Forms.Padding(0)
        Me.MainMenu.RootElement.Padding = New System.Windows.Forms.Padding(0)
        Me.MainMenu.RootElement.Text = Nothing
        Me.MainMenu.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal
        Me.MainMenu.Size = New System.Drawing.Size(752, 38)
        Me.MainMenu.TabIndex = 7
        '
        'menuFavorites
        '
        Me.menuFavorites.AccessibleDescription = "&Favorites"
        Me.menuFavorites.AccessibleName = "&Favorites"
        Me.menuFavorites.Alignment = System.Drawing.ContentAlignment.TopLeft
        Me.menuFavorites.AngleTransform = 0.0!
        Me.menuFavorites.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren
        Me.menuFavorites.Class = ""
        Me.menuFavorites.FlipText = False
        Me.menuFavorites.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.menuFavorites.ForeColor = System.Drawing.SystemColors.ControlText
        Me.menuFavorites.Image = Nothing
        Me.menuFavorites.ImageIndex = -1
        Me.menuFavorites.ImageKey = ""
        Me.menuFavorites.Margin = New System.Windows.Forms.Padding(0)
        Me.menuFavorites.Name = "menuFavorites"
        Me.menuFavorites.Padding = New System.Windows.Forms.Padding(0)
        Me.menuFavorites.RightToLeft = False
        Me.menuFavorites.Tag = ""
        Me.menuFavorites.Text = "&Favorites"
        Me.menuFavorites.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter
        Me.menuFavorites.TextOrientation = System.Windows.Forms.Orientation.Horizontal
        Me.menuFavorites.Visibility = Telerik.WinControls.ElementVisibility.Visible
        '
        'menuCode
        '
        Me.menuCode.AccessibleDescription = "&Code"
        Me.menuCode.AccessibleName = "&Code"
        Me.menuCode.Alignment = System.Drawing.ContentAlignment.TopLeft
        Me.menuCode.AngleTransform = 0.0!
        Me.menuCode.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren
        Me.menuCode.Class = ""
        Me.menuCode.DescriptionFont = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.menuCode.FlipText = False
        Me.menuCode.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.menuCode.Image = Nothing
        Me.menuCode.ImageIndex = -1
        Me.menuCode.ImageKey = ""
        Me.menuCode.Margin = New System.Windows.Forms.Padding(0)
        Me.menuCode.Name = "menuCode"
        Me.menuCode.Padding = New System.Windows.Forms.Padding(0)
        Me.menuCode.RightToLeft = False
        Me.menuCode.ShowArrow = False
        Me.menuCode.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality
        Me.menuCode.Text = "&Code"
        Me.menuCode.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter
        Me.menuCode.TextOrientation = System.Windows.Forms.Orientation.Horizontal
        Me.menuCode.Visibility = Telerik.WinControls.ElementVisibility.Visible
        '
        'menuMaster
        '
        Me.menuMaster.AccessibleDescription = "&Master"
        Me.menuMaster.AccessibleName = "&Master"
        Me.menuMaster.Alignment = System.Drawing.ContentAlignment.TopLeft
        Me.menuMaster.AngleTransform = 0.0!
        Me.menuMaster.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren
        Me.menuMaster.Class = ""
        Me.menuMaster.DescriptionFont = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.menuMaster.FlipText = False
        Me.menuMaster.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.menuMaster.Image = Nothing
        Me.menuMaster.ImageIndex = -1
        Me.menuMaster.ImageKey = ""
        Me.menuMaster.Margin = New System.Windows.Forms.Padding(0)
        Me.menuMaster.Name = "menuMaster"
        Me.menuMaster.Padding = New System.Windows.Forms.Padding(0)
        Me.menuMaster.RightToLeft = False
        Me.menuMaster.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality
        Me.menuMaster.Text = "&Master"
        Me.menuMaster.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter
        Me.menuMaster.TextOrientation = System.Windows.Forms.Orientation.Horizontal
        Me.menuMaster.Visibility = Telerik.WinControls.ElementVisibility.Visible
        '
        'menuPrice
        '
        Me.menuPrice.AccessibleDescription = "&Price && Promotion"
        Me.menuPrice.AccessibleName = "&Price && Promotion"
        Me.menuPrice.Alignment = System.Drawing.ContentAlignment.TopLeft
        Me.menuPrice.AngleTransform = 0.0!
        Me.menuPrice.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren
        Me.menuPrice.Class = ""
        Me.menuPrice.DescriptionFont = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.menuPrice.FlipText = False
        Me.menuPrice.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.menuPrice.Image = Nothing
        Me.menuPrice.ImageIndex = -1
        Me.menuPrice.ImageKey = ""
        Me.menuPrice.Margin = New System.Windows.Forms.Padding(0)
        Me.menuPrice.Name = "menuPrice"
        Me.menuPrice.Padding = New System.Windows.Forms.Padding(0)
        Me.menuPrice.RightToLeft = False
        Me.menuPrice.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality
        Me.menuPrice.Text = "&Price && Promotion"
        Me.menuPrice.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter
        Me.menuPrice.TextOrientation = System.Windows.Forms.Orientation.Horizontal
        Me.menuPrice.Visibility = Telerik.WinControls.ElementVisibility.Collapsed
        '
        'menuPO
        '
        Me.menuPO.AccessibleDescription = "&Purchase Order"
        Me.menuPO.AccessibleName = "&Purchase Order"
        Me.menuPO.Alignment = System.Drawing.ContentAlignment.TopLeft
        Me.menuPO.AngleTransform = 0.0!
        Me.menuPO.Class = ""
        Me.menuPO.DescriptionFont = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.menuPO.FlipText = False
        Me.menuPO.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.menuPO.Image = Nothing
        Me.menuPO.ImageIndex = -1
        Me.menuPO.ImageKey = ""
        Me.menuPO.Margin = New System.Windows.Forms.Padding(0)
        Me.menuPO.Name = "menuPO"
        Me.menuPO.Padding = New System.Windows.Forms.Padding(0)
        Me.menuPO.RightToLeft = False
        Me.menuPO.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality
        Me.menuPO.Text = "&Purchase Order"
        Me.menuPO.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter
        Me.menuPO.TextOrientation = System.Windows.Forms.Orientation.Horizontal
        Me.menuPO.Visibility = Telerik.WinControls.ElementVisibility.Collapsed
        '
        'menuSO
        '
        Me.menuSO.AccessibleDescription = "&Sales Order"
        Me.menuSO.AccessibleName = "&Sales Order"
        Me.menuSO.Alignment = System.Drawing.ContentAlignment.TopLeft
        Me.menuSO.AngleTransform = 0.0!
        Me.menuSO.Class = ""
        Me.menuSO.DescriptionFont = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.menuSO.FlipText = False
        Me.menuSO.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.menuSO.Image = Nothing
        Me.menuSO.ImageIndex = -1
        Me.menuSO.ImageKey = ""
        Me.menuSO.Margin = New System.Windows.Forms.Padding(0)
        Me.menuSO.Name = "menuSO"
        Me.menuSO.Padding = New System.Windows.Forms.Padding(0)
        Me.menuSO.RightToLeft = False
        Me.menuSO.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality
        Me.menuSO.Text = "&Sales Order"
        Me.menuSO.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter
        Me.menuSO.TextOrientation = System.Windows.Forms.Orientation.Horizontal
        Me.menuSO.Visibility = Telerik.WinControls.ElementVisibility.Collapsed
        '
        'menuInventory
        '
        Me.menuInventory.AccessibleDescription = "&Inventory"
        Me.menuInventory.AccessibleName = "&Inventory"
        Me.menuInventory.Alignment = System.Drawing.ContentAlignment.TopLeft
        Me.menuInventory.AngleTransform = 0.0!
        Me.menuInventory.Class = ""
        Me.menuInventory.DescriptionFont = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.menuInventory.FlipText = False
        Me.menuInventory.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.menuInventory.Image = Nothing
        Me.menuInventory.ImageIndex = -1
        Me.menuInventory.ImageKey = ""
        Me.menuInventory.Margin = New System.Windows.Forms.Padding(0)
        Me.menuInventory.Name = "menuInventory"
        Me.menuInventory.Padding = New System.Windows.Forms.Padding(0)
        Me.menuInventory.RightToLeft = False
        Me.menuInventory.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality
        Me.menuInventory.Text = "&Inventory"
        Me.menuInventory.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter
        Me.menuInventory.TextOrientation = System.Windows.Forms.Orientation.Horizontal
        Me.menuInventory.Visibility = Telerik.WinControls.ElementVisibility.Collapsed
        '
        'menuInvoice
        '
        Me.menuInvoice.AccessibleDescription = "&Invoice"
        Me.menuInvoice.AccessibleName = "&Invoice"
        Me.menuInvoice.Alignment = System.Drawing.ContentAlignment.TopLeft
        Me.menuInvoice.AngleTransform = 0.0!
        Me.menuInvoice.Class = ""
        Me.menuInvoice.DescriptionFont = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.menuInvoice.FlipText = False
        Me.menuInvoice.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.menuInvoice.Image = Nothing
        Me.menuInvoice.ImageIndex = -1
        Me.menuInvoice.ImageKey = ""
        Me.menuInvoice.Margin = New System.Windows.Forms.Padding(0)
        Me.menuInvoice.Name = "menuInvoice"
        Me.menuInvoice.Padding = New System.Windows.Forms.Padding(0)
        Me.menuInvoice.RightToLeft = False
        Me.menuInvoice.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality
        Me.menuInvoice.Text = "&Invoice"
        Me.menuInvoice.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter
        Me.menuInvoice.TextOrientation = System.Windows.Forms.Orientation.Horizontal
        Me.menuInvoice.Visibility = Telerik.WinControls.ElementVisibility.Collapsed
        '
        'menuEnquiry
        '
        Me.menuEnquiry.AccessibleDescription = "&Enquiry"
        Me.menuEnquiry.AccessibleName = "&Enquiry"
        Me.menuEnquiry.Alignment = System.Drawing.ContentAlignment.TopLeft
        Me.menuEnquiry.AngleTransform = 0.0!
        Me.menuEnquiry.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren
        Me.menuEnquiry.Class = ""
        Me.menuEnquiry.DescriptionFont = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.menuEnquiry.FlipText = False
        Me.menuEnquiry.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.menuEnquiry.Image = Nothing
        Me.menuEnquiry.ImageIndex = -1
        Me.menuEnquiry.ImageKey = ""
        Me.menuEnquiry.Margin = New System.Windows.Forms.Padding(0)
        Me.menuEnquiry.Name = "menuEnquiry"
        Me.menuEnquiry.Padding = New System.Windows.Forms.Padding(0)
        Me.menuEnquiry.RightToLeft = False
        Me.menuEnquiry.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality
        Me.menuEnquiry.Text = "&Enquiry"
        Me.menuEnquiry.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter
        Me.menuEnquiry.TextOrientation = System.Windows.Forms.Orientation.Horizontal
        Me.menuEnquiry.Visibility = Telerik.WinControls.ElementVisibility.Collapsed
        '
        'menuAccount
        '
        Me.menuAccount.AccessibleDescription = "Account"
        Me.menuAccount.AccessibleName = "Account"
        Me.menuAccount.Alignment = System.Drawing.ContentAlignment.TopLeft
        Me.menuAccount.AngleTransform = 0.0!
        Me.menuAccount.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren
        Me.menuAccount.Class = ""
        Me.menuAccount.DescriptionFont = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.menuAccount.FlipText = False
        Me.menuAccount.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.menuAccount.Image = Nothing
        Me.menuAccount.ImageIndex = -1
        Me.menuAccount.ImageKey = ""
        Me.menuAccount.Margin = New System.Windows.Forms.Padding(0)
        Me.menuAccount.MaxSize = New System.Drawing.Size(0, 0)
        Me.menuAccount.Name = "menuAccount"
        Me.menuAccount.Padding = New System.Windows.Forms.Padding(0)
        Me.menuAccount.RightToLeft = False
        Me.menuAccount.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality
        Me.menuAccount.Text = "Account"
        Me.menuAccount.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter
        Me.menuAccount.TextOrientation = System.Windows.Forms.Orientation.Horizontal
        Me.menuAccount.Visibility = Telerik.WinControls.ElementVisibility.Collapsed
        '
        'menuMobile
        '
        Me.menuMobile.Alignment = System.Drawing.ContentAlignment.TopLeft
        Me.menuMobile.AngleTransform = 0.0!
        Me.menuMobile.Class = ""
        Me.menuMobile.FlipText = False
        Me.menuMobile.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.menuMobile.Image = Nothing
        Me.menuMobile.ImageIndex = -1
        Me.menuMobile.ImageKey = ""
        Me.menuMobile.Margin = New System.Windows.Forms.Padding(0)
        Me.menuMobile.Name = "menuMobile"
        Me.menuMobile.Padding = New System.Windows.Forms.Padding(0)
        Me.menuMobile.RightToLeft = False
        Me.menuMobile.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality
        Me.menuMobile.Text = ""
        Me.menuMobile.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter
        Me.menuMobile.TextOrientation = System.Windows.Forms.Orientation.Horizontal
        Me.menuMobile.Visibility = Telerik.WinControls.ElementVisibility.Collapsed
        '
        'menuWindow
        '
        Me.menuWindow.AccessibleDescription = "Windows"
        Me.menuWindow.AccessibleName = "Windows"
        Me.menuWindow.Alignment = System.Drawing.ContentAlignment.TopLeft
        Me.menuWindow.AngleTransform = 0.0!
        Me.menuWindow.Class = ""
        Me.menuWindow.FitToSizeMode = Telerik.WinControls.RadFitToSizeMode.FitToParentContent
        Me.menuWindow.FlipText = False
        Me.menuWindow.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.menuWindow.Image = Nothing
        Me.menuWindow.ImageIndex = -1
        Me.menuWindow.ImageKey = ""
        Me.menuWindow.Margin = New System.Windows.Forms.Padding(0)
        Me.menuWindow.MdiList = True
        Me.menuWindow.Name = "menuWindow"
        Me.menuWindow.Padding = New System.Windows.Forms.Padding(0)
        Me.menuWindow.RightToLeft = False
        Me.menuWindow.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality
        Me.menuWindow.Tag = "視窗"
        Me.menuWindow.Text = "Windows"
        Me.menuWindow.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter
        Me.menuWindow.TextOrientation = System.Windows.Forms.Orientation.Horizontal
        Me.menuWindow.Visibility = Telerik.WinControls.ElementVisibility.Visible
        '
        'menuHelp
        '
        Me.menuHelp.AccessibleDescription = "&Help"
        Me.menuHelp.AccessibleName = "&Help"
        Me.menuHelp.Alignment = System.Drawing.ContentAlignment.TopLeft
        Me.menuHelp.AngleTransform = 0.0!
        Me.menuHelp.Class = ""
        Me.menuHelp.FlipText = False
        Me.menuHelp.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.menuHelp.Image = Nothing
        Me.menuHelp.ImageIndex = -1
        Me.menuHelp.ImageKey = ""
        Me.menuHelp.Margin = New System.Windows.Forms.Padding(0)
        Me.menuHelp.Name = "menuHelp"
        Me.menuHelp.Padding = New System.Windows.Forms.Padding(0)
        Me.menuHelp.RightToLeft = False
        Me.menuHelp.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality
        Me.menuHelp.Text = "&Help"
        Me.menuHelp.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter
        Me.menuHelp.TextOrientation = System.Windows.Forms.Orientation.Horizontal
        Me.menuHelp.Visibility = Telerik.WinControls.ElementVisibility.Hidden
        '
        'menuTheme
        '
        Me.menuTheme.AccessibleDescription = "Theme"
        Me.menuTheme.AccessibleName = "Theme"
        Me.menuTheme.Alignment = System.Drawing.ContentAlignment.TopLeft
        Me.menuTheme.AngleTransform = 0.0!
        Me.menuTheme.Class = ""
        Me.menuTheme.Enabled = False
        Me.menuTheme.FlipText = False
        Me.menuTheme.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.menuTheme.Image = Nothing
        Me.menuTheme.ImageIndex = -1
        Me.menuTheme.ImageKey = ""
        Me.menuTheme.Margin = New System.Windows.Forms.Padding(0)
        Me.menuTheme.Name = "menuTheme"
        Me.menuTheme.Padding = New System.Windows.Forms.Padding(0)
        Me.menuTheme.RightToLeft = False
        Me.menuTheme.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality
        Me.menuTheme.Text = "Theme"
        Me.menuTheme.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter
        Me.menuTheme.TextOrientation = System.Windows.Forms.Orientation.Horizontal
        Me.menuTheme.Visibility = Telerik.WinControls.ElementVisibility.Hidden
        '
        'Form1
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(752, 338)
        Me.Controls.Add(Me.MainMenu)
        Me.IsMdiContainer = True
        Me.Name = "Form1"
        Me.Text = "Form1"
        CType(Me.MainMenu, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)
        Me.PerformLayout()
 
    End Sub
    Friend WithEvents RadContextMenuManager1 As Telerik.WinControls.UI.RadContextMenuManager
    Friend WithEvents MainMenu As Telerik.WinControls.UI.RadMenu
    Friend WithEvents menuFavorites As Telerik.WinControls.UI.RadMenuItem
    Friend WithEvents menuCode As Telerik.WinControls.UI.RadMenuItem
    Friend WithEvents menuMaster As Telerik.WinControls.UI.RadMenuItem
    Friend WithEvents menuPrice As Telerik.WinControls.UI.RadMenuItem
    Friend WithEvents menuPO As Telerik.WinControls.UI.RadMenuItem
    Friend WithEvents menuSO As Telerik.WinControls.UI.RadMenuItem
    Friend WithEvents menuInventory As Telerik.WinControls.UI.RadMenuItem
    Friend WithEvents menuInvoice As Telerik.WinControls.UI.RadMenuItem
    Friend WithEvents menuEnquiry As Telerik.WinControls.UI.RadMenuItem
    Friend WithEvents menuAccount As Telerik.WinControls.UI.RadMenuItem
    Friend WithEvents menuMobile As Telerik.WinControls.UI.RadMenuItem
    Friend WithEvents menuWindow As Telerik.WinControls.UI.RadMenuItem
    Friend WithEvents menuHelp As Telerik.WinControls.UI.RadMenuItem
    Friend WithEvents menuTheme As Telerik.WinControls.UI.RadMenuItem
 
End Class


vb code:
Public Class Form1
    Private WithEvents frmRad As RadForm1
    Private WithEvents frmForm As Form2
 
    Private Sub menuCode_Click(sender As System.Object, e As System.EventArgs) Handles menuCode.Click
        frmRad = New RadForm1
        frmRad.Show()
    End Sub
 
    Private Sub menuMaster_Click(sender As System.Object, e As System.EventArgs) Handles menuMaster.Click
        frmForm = New Form2
        frmForm.Show()
    End Sub
 
    Private Sub frmForm_FormClosed(sender As Object, e As System.Windows.Forms.FormClosedEventArgs) Handles frmForm.FormClosed
        frmForm = Nothing
    End Sub
 
    Private Sub frmRad_FormClosed(sender As Object, e As System.Windows.Forms.FormClosedEventArgs) Handles frmRad.FormClosed
        frmRad = Nothing
    End Sub
End Class


RadForm:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class RadForm1
    Inherits Telerik.WinControls.UI.RadForm
 
    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub
 
    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer
 
    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer. 
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.RadGridView1 = New Telerik.WinControls.UI.RadGridView()
        CType(Me.RadGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'RadGridView1
        '
        Me.RadGridView1.Location = New System.Drawing.Point(32, 23)
        Me.RadGridView1.Name = "RadGridView1"
        Me.RadGridView1.Size = New System.Drawing.Size(240, 150)
        Me.RadGridView1.TabIndex = 1
        Me.RadGridView1.Text = "RadGridView1"
        '
        'RadForm1
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(308, 292)
        Me.Controls.Add(Me.RadGridView1)
        Me.Name = "RadForm1"
        '
        '
        '
        Me.RootElement.ApplyShapeToControl = True
        Me.Text = "RadForm1"
        CType(Me.RadGridView1, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)
 
    End Sub
    Friend WithEvents RadGridView1 As Telerik.WinControls.UI.RadGridView
End Class

Window Form with RadGridView:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form2
    Inherits System.Windows.Forms.Form
 
    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub
 
    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer
 
    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer. 
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.RadGridView1 = New Telerik.WinControls.UI.RadGridView()
        CType(Me.RadGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'RadGridView1
        '
        Me.RadGridView1.Location = New System.Drawing.Point(12, 12)
        Me.RadGridView1.Name = "RadGridView1"
        Me.RadGridView1.Size = New System.Drawing.Size(240, 150)
        Me.RadGridView1.TabIndex = 0
        Me.RadGridView1.Text = "RadGridView1"
        '
        'Form2
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(284, 262)
        Me.Controls.Add(Me.RadGridView1)
        Me.Name = "Form2"
        Me.Text = "Form2"
        CType(Me.RadGridView1, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)
 
    End Sub
    Friend WithEvents RadGridView1 As Telerik.WinControls.UI.RadGridView
End Class

Best Regards,
Emily
Peter
Telerik team
 answered on 18 Jan 2012
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?