如何在打开窗体的同时把listview里的第一行选中 如何在打开窗体的同时把listview里的第一行选中也就是说listview的第一行的颜色为蓝色 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在Form的OnActivate事件中:procedure TForm1.FormActivate(Sender: TObject);begin if ListView1.Items.Count > 0 then begin ListView1.Items[0].Focused := True; ListView1.Items[0].Selected := True; ListView1.Items[0].MakeVisible(False); ListView1.SetFocus; end;end; 将Form的ActiveControl设置为Listview 关于hook一段汇编代码的问题 新年快乐!散分 应用程序取得当前路径后,ADOConnection怎么来连接当前路径呢? 在delhpi中有没有像Object inpector一样的控件 使用excel控件的问题? 设置ComboBox为不可编辑用哪个属性? N烂的统计分析工具----Decision Cube?? PB和DELPH作MIS,那个更好? 请问在什么地方可以找到 打印条码 的字体 这种字体名称是什么??谢谢 哪位网友知道哪儿有为读写串口提供的控件?谢谢了 stringgrid怎样动态的增加一行? 难道这么大的论坛没有人做过mts/com+的程序吗?真郁闷。。。
procedure TForm1.FormActivate(Sender: TObject);
begin
if ListView1.Items.Count > 0 then begin
ListView1.Items[0].Focused := True;
ListView1.Items[0].Selected := True;
ListView1.Items[0].MakeVisible(False);
ListView1.SetFocus;
end;
end;