This is a migrated thread and some comments may be shown as answers.

Winforms Q1 SP2 VB Examples

5 Answers 207 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Wolfshund
Top achievements
Rank 2
Wolfshund asked on 03 Aug 2007, 08:48 AM
I might be wrong, but it looks like that Telerik is a C# domain, whereas VB is some kind of a "add on" support! The reason, that causes me to think this, is, the included example C# sharp solution opens in VS2005 without any errors and runs perfectly, the VB solution shows up 207 warning and 70 errors after loading, mostly "method" or "member" errors, out of the box. A Rebuild solution fixes nothing (thought I could created the control classes).
Where is the difference? And is there a way to fix this?
Thanks.

Best regards,
Joerg

5 Answers, 1 is accepted

Sort by
0
Jordan
Telerik team
answered on 03 Aug 2007, 12:53 PM
Hi Floodguy,

Because the Telerik RadControls for WinForms are developed natively in C# it is possible that there are some inconsistencies between C# the VB examples. Please excuse us for any inconveniences caused.

You can find attached the examples with the errors fixed.
Thank you for your feedback.

Greetings,
Jordan
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
jason2k
Top achievements
Rank 1
answered on 11 Aug 2007, 02:59 PM
After I opened the new Examples in VS2005, I got numerous errors such as

"Indirect reference is being made to assembly Telerik.WinControls version 3.5.1.0, which contains 'Telerik.QuickStart.WinControls.ExamplesForm.SelectedControl'. This Project references a prior version of Telerik.WinControls version 3.5.0.0. To use 'Telerik.QuickStart.WinControls.ExamplesForm.SelectedControl', you must replace the reference to Telerik.WinControls with version 3.5.1.0 or higher.    C:\Program Files\Telerik\RadControls for WinForms Q1 2007\Examples\ComboBox\Binding\Form1.vb"
0
Jordan
Telerik team
answered on 13 Aug 2007, 08:41 AM
Hi Jason,

It seems you have used the two DLLs (v3.5.1) from the attached ZIP file in an application, which uses older versions of the DLLs (v3.5.0, i.e. Q1 SP2). To resolve these errors you must revert back to the older versions of the QuickStart.dll and RadControlSpy.dll assemblies in your application.

The attached ZIP contains our examples only. It should not be treated as a custom or updated build.

Let us know if you have other questions.
 

Best wishes,
Jordan
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
jason2k
Top achievements
Rank 1
answered on 13 Aug 2007, 11:54 AM
Hi again,

This time the new examples compiles and builds perfectly in VB 2005. However when the new examples are opened in C#, they don't compile anymore. I got 5 errors:

  1. The type name 'TreeViewMouseEventHandler' does not exist in the type 'Telerik.WinControls.UI.RadTreeView' C:\Program Files\Telerik\RadControls for WinForms Q1 2007\Examples\RadTreeView\ContextMenus\Form1.cs Line32 Column78
  2. Error 48 The type or namespace name 'ChildListType' could not be found (are you missing a using directive or an assembly reference?) C:\Program Files\Telerik\RadControls for WinForms Q1 2007\Examples\RadTreeView\OptionTree\Form1.cs Line23 Column56
  3. The type or namespace name 'ChildListType' could not be found (are you missing a using directive or an assembly reference?) C:\Program Files\Telerik\RadControls for WinForms Q1 2007\Examples\RadTreeView\OptionTree\Form1.cs Line23 Column12
  4. The best overloaded method match for 'System.Windows.Forms.ComboBox.ObjectCollection.Add(object)' has some invalid arguments C:\Program Files\Telerik\RadControls for WinForms Q1 2007\Examples\RadTreeView\OptionTree\Form1.cs Line25 Column5
  5. Error 51 Argument '1': cannot convert from 'ChildListType' to 'object' C:\Program Files\Telerik\RadControls for WinForms Q1 2007\Examples\RadTreeView\OptionTree\Form1.cs Line25 Column37

Is there something wrong that I have done which triggers these errors. I copied everything in the zip file except the bin folder and overwrite them into "C:\Program Files\Telerik\RadControls for WinForms Q1 2007\Examples"

0
Jordan
Telerik team
answered on 13 Aug 2007, 12:28 PM
Hi jason2k,

It seems that there is a misunderstanding. The examples attached in this thread are VB examples only and it is quite possible that the C# files will not work. Probably this is the reason why you get these errors.

Note that these VB examples are no different than the examples that come with the installation. They have nothing new, so there is no need to use them if you are not using VB.NET.

The C# examples that come with the installation compile and run perfectly. I would suggest using them instead. You can run them from the START menu --> Programs --> Telerik --> RadControls for WinForms --> C# Examples.
 

All the best,
Jordan
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Wolfshund
Top achievements
Rank 2
Answers by
Jordan
Telerik team
jason2k
Top achievements
Rank 1
Share this question
or