We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Example VB code for EditControl throws an error

Thread ID:





117067 Aug 3,2014 11:27 PM UTC Aug 4,2014 01:42 PM UTC WinForms 1
Tags: EditControl
Phillip A. Lewis
Asked On August 3, 2014 11:27 PM UTC

The following VB code is copied from the EditControl online documentation regarding implementation of columnlines for windows forms:

' Enable Column Guides.

Me.editControl1.ShowColumnGuides = True


' Specify the color and the location of the Column Guides.

Dim columnGuideItem() As ColumnGuideItem = NewColumnGuideItem(2)

columnGuideItem(0) = New ColumnGuideItem(20, Color.Yellow)

columnGuideItem(1) = New ColumnGuideItem(40, Color.IndianRed)

Me.editControl1.ColumnGuideItems = columnGuideItem


' Font used to calculate the column location.

Me.editControl1.ColumnGuidesMeasuringFont = NewFont("Microsoft Sans Serif",12)

However, VS 2012 reports the following error:

Error 1 Value of type 'Syncfusion.Windows.Forms.Edit.Utils.ColumnGuideItem' cannot be converted to '1-dimensional array of Syncfusion.Windows.Forms.Edit.Utils.ColumnGuideItem'.

for the line
Dim columnGuideItem() As ColumnGuideItem = NewColumnGuideItem(2)

Can someone suggest a solution? Thanks.

Senthil Kumaran Rajan [Syncfusion]
Replied On August 4, 2014 01:42 PM UTC

Hi Phillip,


Thank you for using Syncfusion products,


We request you to make use of below code snippet to achieve this requirement. We have also prepared a sample for your reference it is attached below.


Code Snippet [vb]:

Dim columnGuideItem As ColumnGuideItem() = New ColumnGuideItem(1) {}


And we have alerted our documentation team to ensure as this VB code has been corrected in our user guide.


Please let us know if you need further assistance,



R.Senthil kumaran.

Attachment: WindowsApplication1_80c549cc.zip


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon