Home > Cannot Make > Cannot Make A Visible Window Modal No Delphi

Cannot Make A Visible Window Modal No Delphi

Roy, that's why I changed in the original code it was "dmData.cdsAcctMasterPHONEC.value". Also I cannot replicate the error on any of my own machines. Then the user doesn't have to close it in order to continue her/his work. When answering a question please: Read the question carefully. Source

Poste seus códigos corretamente! 21-05-2016 Prezados membros do Fórum do Clube do Hardware, O Fórum oferece um recurso chamado CODE, onde o ícone no painel do editor é  <>     O Do you need your password? The form is shown modally from TForm1.Button1Click, and that suffices. That is not true. http://www.codeproject.com/Questions/412005/Access-violation-error-when-for-a-multiforms-appli?arn=0

DarkHorse View Public Profile Send a private message to DarkHorse Visit DarkHorse's homepage! My AccountSearchMapsYouTubePlayNewsGmailDriveCalendarGoogle+TranslatePhotosMoreShoppingWalletFinanceDocsBooksBloggerContactsHangoutsEven more from GoogleSign inHidden fieldsSearch for groups or messages Log On Embarcadero Home Communities Articles Blogs Resources Downloads Help Embarcadero Discussion Forums » Delphi » Language » General Even if I declare ResultForm as a local object (locally declared variable), I still get the same error message. To remove buttons you just call Free on them.

masssnão tem nada! Re: RAD Studio Roadmap Updated2. I will do so –CiucaS Jul 31 '14 at 8:39 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up From your description it seems like you are trying to use an existing Window and somehow make it modal.

Permalink Posted 28-Jun-12 2:13am E.F. So you must not call ShowModal there. alguem tem alguma solução sem ter q refazer o form de novo??? Programing - Coding - Microcontroller - Experiment - Hobby - Anything Sidebar Categories android (3) begadang (6) business object (1) cerita (13) database (5) delphi (1) error solving (3) fedora (2)

But it crashes on the show of the first one. Solution 1 Accept Solution Reject Solution In case the user closes the modal form, it is already gone. Find all posts by DarkHorse #5 10-07-2002, 02:11 AM PoseFant Senior Member Join Date: Jan 2001 Posts: 1,002 RE: Exception: 'Cannot make a visible window modal' I just Richard MacCutchan 28-Jun-12 11:34am Did you see this suggestion?

Se colocar FrmDadosProduto.Show FUNCIONA, s que o usuario pode clicar outro evento. 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 Qual sera o problema. Remy That is not true.

with TFormX.Create(nil) do try ShowModal; finally Free; end; --- Regards /Filip I've lost my autosignature ... *sobbing* ... this contact form Here is an example code interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, StdCtrls; type TForm1 = class(TForm) Panel1: TPanel; Button1: TButton; procedure Button1Click(Sender: TObject); private { Are you aComputer / IT professional?Join Tek-Tips Forums! The error comes from ShowModal() itself: function TCustomForm.ShowModal: Integer; var ...

Why are password boxes always blanked out when other sensitive data isn't? The code: Note that ResultForm may be declared as an global variable of TResultForm or as a local variable. I just started my first real job, and have been asked to organize the office party. have a peek here remove error Error in Method Error cannot create a window handle MODAL WINDOW IN ASP.NET Close Modal window Advertise | Privacy | Mobile Web02 | 2.8.161101.1 | Last Updated 25 Oct

Browse other questions tagged forms delphi runtime or ask your own question. Here is sample code. Helpful answers available: 0.

results form is declared as a global variable of TResultForm.

Why can only capture the black?2. Lajos Juhasz wrote: jenny foster wrote: Thank you Bernd - that is what I thought which is why I put in the visible := false line. (see below) I have now The time now is 10:24 AM. Gabinetes em geral GabrielLP14 - 16 minutos 3 Pc para game e solidworks até r$6000 Recomendação de PCs para jogos e placas de vídeo GabrielLP14 - 19 minutos 1 Meu gabinete

What's going on? I create forms at run time using this code: frmSomething := TFrmSomething.Create(Self); -which is equivalent, I have read, to- Application.CreateForm(TFrmSomething, frmSomething). 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. http://dekovsoft.com/cannot-make/cannot-make-a-visible-window-modal-delphi-2010.html Nijboer52.8K Rate this: Please Sign up or sign in to vote.

procedure TMainForm.Button1Click(Sender: TObject); begin ResultsForm := TResultForm.Create(self); try ResultsForm.ShowModal; finally ResultsForm.Free; end; end; for dynamically creating a new form is sound but one should take care to note that the dynamically Nor is any one of the other 20 live installations reporting the error. procedure DoCreateLocalForm; var frmLocalSMS: TfrmSMS; begin frmLocalSMS:=TfrmSMS.Create(self); try frmLocalSMS.edCell.text := frmLocalSMS.fixnumber(s); frmLocalSMS.showmodal; finally freeandnil(frmLocalSMS); end; jenny foster Posts: 49 Registered: 12/6/09 Re: Cannot make a visible Window Modal it is no more visible than it was before I added the button. :-) Any idea what happened?

See more: Delphi I am trying to make a multiforms application by having only the main form created on start up and creating each new additional form dynamically as needed by Já atuou como moderador em algo outro fórum, se sim, qual?