| | |
validation in login textbox.
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
i seem to have lost the .NET code but this may be of help - here is some VB6 code that gets you to enter your name and then spilits it
e.g if you inout "James Bennet" it says:
Firstname = James
Lastname = Bennet
you could use something like this on your password program to discard anything after the space
e.g if you inout "James Bennet" it says:
Firstname = James
Lastname = Bennet
C# Syntax (Toggle Plain Text)
Private Sub Command1_Click() Dim length As Integer Dim name As String Dim Firstname As String Dim LastName As String Dim x As Integer name = InputBox("What is your name") length = Len(name) x = InStr(name, " ") Firstname = Left(name, x) LastName = Right(name, length - x) MsgBox "The first is " & Firstname MsgBox "The last name is " & LastName End Sub
you could use something like this on your password program to discard anything after the space
Last edited by jbennet; Feb 8th, 2007 at 10:51 am.
If i am helpful, please give me reputation points.
![]() |
Similar Threads
- Simple ASP.Net Login Page using C# (C#)
- Updated : Simple ASP.Net Login Page (ASP.NET)
- ASP.Net Security 101 Part 1 (ASP.NET)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
- validating a textbox without using validation control (ASP.NET)
Other Threads in the C# Forum
- Previous Thread: i need login code in C#
- Next Thread: What's the similarities between a class and a namespace?
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access algorithm array barchart bitmap box buttons c# chat check checkbox class client color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees draganddrop drawing encryption enum event excel file files form format forms ftp function gdi+ httpwebrequest image index input install java label list listbox listener login mandelbrot math mouseclick mysql networking object operator oracle path photoshop picturebox pixelinversion post prime programming radians regex remote remoting resource richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






