All rights reserved. Developer Tools Blackfish SQL C++Builder Delphi FireMonkey Prism InterBase JBuilder J Optimizer HTML5 Builder 3rdRail & TurboRuby Database Tools Change Manager DBArtisan DB Optimizer ER/Studio Performance Center Permalink Posted 28-Jun-12 1:13am E.F. I usually delete "application.createform(...)" from DPR file, rather than using Project Options to make my form available (from auto-create form). Tenant claims they paid rent in cash and that it was stolen from a mailbox. http://birdsallgraphics.com/error-cannot/error-cannot-change-visible-in-onshow-or-onhide.php
It is time consuming testingbecause I have to get a new exe to the user each time. But if I run my code I get the error "Cannot make a visible window modal" I read that has something to do with the fact that I don't properly close Create and destroy it in a method. Another possibility can be that at one or more places you have showned the form using the Show instead of ShowModal. http://www.codeproject.com/Questions/412005/Access-violation-error-when-for-a-multiforms-appli
I create forms at run time using this code: frmSomething := TFrmSomething.Create(Self); -which is equivalent, I have read, to- Application.CreateForm(TFrmSomething, frmSomething). Nor is any one of the other 20 live installations reporting the error. Also my real project doesn't call the ShowModal from the constructor, these was a quick project made as an small scale example of my app. –CiucaS Jul 31 '14 at 8:31
Forum Home Search Login Register Chat Recent Topics Go To.. A modal dialog is used as a temporary Window which pops up and either displays some information or asks for input from the user. That's the cause of your error message. Set the form visible to false and it works, no more error message.
By the way, I did double check that the forms visibility was set to false in the object, inspector just to make doublely sure it was created invisiblely, and it was. Are backpack nets an effective deterrent when going to rougher parts of the world? Good luck! browse this site The only time you should (and must) call either a form's Show or ShowModal method is when creating the form dynamically.
The app is running at around 25 sites. Join your peers on the Internet's largest technical computer professional community.It's easy to join and it's free. Register FAQ Community Calendar Today's Posts Search Community Links Members List Search Forums Show Threads Show Posts Tag Search Advanced Search Go to Page... Not yet sure if a difference arrises later though.
New Topic Print Pages:  • top « previous next » DonationCoder.com Forum » DonationCoder.com Software » Mouser's Zone » LaunchBar Commander » Cannot make a visible window modal SMF © http://www.tek-tips.com/viewthread.cfm?qid=1635801 As Lajos Juhasz said you might use this global form in other places and you expect that the form can be still in a created state. Additional Information 1. Your Email Password Forgot your password?
Find all posts by frankarabano #2 10-06-2002, 02:03 PM simes Senior Member Join Date: Jan 2002 Posts: 2,327 RE: Exception: 'Cannot make a visible window modal' Hi Frank, check over here As Lajos Juhasz said you might use this global form in other places and you expect that the form can be still in a created state. unit Unit2; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm2 = class(TForm) Button1: TButton; Button2: TButton; Button3: TButton; procedure FormCreate(Sender: TObject); procedure Button1Click(Sender: TObject); private If I use 'form.show' method instead of '.showmodal', I still have the same error message appearing.
DBExpress "No Value for Parameter" --> DELPHI BUG ?3. Here is the code which identical to that on the create/show of many other forms some of which are created and destroyed far more often in the course of a session Jquery for modal popups web service cannot invoke method definition for 'visible' and no extension method Non-invocable member cannot be used like a method Non-invocable member 'System.Web.UI.WebControls.Label.Text' cannot be used like http://birdsallgraphics.com/error-cannot/error-cannot-change-visible-onshow-onhide.php I appreciate your time and effort.
Rather have a method in Form2 which creates the button and then other forms can call that function. You better destroy the form if it is already created. if assigned(frmSMS) then freeandnil(frmSMS); frmSMS:=TfrmSMS.Create(self); try frmSMS.edCell.text := frmSMS.fixnumber(s); frmSMS.showmodal; finally freeandnil(frmSMS); end; Or use a Local form. I have a problem..
Solution 1 Accept Solution Reject Solution In case the user closes the modal form, it is already gone. I should add that earlier today I ran both a quick Malwarebytes scan (which I do every day) and a Quick Scan from Microsoft Security Essentials, which I did for no At one site only and not on every occurrence of the showmodal command for the form (between 10 and 2% of the times ) the program crashes with 'Cannot make a weblink Let's work to help developers, not make them feel stupid.