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上
...全文
33 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
#学习的101个经典例子,例子个个经典,涵盖C#的方方面面,带有说详尽的注释 Advanced - Multithreading - How-To Async Calls Advanced - Remoting - How-To TCP Remoting Advanced - Serialization - How-To Serializing Objects Advanced .NET Framework (GDI+) - Animation with GDI+ Advanced .NET Framework (GDI+) - Create a Screensaver with GDI+ Advanced .NET Framework (GDI+) - Use GDI+ to manipulate images Advanced .NET Framework (GDI+) - Working with GDI+ Brushes Advanced .NET Framework (GDI+) - Working with GDI+ Text Advanced .NET Framework (Localization) - Work with Resource Files Advanced .NET Framework (Networking) - Use Sockets Advanced .NET Framework (Threading) -- Thread Pooling Advanced .NET Framework (Windows Services) - Create a Windows Service Advanced .NET Framework - Interacting Windows Service Advanced .NET Framework - Make WIn32 API Calls Data Access - Bind Data in a ComboBox Data Access - Build a Master-Detail Windows Form Data Access - Create an Offline Application Data Access - Custom Data Binding Format Handlers Data Access - Data Entry Form Data Access - How-To Create a Database Data Access - N-Tier Data Form and Data Layer Data Access - Read and Write Images from a Database Data Access - Retreive and Process data with a SQL Data Reader Data Access - Sort and Filter with a DataView Data Access - Use ADO 2.6 Data Access - Use Stored Procedures Data Access - Using Typed Datasets File - How-To File Notifications File - How-To File System Framework - Comparison of DataBinding in Web and Windows Forms Framework - Creating an Enterprise Services Component Framework - How-To Configuration Settings Framework - How-To Environment Settings Framework - How-To MSMQ Framework - How-To Process Viewer Framework - How-To Reflection Framework - How-To Send and Receive Data Framework - How-To Service Manager Framework - How-To Stack Frame Framework - How-To System Events Framework - How-To Work with XML Framework - Key Benefits Framework - Partitioning your application Framework - role based security with Enterprise Services Framework - Scoping, Overloading, Overriding Framework - Understanding the Garbage Collector Framework - Using the COM Port Framework - Using WMI Interop - Automate IE Language - How-To Arrays Language - How-To Build a Custom Collection Class Language - How-To Callbacks Language - How-To DateTime Language - How-To OO Features Language - How-To Strings Language - How-To Try Catch Finally NET Framework - Create and use Trace Listeners NET Framework - How-To Send Mail NET Framework - How-To Use the EventLog NET Framework - How-To Working with GDI+ Pens NET Framework - Read and Write Performance Counters NET Framework - Reading and Writing with a Text File NET Framework - Use Temporary Files NET Framework - Use the Process Class and Shell Functionality NET Framework - Work with Console Applications Security - Create a Login Dialog Box Security - Encrypt and Decrypt Data Security - How-To Role-based Security Security - Use Cryptographic Hash Algorithms VS.NET - Create a VS.NET Add-In Web Development - Data Entry Form Web Development - Exposing a Simple Web Service Web Development - Master-Details Web Form Web Development - Paging through Query Results Web Services - Consume a Web Service WebService - How To Transfer Binary Data Windows Forms - How-To Data Binding with Navigation Windows Forms - How-To System Tray Icon Windows Forms - How-To Validating Textboxes Windows Forms - Associating Help with an Application Windows Forms - Create an Explorer Style Application Windows Forms - How-To Automate Office Windows Forms - How-To Common Dialogs Windows Forms - How-To Data Grid Formatting Windows Forms - How-To DataGrid Sorting and Filtering Windows Forms - How-To Inherited Windows Forms Windows Forms - How-To ListBox and ComboBox Windows Forms - How-To Menus Windows Forms - How-To Top-Level Forms Windows Forms - How-To Use Drag and Drop Windows Forms - How-To XML Comments Windows Forms - Simple Printing Windows Forms - Use Crystal Reports Windows Forms - Use Format Codes to Format Data in Strings Windows Forms - Use Regular Expressions Windows Forms - Use the Clipboard Windows Forms - XP Theme Support Windows Forms -- Owner Drawn Menus Windows Forms- How-To Custom Exceptions WinForms - Dynamic Control Creation

16,549

社区成员

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

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