我有2个form分别是form1和form2,在form1里面有个combobox1,
我想实现在form2的caption里面,显示form1的内容?
我用
var s1: string;
s1 := form1.ComboBox1.Text;
caption:='监控界面---[节点域名:'+s1+']';
但是它传过来的值一直是空的,为什么?
我想实现在form2的caption里面,显示form1的内容?
我用
var s1: string;
s1 := form1.ComboBox1.Text;
caption:='监控界面---[节点域名:'+s1+']';
但是它传过来的值一直是空的,为什么?
或者在这个操作之前,这个值没有别改变?
我在form2的creat事件中写:
var s1: string;
s1 := form1.edit1.Text;
caption:='监控界面---[节点域名:'+s1+']';
var s1: string;
s1 := form1.ComboBox1.Text;
caption:='监控界面---[节点域名:'+s1+']';
有问题请发信息到我的E-mail:[email protected]
procedure TForm2.FormCreate(Sender: TObject);
begin
form2.Caption:=form1.Edit1.Text;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
form2.Show;
end;
有问题请发信息到我的E-mail:[email protected]