解决方案 »
- 如何获取 Microsoft Web Browser 控件里的网页内容?
- 请问我要将一个label的caption传到adotable中的某个字段的某一个记录中
- 关于Treeview的问题
- 关于OO设计和代码编写的问题,有介绍的网址、代码或推荐书的一律有分
- 如何用Delphi实现在SQL数据库中存取二进制数据
- 请教各位朋友,关于d7里有关rave报表的问题!(急,在线等待,立即结分!)
- DBComboBox1使用?
- 谁有sybase12.5的客户端。我想用它与ADO来操作后台的sybase11。
- 关于SQL Server2000数据库的问题,高分求教。
- 怎样才能在程序中实现用鼠标选择任意一个对象,然后可以修改其大小??
- 请教与dll的问题
- 貌似delphi2010正式版本月25号要发布了
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ExtCtrls, Menus,About,Ftp,Custom,Option;type
TFrmMain = class(TForm)
MainMenu1: TMainMenu;
N1: TMenuItem;
N2: TMenuItem;
N3: TMenuItem;
N4: TMenuItem;
N5: TMenuItem;
N6: TMenuItem;
N7: TMenuItem;
ControlBar1: TControlBar;
BitBtn2: TBitBtn;
BitBtn3: TBitBtn;
BitBtn4: TBitBtn;
BitBtn5: TBitBtn;
BitBtn6: TBitBtn;
BitBtn7: TBitBtn;
BitBtn8: TBitBtn;
BitBtn9: TBitBtn;
BitBtn11: TBitBtn;
ControlBar2: TControlBar;
BitBtn1: TBitBtn;
BitBtn10: TBitBtn;
BitBtn12: TBitBtn;
BitBtn13: TBitBtn;
procedure N4Click(Sender: TObject);
procedure N7Click(Sender: TObject);
procedure BitBtn12Click(Sender: TObject);
procedure N5Click(Sender: TObject);
procedure BitBtn1Click(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure BitBtn10Click(Sender: TObject);
procedure BitBtn13Click(Sender: TObject);
procedure N6Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
FrmMain: TFrmMain;implementation{$R *.dfm}procedure TFrmMain.N4Click(Sender: TObject);
begin
close;
end;procedure TFrmMain.N7Click(Sender: TObject);
begin
FrmAbout.Show;
end;procedure TFrmMain.BitBtn12Click(Sender: TObject);
begin
FrmCustom.Show;
end;procedure TFrmMain.N5Click(Sender: TObject);
begin
FrmCustom.Show;
end;procedure TFrmMain.BitBtn1Click(Sender: TObject);
begin
FrmAbout.Show;
end;procedure TFrmMain.FormClose(Sender: TObject; var Action: TCloseAction);
begin
showmessage('感谢使用,作者:天行者yy~');
end;procedure TFrmMain.BitBtn10Click(Sender: TObject);
begin
FrmFtp.Show;
end;procedure TFrmMain.BitBtn13Click(Sender: TObject);
begin
FrmOption.Show;
end;procedure TFrmMain.N6Click(Sender: TObject);
begin
FrmOption.Show;
end;end.
program Project1;uses
Forms,
login in 'login.pas' {FrmLogin},
main in 'main.pas' {FrmMain},
About in 'About.pas' {FrmAbout},
ftp in 'ftp.pas' {FrmFtp},
Custom in 'Custom.pas' {FrmCustom},
Option in 'Option.pas' {FrmOption};{$R *.res}begin
Application.Initialize;
Application.CreateForm(TFrmMain, FrmMain);
Application.CreateForm(TFrmLogin, FrmLogin);
Application.CreateForm(TFrmAbout, FrmAbout);
Application.CreateForm(TFrmFtp, FrmFtp);
Application.CreateForm(TFrmCustom, FrmCustom);
Application.CreateForm(TFrmOption, FrmOption);
Application.Run;
end.
procedure TFrmMain.BitBtn13Click(Sender: TObject);
begin
FrmOption.Show;
end;
procedure TFrmMain.N4Click(Sender: TObject);
begin
close;
end; procedure TFrmMain.N7Click(Sender: TObject);
begin
FrmAbout.Show;
end; procedure TFrmMain.BitBtn12Click(Sender: TObject);
begin
FrmCustom.Show;
end; procedure TFrmMain.N5Click(Sender: TObject);
begin
FrmCustom.Show;
end; procedure TFrmMain.BitBtn1Click(Sender: TObject);
begin
FrmAbout.Show;
end; procedure TFrmMain.FormClose(Sender: TObject; var Action: TCloseAction);
begin
showmessage('感谢使用,作者:天行者yy~');
end; procedure TFrmMain.BitBtn10Click(Sender: TObject);
begin
FrmFtp.Show;
end; procedure TFrmMain.BitBtn13Click(Sender: TObject);
begin
FrmOption.Show;
end; procedure TFrmMain.N6Click(Sender: TObject);
begin
FrmOption.Show;
end;
结果出现了以下错误。can not find implementation of method bitbutton2click
2.我接着尝试就删除以下代码中的 FrmOption.Show;
procedure TFrmMain.N6Click(Sender: TObject);
begin
FrmOption.Show;
end; 结果运行了还是原来的问题。。急 啊。我该怎么做~~~
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ExtCtrls, Menus,About,Ftp,Custom,Option; type
TFrmMain = class(TForm)
MainMenu1: TMainMenu;
N1: TMenuItem;
N2: TMenuItem;
N3: TMenuItem;
N4: TMenuItem;
N5: TMenuItem;
N6: TMenuItem;
N7: TMenuItem;
ControlBar1: TControlBar;
BitBtn2: TBitBtn;
BitBtn3: TBitBtn;
BitBtn4: TBitBtn;
BitBtn5: TBitBtn;
BitBtn6: TBitBtn;
BitBtn7: TBitBtn;
BitBtn8: TBitBtn;
BitBtn9: TBitBtn;
BitBtn11: TBitBtn;
ControlBar2: TControlBar;
BitBtn1: TBitBtn;
BitBtn10: TBitBtn;
BitBtn12: TBitBtn;
BitBtn13: TBitBtn;
private
{ Private declarations }
public
{ Public declarations }
end; var
FrmMain: TFrmMain; implementation {$R *.dfm} end.把以上代码拷回unit main单元~~
但是出现了一下的错误对话框:
field FrmMain.controlbar2 doesnot have a corresponding component remove the declaration ? yes no cancel help
??我选什么?
如果还是这个错误,则添加一个GroupBox到提示错误的窗体上面~~