Click here to Skip to main content
16,018,318 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: XML -> VB.NET -> SQL Pin
Ziaous4-May-07 7:52
Ziaous4-May-07 7:52 
AnswerRe: XML -> VB.NET -> SQL Pin
andyharman4-May-07 7:48
professionalandyharman4-May-07 7:48 
GeneralRe: XML -> VB.NET -> SQL Pin
Ziaous4-May-07 9:08
Ziaous4-May-07 9:08 
QuestionAdd menu items to the context menu Pin
chakor1234-May-07 5:15
chakor1234-May-07 5:15 
AnswerRe: Add menu items to the context menu Pin
Dave Kreskowiak4-May-07 6:40
mveDave Kreskowiak4-May-07 6:40 
QuestionVista and a .NET application on a shared network Pin
EMSDeveloper4-May-07 4:20
EMSDeveloper4-May-07 4:20 
AnswerRe: Vista and a .NET application on a shared network Pin
Dave Kreskowiak4-May-07 4:54
mveDave Kreskowiak4-May-07 4:54 
QuestionRe: Vista and a .NET application on a shared network Pin
EMSDeveloper4-May-07 5:46
EMSDeveloper4-May-07 5:46 
Thanks for the reply. I'll check my code to make sure the ThreadException is working.

However, I changed my code to this below and I still get the error:

Imports System.Threading

Public Class Main
Public Shared Sub Main()
Dim eh As New CustomExceptionHandler
AddHandler Application.ThreadException, AddressOf eh.OnThreadException 'If you remove this line the app will run on Vista
End Sub

Private Class CustomExceptionHandler 'To Handle Application.ThreadExceptions
Public Sub OnThreadException(ByVal sender As Object, ByVal t As ThreadExceptionEventArgs)
ErrorHandler(t.Exception)
End Sub
End Class

Public Shared Sub ErrorHandler(ByVal ex As Exception)
'Error Handler code here
End Sub
End Class

This doesn't even open a form and it's crashing on Vista.

Any ideas?
AnswerRe: Vista and a .NET application on a shared network Pin
Dave Kreskowiak4-May-07 6:34
mveDave Kreskowiak4-May-07 6:34 
QuestionSystems Collections Generic Pin
tonysmithbrewster4-May-07 3:31
tonysmithbrewster4-May-07 3:31 
AnswerRe: Systems Collections Generic Pin
Tarakeshwar Reddy4-May-07 4:03
professionalTarakeshwar Reddy4-May-07 4:03 
AnswerRe: Systems Collections Generic Pin
Dave Kreskowiak4-May-07 4:35
mveDave Kreskowiak4-May-07 4:35 
QuestionHow to Send and receive XML packets??? Pin
shahid_isb854-May-07 2:38
shahid_isb854-May-07 2:38 
AnswerRe: How to Send and receive XML packets??? Pin
Dave Kreskowiak4-May-07 4:30
mveDave Kreskowiak4-May-07 4:30 
QuestionHow to program an application to terminate automatically? Pin
virendra_0074-May-07 2:37
virendra_0074-May-07 2:37 
AnswerRe: How to program an application to terminate automatically? Pin
Arun.Immanuel4-May-07 2:49
Arun.Immanuel4-May-07 2:49 
AnswerRe: How to program an application to terminate automatically? Pin
Dave Kreskowiak4-May-07 4:24
mveDave Kreskowiak4-May-07 4:24 
Questionarray of bytes into an array of string Pin
Rohit Dev4-May-07 0:19
Rohit Dev4-May-07 0:19 
AnswerRe: array of bytes into an array of string Pin
Dave Kreskowiak4-May-07 4:17
mveDave Kreskowiak4-May-07 4:17 
QuestionConvertion of 2003 to 2005 errors Pin
Central_IT3-May-07 23:38
Central_IT3-May-07 23:38 
AnswerRe: Convertion of 2003 to 2005 errors Pin
Rupesh Kumar Swami4-May-07 0:08
Rupesh Kumar Swami4-May-07 0:08 
GeneralRe: Convertion of 2003 to 2005 errors Pin
Central_IT4-May-07 1:37
Central_IT4-May-07 1:37 
Questiondeploying the files Pin
taherjaorawala3-May-07 23:36
taherjaorawala3-May-07 23:36 
AnswerRe: deploying the files Pin
Dave Kreskowiak4-May-07 4:10
mveDave Kreskowiak4-May-07 4:10 
QuestionMethods Other than DTS to read large CSV file in VB 6.0 Pin
virendra_0073-May-07 23:15
virendra_0073-May-07 23:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.