Click here to Skip to main content
16,006,531 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to connect a scanner Pin
EclipseOrg14-Sep-06 19:05
EclipseOrg14-Sep-06 19:05 
AnswerRe: How to connect a scanner Pin
Christian Graus14-Sep-06 19:24
protectorChristian Graus14-Sep-06 19:24 
GeneralRe: How to connect a scanner Pin
EclipseOrg14-Sep-06 19:29
EclipseOrg14-Sep-06 19:29 
QuestionHI Pin
manikandavadivel14-Sep-06 18:29
manikandavadivel14-Sep-06 18:29 
AnswerRe: HI Pin
Christian Graus14-Sep-06 19:26
protectorChristian Graus14-Sep-06 19:26 
QuestionHow to get the WMI property description?? Pin
ATRider14-Sep-06 9:17
ATRider14-Sep-06 9:17 
AnswerRe: How to get the WMI property description?? Pin
Dave Kreskowiak14-Sep-06 10:29
mveDave Kreskowiak14-Sep-06 10:29 
AnswerRe: How to get the WMI property description?? [modified] Pin
progload14-Sep-06 19:26
progload14-Sep-06 19:26 
If you are realy into a bit of work, you could generate your own managed class using mgmtclassgen.exe and just add your own custom property for it.

Read on... for instructions:

The following command generates a managed class from Win32_PerfRawData_SMTPSVC_SMTPServer

mgmtclassgen.exe Win32_PerfRawData_SMTPSVC_SMTPServer /n root\cimv2 /l VB /p c:\SMTPServer.vb

The tool writes the managed class to the source file at c:\SMTPServer.vb, using the ROOT.CIMV2.Win32 namespace.

Add the file to your project.

Add the following to SMTPServer.vb somewhere near "Public ReadOnly Property MessageBytesTotal()" (about line # 2509 in my file.):

<Browsable(True), _
DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), _
Description("Description of MessageBytesTotal.")> _
Public ReadOnly Property MessageBytesTotalDescription() As String
Get
Return "The total number of bytes sent and received in messages."
End Get
End Property

And/Or whatever you want the property(s) to be..
And/Or Your own overloads ect..
Have fun..


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrfmanagementstronglytypedclassgeneratormgmtclassgenexe.asp





-- modified at 1:47 Friday 15th September, 2006
QuestionSending PDF to printer Pin
johnjsm14-Sep-06 6:42
johnjsm14-Sep-06 6:42 
AnswerRe: Sending PDF to printer Pin
Dave Kreskowiak14-Sep-06 9:19
mveDave Kreskowiak14-Sep-06 9:19 
AnswerRe: Sending PDF to printer Pin
Stephen McGuire14-Sep-06 10:24
Stephen McGuire14-Sep-06 10:24 
AnswerRe: Sending PDF to printer Pin
Hamid_RT15-Sep-06 7:57
Hamid_RT15-Sep-06 7:57 
QuestionWhile Inserting Records Multiple times under Transaction Objects getting Error Message -Connection is busy with results for another command Pin
Nagarajan R.J14-Sep-06 4:29
Nagarajan R.J14-Sep-06 4:29 
AnswerRe: While Inserting Records Multiple times under Transaction Objects getting Error Message -Connection is busy with results for another command Pin
Dave Kreskowiak14-Sep-06 9:00
mveDave Kreskowiak14-Sep-06 9:00 
GeneralRe: While Inserting Records Multiple times under Transaction Objects getting Error Message -Connection is busy with results for another command Pin
Nagarajan R.J14-Sep-06 19:33
Nagarajan R.J14-Sep-06 19:33 
GeneralRe: While Inserting Records Multiple times under Transaction Objects getting Error Message -Connection is busy with results for another command Pin
Dave Kreskowiak15-Sep-06 3:26
mveDave Kreskowiak15-Sep-06 3:26 
QuestionPass data to a report Pin
dptalt14-Sep-06 4:04
dptalt14-Sep-06 4:04 
QuestionHow do I display a Domain Name and IP Address Pin
directred14-Sep-06 4:02
directred14-Sep-06 4:02 
AnswerRe: How do I display a Domain Name and IP Address Pin
Dave Kreskowiak14-Sep-06 8:58
mveDave Kreskowiak14-Sep-06 8:58 
QuestionHow to read each item from a dataset Pin
viji]14-Sep-06 2:46
viji]14-Sep-06 2:46 
AnswerRe: How to read each item from a dataset Pin
Dave Kreskowiak14-Sep-06 8:50
mveDave Kreskowiak14-Sep-06 8:50 
GeneralRe: How to read each item from a dataset Pin
viji]17-Sep-06 19:56
viji]17-Sep-06 19:56 
QuestionFAQs plz Pin
Naresh111514-Sep-06 1:17
Naresh111514-Sep-06 1:17 
AnswerRe: FAQs plz Pin
Dave Sexton14-Sep-06 4:51
Dave Sexton14-Sep-06 4:51 
AnswerRe: FAQs plz Pin
Christian Graus14-Sep-06 16:04
protectorChristian Graus14-Sep-06 16: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.