Path: csiph.com!2.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Greg Newsgroups: it.comp.lang.visual-basic Subject: Re: Come forzare la chiusura di un mio oggetto? Date: Thu, 03 Nov 2016 20:01:31 +0100 Organization: solani.org Lines: 23 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15"; format=flowed Content-Transfer-Encoding: 8bit X-Trace: solani.org 1478199696 13472 eJwFwYEBACAEBMCV4j01jsj+I3RHuHiFOd04HDzh7gyFyttRlZDuI6RrQXHWnZtubwWstT4R3RDB (3 Nov 2016 19:01:36 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Thu, 3 Nov 2016 19:01:36 +0000 (UTC) Cancel-Lock: sha1:qKOJ143szOHfVPSNohaAS179FGA= X-NNTP-Posting-Host: eJwFwQkBwEAIAzBL/AU746h/CUvSS2sRlRXJZHxtJ1rEmbQ/ppwEfHuMqXvhg3kKN+4SPwyGELA= X-User-ID: eJwNwokRACEIBLCWUJavHFyl/xLuJjH15Qy4OWx+R29FtRrzxU52IfCm27iSd1CnZEunOAf2ASI6EUI= X-Newsreader: MesNews/1.08.06.00-it Xref: csiph.com it.comp.lang.visual-basic:18888 Il 03/11/2016 19:16:46 Franz_aRTiglio ha scritto: > Andando a memoria : > > Set IE = Nothing > > Sempre a memoria: > > If IE <> Nothing then ' oggetto non chiuso Grazie Artiglio, è proprio cosi. Ma adesso ho un comportamento strano: quando lancio il browser appare giustamente in primo piano, ma nel compilato mi rimane invece in secondo piano. Setfocus non va, allora ho provato con SendMessage ma non sembra funzionare: k = SendMessage(IE.hwnd, WM_SETFOCUS, 0&, 0&) Ti viene in mente qualcosa? Grazie ancora :) -- Greg