Does anyone know how to handle errors? I want that, when errors happen such as the errors in datagrid, invalidcastexceptions or others, there should be some pop ups to show instead of the JIT dialog box. Please help me with this, this is the last part of my program (the execption handling)

Recommended Answers

All 7 Replies

Try
'your code here
        Catch ex As Exception
            MsgBox(ex.Message)

        End Try

Hello markdean.expres,

Try more exception handling events for better error handling in your program.

Thank You.

Hello markdean.expres,

Try more exception handling events for better error handling in your program.

Thank You.

Hi,

The only solution you receive here is the basic about exception handling, Please don't limit yourself here. Go google , make a deep research on one of the most interesting topic.

You can have a quick start here. ( really a nice one.)

Thanks guys you have been helping all through my coding life... Coding Life?


I'll just mark this thread solved

Thanks guys you have been helping all through my coding life... Coding Life?


I'll just mark this thread solved

to abhay1234, into which event will I insert your code?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.