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

Resolved in .NET 2.0

Thread ID:




44215 May 17,2006 09:31 AM UTC General Discussion 0
Tags: General Discussion
Krijn Michiels
Asked On May 17, 2006 09:31 AM UTC

The problem is solved when using .NET 2.0. Following code shows the error (.NET 1.1) and the solution (.NET 2.0) : Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load AddHandler Application.ThreadException, AddressOf OnThreadException Dim ds As New DataSet ds.Tables.Add("Customers") ds.Tables("Customers").Columns.Add("ID", GetType(Int32)) ds.Tables("Customers").Columns.Add("Name", GetType(String)) ds.Tables("Customers").Rows.Add(New Object() {1, "John"}) ds.Tables("Customers").Rows.Add(New Object() {2, "Jeff"}) Me.GridDataBoundGrid1.DataSource = ds Me.GridDataBoundGrid1.DataMember = "Customers" End Sub Private Sub GridDataBoundGrid1_CellDoubleClick(ByVal sender As Object, ByVal e As Syncfusion.Windows.Forms.Grid.GridCellClickEventArgs) Handles GridDataBoundGrid1.CellDoubleClick Throw New ApplicationException("Hi, this is an error.") End Sub Private Sub OnThreadException(ByVal sender As Object, ByVal e As System.Threading.ThreadExceptionEventArgs) MessageBox.Show(e.Exception.Message) End Sub


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

or the page will be automatically redirected to 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