Article View: borland.public.cppbuilder.deployment
Article #154Re: getting error message "Cannot change Visible in OnShow or OnHide"
From: Steve
Date: Tue, 16 Aug 2005 11:16
Date: Tue, 16 Aug 2005 11:16
26 lines
1982 bytes
1982 bytes
HI Michael, > Hello all, > I'm using C Builder 6 and I have an app that runs fine in the ide or on > the same machine it was compiled on. I compile it statically; and install > the ocx that it needs. When I run the app on another machine I get the > error message "Cannot change Visible in OnShow or OnHide". Am I missing > something? What do I need to install to get the app to run. Probably you try to use Form->Visible inside an Form->OnShow or Form->OnHide event ? Sometimes I've same problem (error) with one my application, but I've to call the winapi ShowWindow(Application->Handle, SW_HIDE), to show/hide the mainform button-window in the start-bar area, because in that case, my app is iconified on the icontray and MainForm is not showed until a doubleclick on the trayicon. To solve try to check your code in the OnShow - OnHide Form event ... I think you can start from here. If you discover something of intresting let know us! Bye, Steve
Technical Details
Message-ID:
<4301cb34$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43016756$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f8e54,aeacec2a25e80f94 X-Google-Attributes: gidf8e54,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Steve" <sdardari_NOSPAM_@rimini.com> Newsgroups: borland.public.cppbuilder.deployment References: <43016756$1@newsgroups.borland.com> Subject: Re: getting error message "Cannot change Visible in OnShow or OnHide" Date: Tue, 16 Aug 2005 13:16:57 +0200 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 82.49.207.42 Message-ID: <4301cb34$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1124191028 82.49.207.42 (16 Aug 2005 04:17:08 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail