Click here to Skip to main content
15,890,690 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: how to display database records in list view Pin
akosidandan19-Mar-09 7:40
akosidandan19-Mar-09 7:40 
GeneralRe: how to display database records in list view Pin
dan!sh 19-Mar-09 7:43
professional dan!sh 19-Mar-09 7:43 
GeneralRe: how to display database records in list view Pin
akosidandan19-Mar-09 13:39
akosidandan19-Mar-09 13:39 
AnswerRe: how to display database records in list view Pin
Henry Minute19-Mar-09 7:59
Henry Minute19-Mar-09 7:59 
GeneralRe: how to display database records in list view Pin
tech60319-Mar-09 17:31
tech60319-Mar-09 17:31 
GeneralRe: how to display database records in list view Pin
Henry Minute19-Mar-09 23:41
Henry Minute19-Mar-09 23:41 
AnswerRe: how to display database records in list view Pin
Henry Minute19-Mar-09 23:39
Henry Minute19-Mar-09 23:39 
QuestionAccessing SNMP trap information using WMI Pin
vikramlinux19-Mar-09 4:44
vikramlinux19-Mar-09 4:44 
Hi All,
I am trying to retrieve the SNMP TRAP information using WMI calls like

 <br />
Try<br />
Dim connection As New ConnectionOptions()<br />
' connection.Username = "xxx"<br />
'connection.Password = "yyyy"<br />
'connection.Authority = "ntlmdomain:DOMAIN"<br />
Dim scope As New ManagementScope("\\localhost\root\snmp\localhost", connection)<br />
scope.Connect()<br />
Dim query As New WqlEventQuery("SELECT * FROM SnmpNotification")<br />
Dim watcher As New ManagementEventWatcher(scope, query)<br />
Console.WriteLine("Waiting for an event on FullComputerName ...")<br />
Dim eventObj As ManagementBaseObject = watcher.WaitForNextEvent()<br />
watcher.Start() <br />
Console.WriteLine("{0} event occurred.", eventObj("__CLASS"))<br />
console.WriteLine("{0} Community name---> .", eventObj("Community"))<br />
'Display information from the event<br />
Console.WriteLine("Process {0} has created, path is: ", eventObj("__PATH"))<br />
Console.WriteLine("Property count {0}", eventObj("__PROPERTY_COUNT"))<br />
Console.WriteLine("Relative path {0} ", eventObj("__RELPATH"))<br />
Console.WriteLine("Server {0} ", eventObj("__SERVER"))<br />
Console.WriteLine("SUPERCLASS {0} ", eventObj("__SUPERCLASS"))<br />
Console.WriteLine("AgentAddress {0} ", eventObj("AgentAddress"))<br />
Console.WriteLine("AgentTransportAddress {0} ", eventObj("AgentTransportAddress"))<br />
Console.WriteLine("AgentTransportProtocol {0} ", eventObj("AgentTransportProtocol"))<br />
Console.WriteLine("Identification {0} ", eventObj("Identification"))<br />
Console.WriteLine("TimeStamp {0} ", eventObj("TimeStamp"))<br />
Console.WriteLine("VarBindList {0} ", eventObj("VarBindList"))<br />
'Console.WriteLine("Enterprise {0} ", eventObj("Enterprise"))<br />
<br />
' Cancel the event subscription<br />
watcher.Stop()<br />
Close()<br />
Catch err As ManagementException<br />
MessageBox.Show("An error occurred while trying to receive an event: " & err.Message)<br />
Catch unauthorizedErr As System.UnauthorizedAccessException<br />
MessageBox.Show("Connection error (user name or password might be incorrect): " & unauthorizedErr.Message)<br />
End Try<br />
<br />


Output is like

SnmpV1Notification event occurred.
public Community name---> .
Process has created, path is:
Property count 9
Relative path
Server
SUPERCLASS SnmpNotification
AgentAddress 127.0.0.1
AgentTransportAddress 127.0.0.1
AgentTransportProtocol IP
Identification 1.3.6.1.4.1.393.200.50.66.0.2
TimeStamp 9


Here I am unable get to the text message inside the trap. Does anybody know how to retrieve it?
AnswerRe: Accessing SNMP trap information using WMI Pin
v-2rahna20-Mar-09 0:03
v-2rahna20-Mar-09 0:03 
QuestionI insert macromidia flash as shouckwave into vb.net ? please helppppp meeeeeeeeeeeee!!!!! Pin
ahlamissa19-Mar-09 4:42
ahlamissa19-Mar-09 4:42 
AnswerRe: I insert macromidia flash as shouckwave into vb.net ? please helppppp meeeeeeeeeeeee!!!!! Pin
dan!sh 19-Mar-09 6:02
professional dan!sh 19-Mar-09 6:02 
AnswerRe: I insert macromidia flash as shouckwave into vb.net ? please helppppp meeeeeeeeeeeee!!!!! Pin
Christian Graus19-Mar-09 13:00
protectorChristian Graus19-Mar-09 13:00 
AnswerRe: I insert macromidia flash as shouckwave into vb.net ? please helppppp meeeeeeeeeeeee!!!!! Pin
Smithers-Jones20-Mar-09 0:54
Smithers-Jones20-Mar-09 0:54 
QuestionI am very troubled for this Pin
againnaga19-Mar-09 1:24
againnaga19-Mar-09 1:24 
AnswerRe: I am very troubled for this Pin
Dave Kreskowiak19-Mar-09 4:13
mveDave Kreskowiak19-Mar-09 4:13 
QuestionDatatables, strings and the loss of Commas/decimals and spaces Pin
maddylein19-Mar-09 1:20
maddylein19-Mar-09 1:20 
AnswerRe: Datatables, strings and the loss of Commas/decimals and spaces Pin
Ashfield19-Mar-09 2:27
Ashfield19-Mar-09 2:27 
GeneralRe: Datatables, strings and the loss of Commas/decimals and spaces Pin
maddylein19-Mar-09 4:38
maddylein19-Mar-09 4:38 
QuestionOleDbDataAdapter behavior Pin
rmedo19-Mar-09 0:47
rmedo19-Mar-09 0:47 
AnswerRe: OleDbDataAdapter behavior Pin
Dave Kreskowiak19-Mar-09 4:08
mveDave Kreskowiak19-Mar-09 4:08 
QuestionDatagridview add/delete rows Pin
Christian Sachse19-Mar-09 0:38
Christian Sachse19-Mar-09 0:38 
AnswerRe: Datagridview add/delete rows Pin
Dave Kreskowiak19-Mar-09 4:03
mveDave Kreskowiak19-Mar-09 4:03 
GeneralRe: Datagridview add/delete rows Pin
Christian Sachse19-Mar-09 7:40
Christian Sachse19-Mar-09 7:40 
QuestionCopy file from another pc on network providing username and password [modified] Pin
Anoop Brijmohun18-Mar-09 23:26
Anoop Brijmohun18-Mar-09 23:26 
AnswerRe: Copy file from another pc on network providing username and password Pin
Dave Kreskowiak19-Mar-09 4:04
mveDave Kreskowiak19-Mar-09 4:04 

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.