Beginners of C# who were familiar with VB6 may try to move the control using left and top properties of the control. It works fine with the Visual Basic 6. In Visual Studio the concept is changed with Location.
A location has two coordinates, namely x and y, similar to Top and Left in VB6. A location is an object of class Point. So we can change the location of a control using a new point object.
In the following, I have a panel, which I want to move at the run time to another part of the window.
You can simply use SQL query statements to retrieve desired data from database server with C# and ADO.Net. But there are plenty of ways to search your localized version of data which is stored in dataSet and dataView.
We already learn how to use Find and Findrow methods for searching data in Visual Studio App. This post will show how to use row filter property of DataView for sorting data rows.
First up all you need to create Data adaptor, dataSet, and dataView.
In our example, I have a date field in the database table, so that I can filter for specific date ranges as follows
As we know DataGridView in C# act quite differently with Enter key. When user pressed the Enter key it will take them to next row instead of next column. For more convenient data entry require left to right movement not top to bottom . C#.Net has ability to change the default behavior of the enter key.
This can be done with overriding the processcmdKey method.
This will change Enter key behavior on the form itself. If you have any code to move focus to other controls it may fail