MyConnectDialog

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Sidi
Posts: 2
Joined: Wed 17 Nov 2004 16:52

MyConnectDialog

Post by Sidi » Mon 20 Dec 2004 20:36

Hi,

the follow code doesn`t work:

Code: Select all

procedure TForm1.BtnVerbindenClick(Sender: TObject);
begin
   MyConnectDialog1.DialogClass:='TfmMyConnect';
   MyConnection1.Database := 'QDM';
   MyConnection1.Connect;
end;
I`ve got the error Message: Class TfmMyConnect not found

In MyDac Demos Connect Dialog the same Code works.

What did I make wrong?

Sidi

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Re: MyConnectDialog

Post by Ikar » Tue 21 Dec 2004 09:57

Most probably you forgot to call RegisterClass(TfmMyConnect);

Post Reply