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

Convert this little code to VB

1 Answer 69 Views
Code Converter
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
fausto usme
Top achievements
Rank 1
fausto usme asked on 12 Nov 2009, 04:09 PM
Hello People,

Somebody that can helpe to convert this code to vb.

 

public static readonly DependencyProperty ErrorsProperty =

 

 

DependencyProperty.RegisterAttached("Errors", typeof(IList<ValidationError>), typeof(ValidationScope), new PropertyMetadata(null, ErrorsChanged));

 

 

public static void ErrorsChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)

 

{

 

FrameworkElement element = (FrameworkElement)obj;

 

element.BindingValidationError +=

delegate(object sender, ValidationErrorEventArgs e)

 

{

 

if (e.Action == ValidationErrorEventAction.Added)

 

{

GetErrors(obj).Add(e.Error);

}

 

else

 

{

GetErrors(obj).Remove(e.Error);

}

};

}



Thanks a lot in advanced,

Fausto

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 12 Nov 2009, 04:29 PM
Hi fausto,

We ahve implemented a converter between C# and VB and it can be used online thorugh the following yrl:

http://www.codechanger.com/

Please, covert your code there and test it whether it works OK for you. I also recommend to bookmark the tool so that you will be able to use it when needed.

I hope that the provided information and resource are helpful, let us know if you have any questions or in case you need further assistance.


Kind regards,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Code Converter
Asked by
fausto usme
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or