Article View: free.it.visual-basic
Article #2128disattivazione di un form
From: Il Turco
Date: Fri, 10 Oct 2003 09:50
Date: Fri, 10 Oct 2003 09:50
25 lines
1816 bytes
1816 bytes
A chi1que voglia aiutarmi un grazie.
voglio richiamare un exe da un altro exe.
Il chiamante deve restare in attesa fino alla chiusura del chiamato.
Uso la procedura:
Public Const NormalPriorityClass = &H20&
Public Const Infinito = -1&
Public Sub ShellEdAspetta(ByVal NomeProgramma As String)
Dim _
ValRitorno As Long, Proc As Process_INformation, _
StartInf As STARTUPINFO
StartInf.cb = Len(StartInf)
ValRitorno = CreateProcessA(0, NomeProgramma, 0, 0, 1, _
NormalPriorityClass, 0, 0, StartInf, Proc)
ValRitorno = WaitForSingleObject(Proc.hProcess, Infinito)
ValRitorno = CloseHandle(Proc.hProcess)
End Sub
Il form chiamante continua a ricevere eventi mentre οΏ½ attivo il chiamato,
anche ho messo:
me.enabled=false
Qc1 sa dirmi xchοΏ½?
Technical Details
Message-ID:
<Mhvhb.26063$e6.883601@twister2.libero.it>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!news.mailgate.org!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII X-Google-Thread: f94ee,ae1e8a49a9254a92,start X-Google-Attributes: gidf94ee,public X-Google-ArrivalTime: 2003-10-10 02:50:36 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!news.mailgate.org!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mail From: "Il Turco" <coseturche@libero.it> Newsgroups: free.it.visual-basic Subject: disattivazione di un form Lines: 27 X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Message-ID: <Mhvhb.26063$e6.883601@twister2.libero.it> Date: Fri, 10 Oct 2003 09:50:36 GMT NNTP-Posting-Host: 151.27.171.158 X-Complaints-To: abuse@libero.it X-Trace: twister2.libero.it 1065779436 151.27.171.158 (Fri, 10 Oct 2003 11:50:36 MET DST) NNTP-Posting-Date: Fri, 10 Oct 2003 11:50:36 MET DST Organization: [Infostrada]