Click here to Skip to main content
15,887,683 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to Update and Retrieve data from MDB file on server? Pin
Vimalsoft(Pty) Ltd29-Jul-09 21:13
professionalVimalsoft(Pty) Ltd29-Jul-09 21:13 
AnswerRe: How to Update and Retrieve data from MDB file on server? [CROSS_POST - please ignore] Pin
Henry Minute30-Jul-09 5:20
Henry Minute30-Jul-09 5:20 
QuestionEnterprise library [modified] Pin
abcurl29-Jul-09 19:47
abcurl29-Jul-09 19:47 
AnswerRe: Enterprise library Pin
Mycroft Holmes29-Jul-09 21:32
professionalMycroft Holmes29-Jul-09 21:32 
QuestionRe: Enterprise library Pin
abcurl29-Jul-09 21:34
abcurl29-Jul-09 21:34 
AnswerRe: Enterprise library Pin
Johan Hakkesteegt29-Jul-09 22:04
Johan Hakkesteegt29-Jul-09 22:04 
GeneralRe: Enterprise library Pin
abcurl29-Jul-09 22:11
abcurl29-Jul-09 22:11 
GeneralRe: Enterprise library Pin
Johan Hakkesteegt29-Jul-09 22:19
Johan Hakkesteegt29-Jul-09 22:19 
Having no experience with Enterprise Library myself, I would guess something like:

Dim logEntry As LogEntry

Try

  'Your transaction takes place here

  LogEntry = New LogEntry()
  logEntry.EventId = 100
  logEntry.Priority = 2
  logEntry.Message = "Success or failure"
  logEntry.Categories.Add("Trace")
  logEntry.Categories.Add("UI Events")
  Logger.Write(logEntry)

  'Or

  LogEntry = New LogEntry()
  logEntry.EventId = 100
  logEntry.Priority = 2
  logEntry.Message = "Success"
  logEntry.Categories.Add("Trace")
  logEntry.Categories.Add("UI Events")
  Logger.Write(logEntry)

Catch ex As Exception

  LogEntry = New LogEntry()
  LogEntry = New LogEntry()
  logEntry.EventId = 100
  logEntry.Priority = 2
  logEntry.Message = "Error"
  logEntry.Categories.Add("Trace")
  logEntry.Categories.Add("UI Events")
  Logger.Write(logEntry)

Finally

  LogEntry = New LogEntry()
  logEntry.EventId = 100
  logEntry.Priority = 2
  logEntry.Message = "Anyway"
  logEntry.Categories.Add("Trace")
  logEntry.Categories.Add("UI Events")
  Logger.Write(logEntry)

End Try


My advice is free, and you may get what you paid for.

GeneralRe: Enterprise library Pin
abcurl29-Jul-09 23:55
abcurl29-Jul-09 23:55 
GeneralRe: Enterprise library Pin
Johan Hakkesteegt29-Jul-09 23:57
Johan Hakkesteegt29-Jul-09 23:57 
QuestionVisual Basic 6 Equivalent to VBA Pin
C#Coudou29-Jul-09 19:37
C#Coudou29-Jul-09 19:37 
AnswerRe: Visual Basic 6 Equivalent to VBA Pin
Moreno Airoldi29-Jul-09 23:07
Moreno Airoldi29-Jul-09 23:07 
GeneralRe: Visual Basic 6 Equivalent to VBA Pin
C#Coudou30-Jul-09 14:14
C#Coudou30-Jul-09 14:14 
GeneralRe: Visual Basic 6 Equivalent to VBA Pin
Moreno Airoldi30-Jul-09 23:26
Moreno Airoldi30-Jul-09 23:26 
Questionhow to restrict loading of one form without closing another form in vb6.0 Pin
Parag Raibagkar29-Jul-09 19:30
Parag Raibagkar29-Jul-09 19:30 
AnswerRe: how to restrict loading of one form without closing another form in vb6.0 Pin
Moreno Airoldi29-Jul-09 23:10
Moreno Airoldi29-Jul-09 23:10 
QuestionExcel and forms Pin
veon cheng29-Jul-09 18:00
veon cheng29-Jul-09 18:00 
AnswerRe: Excel and forms Pin
Johan Hakkesteegt29-Jul-09 21:54
Johan Hakkesteegt29-Jul-09 21:54 
GeneralRe: Excel and forms Pin
veon cheng29-Jul-09 22:34
veon cheng29-Jul-09 22:34 
GeneralRe: Excel and forms Pin
Johan Hakkesteegt29-Jul-09 22:39
Johan Hakkesteegt29-Jul-09 22:39 
GeneralRe: Excel and forms Pin
veon cheng29-Jul-09 22:53
veon cheng29-Jul-09 22:53 
GeneralRe: Excel and forms Pin
Johan Hakkesteegt29-Jul-09 23:17
Johan Hakkesteegt29-Jul-09 23:17 
QuestionObject/Structure References [modified] Pin
Ed Hill _5_29-Jul-09 4:54
Ed Hill _5_29-Jul-09 4:54 
AnswerRe: Object/Structure References Pin
Johan Hakkesteegt29-Jul-09 21:32
Johan Hakkesteegt29-Jul-09 21:32 
GeneralRe: Object/Structure References Pin
Ed Hill _5_30-Jul-09 2:11
Ed Hill _5_30-Jul-09 2:11 

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.