Forum: C# Sep 6th, 2006 |
| Replies: 2 Views: 13,879 Could be as simple as....
if(tbUserName.Text != "username") //Textbox names tbUserName
{
MessageBox.Show("Wrong user name"); //show message
}
else
{
MessageBox.Show("Correct"); |
Forum: C# May 23rd, 2006 |
| Replies: 4 Views: 7,429 He wants to use the header of the file.
What if for some reason it has no extension? Then that way won't work ;). |
Forum: C# May 23rd, 2006 |
| Replies: 7 Views: 15,262 Complete Code.
FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.Description = "Select Folder";
if(folderDialog.ShowDialog() == DialogResult.OK)
{
txtTargetPath.Text... |
Forum: C# May 19th, 2006 |
| Replies: 4 Views: 7,429 Perhaps this will help?
http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=79
I am sure, you could get what you need from that code, in order to throw together a little class... |
Forum: C# Apr 5th, 2006 |
| Replies: 2 Views: 18,221 Perhaps this will help you: http://www.codeproject.com/useritems/IsNumeric.asp
Let me know :). |
Forum: C# Feb 10th, 2006 |
| Replies: 5 Views: 3,005 So it would look somthing like this.
Process p=new Process();//Declare new process
p.StartInfo.FileName="notepad.exe";//Tell it to open notepad... |