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.
Unfortunately, activation email could not send to your email. Please try again.

Resolved in .NET 2.0

Thread ID:

Created:

Platform:

Replies:

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

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

CONFIRMATION

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.

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.

;