Search Results

Showing results 1 to 6 of 6
Search took 0.01 seconds.
Search: Posts Made By: tayspen ; Forum: C# and child forums
Forum: C# Sep 6th, 2006
Replies: 2
Views: 13,879
Posted By tayspen
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
Posted By tayspen
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
Posted By tayspen
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
Posted By tayspen
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
Posted By tayspen
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
Posted By tayspen
So it would look somthing like this.


Process p=new Process();//Declare new process
p.StartInfo.FileName="notepad.exe";//Tell it to open notepad...
Showing results 1 to 6 of 6

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC