Click here to Skip to main content
15,913,467 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: textboxes and.txt files Pin
dan!sh 1-Nov-09 5:17
professional dan!sh 1-Nov-09 5:17 
GeneralRe: textboxes and.txt files Pin
offroaderdan1-Nov-09 6:11
offroaderdan1-Nov-09 6:11 
GeneralRe: textboxes and.txt files Pin
Dave Kreskowiak1-Nov-09 8:36
mveDave Kreskowiak1-Nov-09 8:36 
QuestionHow to dock the Ms-Word Document file Inside the Panel? [Office Automation] Pin
Paramu19731-Nov-09 3:25
Paramu19731-Nov-09 3:25 
AnswerRe: How to dock the Ms-Word Document file Inside the Panel? [Office Automation] Pin
DaveAuld1-Nov-09 3:57
professionalDaveAuld1-Nov-09 3:57 
GeneralRe: How to dock the Ms-Word Document file Inside the Panel? [Office Automation] Pin
Paramu19731-Nov-09 4:31
Paramu19731-Nov-09 4:31 
GeneralRe: How to dock the Ms-Word Document file Inside the Panel? [Office Automation] Pin
DaveAuld1-Nov-09 6:16
professionalDaveAuld1-Nov-09 6:16 
QuestionCommand prompt in vb.net need a tad bit more help Pin
offroaderdan1-Nov-09 2:29
offroaderdan1-Nov-09 2:29 
hello,

my last question was basically on the lines of how do i use the command prompt in vb.net to recieve information. I want to try and get the serial number of command prompt (wmic bios get serialnumber - in command prompt) this will then bring up a serial number Smile | :)

someone answered my question with a line of code that proably does work however ia m having trouble incorprating it to do what i want it to do. I want to copy the serial number fro the command prompt into a text box?

here is my code

Imports System.Management
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim SerialNumber As System.Management.ManagementClass
        Dim Win32_BIOS As System.Management.ManagementObjectSearcher

        Select Case SerialNumber FROM Win32_BIOS  ' surely FROM should be in blue???

        End Select
        textbox1.text = SerialNumber 'copys serial number from the Win32_bios into the txtdocument

    End Sub
End Class


i am a bit of a beginner/intermediate but it would really mean allot if i could get this working Smile | :)

many thanks
AnswerRe: Command prompt in vb.net need a tad bit more help Pin
Luc Pattyn1-Nov-09 2:52
sitebuilderLuc Pattyn1-Nov-09 2:52 
GeneralRe: Command prompt in vb.net need a tad bit more help Pin
offroaderdan1-Nov-09 3:38
offroaderdan1-Nov-09 3:38 
GeneralRe: Command prompt in vb.net need a tad bit more help Pin
Luc Pattyn1-Nov-09 3:42
sitebuilderLuc Pattyn1-Nov-09 3:42 
GeneralRe: Command prompt in vb.net need a tad bit more help Pin
offroaderdan1-Nov-09 3:58
offroaderdan1-Nov-09 3:58 
GeneralRe: Command prompt in vb.net need a tad bit more help Pin
Luc Pattyn1-Nov-09 4:02
sitebuilderLuc Pattyn1-Nov-09 4:02 
GeneralRe: Command prompt in vb.net need a tad bit more help Pin
offroaderdan1-Nov-09 4:09
offroaderdan1-Nov-09 4:09 
GeneralRe: Command prompt in vb.net need a tad bit more help Pin
Dave Kreskowiak1-Nov-09 8:33
mveDave Kreskowiak1-Nov-09 8:33 
GeneralRe: Command prompt in vb.net need a tad bit more help Pin
0x3c01-Nov-09 4:23
0x3c01-Nov-09 4:23 
GeneralRe: Command prompt in vb.net need a tad bit more help Pin
offroaderdan1-Nov-09 4:25
offroaderdan1-Nov-09 4:25 
QuestionDatagridview combined filter Pin
LuxCoder31-Oct-09 12:07
LuxCoder31-Oct-09 12:07 
QuestionUnbound Checkbox column in DataGridView Pin
LuxCoder31-Oct-09 11:55
LuxCoder31-Oct-09 11:55 
AnswerRe: Unbound Checkbox column in DataGridView Pin
Henry Minute31-Oct-09 12:17
Henry Minute31-Oct-09 12:17 
QuestionInserting values into DB Pin
LuxCoder31-Oct-09 11:44
LuxCoder31-Oct-09 11:44 
AnswerRe: Inserting values into DB Pin
Henry Minute31-Oct-09 12:05
Henry Minute31-Oct-09 12:05 
AnswerRe: Inserting values into DB Pin
Luc Pattyn31-Oct-09 12:06
sitebuilderLuc Pattyn31-Oct-09 12:06 
GeneralRe: Inserting values into DB Pin
LuxCoder31-Oct-09 12:11
LuxCoder31-Oct-09 12:11 
AnswerRe: Inserting values into DB Pin
Christian Graus31-Oct-09 12:08
protectorChristian Graus31-Oct-09 12:08 

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.