在线等一个datagrid问题 我通过row,col在datagrid中使某一个单元格获得焦点,但是怎么才能使得此格子获得焦点的时候的文本全部选中哪? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 获得焦点时,默认就是让文本选中呀Private Sub Command1_Click() DataGrid1.Col = 1 DataGrid1.Row = 2 DataGrid1.SetFocusEnd Sub DataGrid1.SetFocus DataGrid1.Row = 2 DataGrid1.Col = 3 DataGrid1.SelStart = 0 DataGrid1.SelLength = Len(DataGrid1.Text) DataGrid1.Row = 2 DataGrid1.Col = 3 DataGrid1.SelStart = 0 DataGrid1.SelLength = Len(DataGrid1.Text) DataGrid1.SetFocus vb中怎样响应excel中的commandbutton1_click事件 关于四级的一道题目,快来看看啊!在线等待 有关条码读取(键盘口)的示例,收到给分!! 图形化界面 如何用代码来实现播放*.WAV文件?请指点?在线等候!!!! 求助一个简单的问题,急! 怎么将一个很长的数字每一位分配给一个一给数组 菜鸟问题:vb6.0在哪里增加activex插件? 各位各位过来看看! 求求你们了!很惨很惨的鸟 求:工业所用的控件!! 如何在vb中完成对数据库翻页浏览的操作?
Private Sub Command1_Click()
DataGrid1.Col = 1
DataGrid1.Row = 2
DataGrid1.SetFocus
End Sub
DataGrid1.Row = 2
DataGrid1.Col = 3
DataGrid1.SelStart = 0
DataGrid1.SelLength = Len(DataGrid1.Text)
DataGrid1.Row = 2
DataGrid1.Col = 3
DataGrid1.SelStart = 0
DataGrid1.SelLength = Len(DataGrid1.Text)
DataGrid1.SetFocus