TextBox only numbers (validation) Posted by Eliseo in controls , Examples on 01 25th, 2009 | 36 comments Hello, here I leave a very simple example to evaluate keystrokes when entering data into a textbox and only allow numbers ignoring everything that is not a number. It's very basic but will serve as a starting point to validate any income. Then the code .... Private ... Linking Windows Forms Posted by Eliseo in controls on 01 22nd, 2009 | 3 Comments
For a long time I had this problem, so now I know how to solve it I share with you. If you call from a windows form to another windows form with either property. Show or. ShowDialog until I close the second form I have no control on the main form ...... For / Next nested Posted by Eliseo in Control Structures on 01 19th, 2009 | 4 Comments I'm sure on more than one occasion have to use For's nested, are very useful for a lot of tasks. Below I show a simple example that uses two For anidades to represent the multiplication tables from one to ten. Create a new ... Visual Studio 2008 Express Edition Posted by Elisha at Download on 01 13th, 2009 | 6 Comments The free version of visual studio programming suite, Visual Studio Express Edition, is dispobible to download. Personally I recommend downloading the DVD all in one, as it meets all of the series products (Visual basic 2008 Express Edition, Visual C # 2008 Express ... WHERE (establishing criteria in SQL) Posted by Elisha Databases on 01 11th, 2009 | 11 Comments
For many of the SQL instructions that tell use some criteria will be essential to identify which records are involved in such instruction, for example, if I select the telephone numbers of the schedule table may not want to show all contacts, but ... SELECT Posted by Elisha Databases on 01 11th, 2009 | 11 Comments The SELECT statement is used to retrieve data from a database. The basic format of the SELECT INSTRUCTIONAL is the following session shows: SELECT FROM <campos> <table> For example if you wanted to get the names and e-mail addresses of all records ... Shell Posted by Eliseo in Features on 01 7th, 2009 | 3 Comments Used to invoke an external program from our application. 'You can use any of three options depending on the program you want to run Shell ("calc", AppWinStyle.NormalFocus) Shell ("calc.exe", AppWinStyle.NormalFocus) Shell ("c: \ windows \ calc.exe". .. Color a ListView Posted by Eliseo in controls , Examples on 01 7th, 2009 | 6 Comments Here I give a subroutine that I found it very useful for a number of years. The function paints the lines of a listview alternating two colors, this greatly facilitates the reading when the listview has many columns or columns are very wide. Public Sub colorearListView (ByRef list As ListView) Dim .. TextBox Posted by Eliseo in controls on 01 7th, 2009 | No comments Used to enter data into the programs. Its most important property is Text. She is the one that stores the text displayed or entered eb text box. By default a single textbox stores a line of text, but this can be changed by setting the Multiline property to true. In this way ... Enumerators Posted by Elisha at Examples on 01 6th, 2009 | 2 Comments How many times I had to revise all code to see because the program was not in any if or select case and after probra and debug I realized it was a minor mistake the gender of a word used to, for example, saving a state . Many times I had used acuerdaba if ...