win form 的 datagrid 问题

anneliang 2003-10-20 06:20:07
Dim Price As DataGridTextBoxColumn = menuAdd.TableStyles.Item(0).GridColumnStyles.Item(3)
AddHandler Price.TextBox.Enter, New System.EventHandler(AddressOf Price_Enter)


Private Sub Price_Enter(ByVal sender As Object, ByVal e As System.EventArgs)
Dim tempBox As DataGridTextBox = CType(sender, DataGridTextBox)
tempBox.Selectall ()
End Sub

为什么datagridtextbox内的文本都没有select上
...全文
35 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
SammyXu 2003-12-13
  • 打赏
  • 举报
回复
Dim tempBox As DataGridTextBox = CType(sender, DataGridTextBox)
tempBox.SelectionStart = 0
tempBox.SelectionLength = tempBox.Text.Length
tempBox.SelectAll()
superhzq 2003-12-13
  • 打赏
  • 举报
回复
是不是需要FOCUS
ruanyuping 2003-10-22
  • 打赏
  • 举报
回复
rt

16,553

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧