Click here to Skip to main content
15,892,269 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Printing - how to set a standard paper size?? Pin
BluesEnd2-Sep-09 20:46
BluesEnd2-Sep-09 20:46 
QuestionDAT file to text file or other readable format Pin
Thayhor2-Sep-09 7:58
Thayhor2-Sep-09 7:58 
AnswerRe: DAT file to text file or other readable format Pin
David Mujica2-Sep-09 8:17
David Mujica2-Sep-09 8:17 
AnswerRe: DAT file to text file or other readable format Pin
Dave Kreskowiak2-Sep-09 8:57
mveDave Kreskowiak2-Sep-09 8:57 
QuestionInserting from VB.NET to SQL Compact Pin
TheComputerMan2-Sep-09 2:12
TheComputerMan2-Sep-09 2:12 
AnswerRe: Inserting from VB.NET to SQL Compact Pin
The Man from U.N.C.L.E.2-Sep-09 2:29
The Man from U.N.C.L.E.2-Sep-09 2:29 
GeneralRe: Inserting from VB.NET to SQL Compact Pin
TheComputerMan2-Sep-09 22:07
TheComputerMan2-Sep-09 22:07 
QuestionProcess.Start problems Pin
AB_dev1-Sep-09 23:21
AB_dev1-Sep-09 23:21 
Hi,

i start my application as standard User and check for updates, if Updates were available then the application restarts with admin rights (process.start) this works fine!
Next I need to uninstall a software

StartInfo.Arguments = Arguments & ProductCode
     StartInfo.FileName = "msiexec.exe"
       StartInfo.UseShellExecute = True
       StartInfo.Verb = "runas"
       UninstallProcess.StartInfo = StartInfo
       UninstallProcess.Start()

       Dim res As Long = WaitForSingleObject(UninstallProcess.Handle, &H4E20)


when the function WaitForSingleObject calls the main process of the update software exit but the msiexec process finished correctly???

I also tried using --> instead of WaitForSingleObject

While UninstallProcess.WaitForExit(100)
  Application.DoEvents()
End While


and also tried using a Delegate Function which check if the Process has exited (UninstalledProcess.HasExited)

but nothing worked!!!

Issues with WaitForExit and Delegate Functions are on Vista x32 and Vista x64 systems, when I use WaitForSingleObject this works with Vista x64

On XP i have no problems with the WaitForExit function

Has anybody an idea how i get rid of this issue???
AnswerRe: Process.Start problems Pin
Dave Kreskowiak2-Sep-09 4:19
mveDave Kreskowiak2-Sep-09 4:19 
QuestionInsert with conditions by Parameters ? Pin
Paramu19731-Sep-09 23:02
Paramu19731-Sep-09 23:02 
AnswerRe: Insert with conditions by Parameters ? Pin
Johan Hakkesteegt1-Sep-09 23:29
Johan Hakkesteegt1-Sep-09 23:29 
AnswerRe: Insert with conditions by Parameters ? Pin
Eddy Vluggen2-Sep-09 0:58
professionalEddy Vluggen2-Sep-09 0:58 
Questionwhen Calling a C++ dll function in VBA, error happened! help! Pin
illfar1-Sep-09 22:00
illfar1-Sep-09 22:00 
AnswerRe: when Calling a C++ dll function in VBA, error happened! help! Pin
Dave Kreskowiak2-Sep-09 4:06
mveDave Kreskowiak2-Sep-09 4:06 
GeneralRe: when Calling a C++ dll function in VBA, error happened! help! Pin
illfar2-Sep-09 15:20
illfar2-Sep-09 15:20 
GeneralRe: when Calling a C++ dll function in VBA, error happened! help! Pin
illfar2-Sep-09 15:22
illfar2-Sep-09 15:22 
GeneralRe: when Calling a C++ dll function in VBA, error happened! help! Pin
Dave Kreskowiak2-Sep-09 18:00
mveDave Kreskowiak2-Sep-09 18:00 
AnswerRe: when Calling a C++ dll function in VBA, error happened! help! Pin
illfar2-Sep-09 19:40
illfar2-Sep-09 19:40 
Questionsir pleaseeeeeeeeeeeeeeeee help me Pin
rashid20091-Sep-09 21:23
rashid20091-Sep-09 21:23 
AnswerRe: sir pleaseeeeeeeeeeeeeeeee help me Pin
Christian Graus1-Sep-09 21:26
protectorChristian Graus1-Sep-09 21:26 
GeneralRe: sir pleaseeeeeeeeeeeeeeeee help me Pin
εїзεїзεїз1-Sep-09 22:40
εїзεїзεїз1-Sep-09 22:40 
GeneralRe: sir pleaseeeeeeeeeeeeeeeee help me Pin
Christian Graus2-Sep-09 0:23
protectorChristian Graus2-Sep-09 0:23 
GeneralRe: sir pleaseeeeeeeeeeeeeeeee help me Pin
EliottA2-Sep-09 2:56
EliottA2-Sep-09 2:56 
GeneralRe: sir pleaseeeeeeeeeeeeeeeee help me Pin
EliottA2-Sep-09 3:23
EliottA2-Sep-09 3:23 
GeneralRe: sir pleaseeeeeeeeeeeeeeeee help me Pin
Jay Royall2-Sep-09 4:12
Jay Royall2-Sep-09 4:12 

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.