Click here to Skip to main content
15,907,328 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Runing a embeded exe Pin
Bob Beaubien28-Sep-09 3:58
Bob Beaubien28-Sep-09 3:58 
GeneralRe: Runing a embeded exe Pin
N a v a n e e t h28-Sep-09 5:32
N a v a n e e t h28-Sep-09 5:32 
GeneralRe: Runing a embeded exe Pin
Bob Beaubien28-Sep-09 6:20
Bob Beaubien28-Sep-09 6:20 
GeneralRe: Runing a embeded exe Pin
Bob Beaubien28-Sep-09 6:25
Bob Beaubien28-Sep-09 6:25 
GeneralRe: Runing a embeded exe Pin
Dave Kreskowiak28-Sep-09 6:38
mveDave Kreskowiak28-Sep-09 6:38 
GeneralRe: Runing a embeded exe Pin
Bob Beaubien28-Sep-09 6:47
Bob Beaubien28-Sep-09 6:47 
GeneralRe: Runing a embeded exe Pin
N a v a n e e t h28-Sep-09 7:05
N a v a n e e t h28-Sep-09 7:05 
GeneralRe: Runing a embeded exe Pin
Bob Beaubien28-Sep-09 7:46
Bob Beaubien28-Sep-09 7:46 
ok I got it now i hade all of them inported but for some reson i delete the y in assembaly and put it back and then it was fine humm

i put that code in a button can i do that like this
I tryed it but it dont work
and for file name you hade put "YourNamespace.ExecutableName.exe"
what do i put for name space ??

Thanks agine your all your help and pations

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim currentAssembly As Assembly = Assembly.GetExecutingAssembly()
        Dim resourceFullName As String = "keyboard.exe"
        Dim filePath As String = Path.Combine(Path.GetTempPath(), resourceFullName)
        Using stream As Stream = currentAssembly.GetManifestResourceStream(resourceFullName)
            If Not stream Is Nothing Then
                Using file As New FileStream(filePath, FileMode.Create)

                    Dim buffer As Byte() = New Byte(1024) {}
                    Dim read As Integer = stream.Read(buffer, 0, buffer.Length)
                    Do While (read > 0)
                        file.Write(buffer, 0, read)
                        read = stream.Read(buffer, 0, buffer.Length)
                    Loop
                End Using
            End If
        End Using
        If File.Exists(filePath) Then Process.Start(filePath)
    End Sub

GeneralRe: Runing a embeded exe Pin
Dave Kreskowiak28-Sep-09 8:05
mveDave Kreskowiak28-Sep-09 8:05 
GeneralRe: Runing a embeded exe Pin
Bob Beaubien28-Sep-09 8:07
Bob Beaubien28-Sep-09 8:07 
QuestionChangeDisplaySettingsEx & EnumDisplaySettingsEx Pin
lbitben27-Sep-09 1:39
lbitben27-Sep-09 1:39 
AnswerRe: ChangeDisplaySettingsEx & EnumDisplaySettingsEx Pin
Luc Pattyn27-Sep-09 7:25
sitebuilderLuc Pattyn27-Sep-09 7:25 
GeneralRe: ChangeDisplaySettingsEx & EnumDisplaySettingsEx Pin
lbitben27-Sep-09 11:52
lbitben27-Sep-09 11:52 
AnswerRe: ChangeDisplaySettingsEx & EnumDisplaySettingsEx Pin
Dave Kreskowiak27-Sep-09 9:34
mveDave Kreskowiak27-Sep-09 9:34 
GeneralRe: ChangeDisplaySettingsEx & EnumDisplaySettingsEx Pin
lbitben27-Sep-09 11:55
lbitben27-Sep-09 11:55 
GeneralRe: ChangeDisplaySettingsEx & EnumDisplaySettingsEx Pin
Dave Kreskowiak27-Sep-09 15:12
mveDave Kreskowiak27-Sep-09 15:12 
GeneralRe: ChangeDisplaySettingsEx & EnumDisplaySettingsEx Pin
lbitben27-Sep-09 15:45
lbitben27-Sep-09 15:45 
GeneralRe: ChangeDisplaySettingsEx & EnumDisplaySettingsEx Pin
Dave Kreskowiak27-Sep-09 18:06
mveDave Kreskowiak27-Sep-09 18:06 
GeneralRe: ChangeDisplaySettingsEx & EnumDisplaySettingsEx Pin
lbitben28-Sep-09 3:52
lbitben28-Sep-09 3:52 
GeneralRe: ChangeDisplaySettingsEx & EnumDisplaySettingsEx Pin
Dave Kreskowiak28-Sep-09 4:56
mveDave Kreskowiak28-Sep-09 4:56 
QuestionRemaining Text Does Not appear to be a part of the Formula Pin
nowords4u27-Sep-09 1:24
nowords4u27-Sep-09 1:24 
AnswerRe: Remaining Text Does Not appear to be a part of the Formula Pin
Eddy Vluggen27-Sep-09 12:09
professionalEddy Vluggen27-Sep-09 12:09 
GeneralRe: Remaining Text Does Not appear to be a part of the Formula Pin
nowords4u27-Sep-09 19:11
nowords4u27-Sep-09 19:11 
GeneralRe: Remaining Text Does Not appear to be a part of the Formula Pin
nowords4u27-Sep-09 19:15
nowords4u27-Sep-09 19:15 
GeneralRe: Remaining Text Does Not appear to be a part of the Formula Pin
Eddy Vluggen27-Sep-09 21:02
professionalEddy Vluggen27-Sep-09 21:02 

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.