2 Replies - 385 Views - Last Post: 04 February 2013 - 07:20 AM Rate Topic: -----

#1 namek0e2  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 15-January 13

Try Catch Question

Posted 16 January 2013 - 01:18 AM

Good day

how can i put the try catch statement in a single variable?

 Try
            msg = Encoding.ASCII.GetBytes("Mlock")
            handler.Send(msg)
        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try




thanks.
Is This A Good Question/Topic? 0
  • +

Replies To: Try Catch Question

#2 lar3ry  Icon User is offline

  • Coding Geezer
  • member icon

Reputation: 310
  • View blog
  • Posts: 1,290
  • Joined: 12-September 12

Re: Try Catch Question

Posted 16 January 2013 - 06:53 AM

View Postnamek0e2, on 16 January 2013 - 02:18 AM, said:

how can i put the try catch statement in a single variable?

Is "variable" the word you really mean?

Try/Catch/End Try is not a value. It's a block of code.

Perhaps if you tell us what you are trying to accomplish, we could figure out what you mean.
Was This Post Helpful? 0
  • +
  • -

#3 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5509
  • View blog
  • Posts: 11,814
  • Joined: 02-June 10

Re: Try Catch Question

Posted 04 February 2013 - 07:20 AM

Judging by his only other thread - its probably to create this piece of spyware chat program that takes timed screenshots of the client monitors.
http://www.dreaminco...4&#entry1796454
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1