Search Results

Showing results 1 to 40 of 212
Search took 0.02 seconds.
Search: Posts Made By: tayspen ; Forum: C# and child forums
Forum: C# Sep 6th, 2006
Replies: 2
Views: 14,019
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# Jun 21st, 2006
Replies: 2
Views: 1,742
Posted By tayspen
That link doesn't work for me...
Forum: C# May 23rd, 2006
Replies: 4
Views: 7,515
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,368
Posted By tayspen
Complete Code.


FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.Description = "Select Folder";
if(folderDialog.ShowDialog() == DialogResult.OK)
{
txtTargetPath.Text...
Forum: C# May 23rd, 2006
Replies: 7
Views: 15,368
Posted By tayspen
Are you sure?

If I remember correctly th FolderBrowserDialog, shows you all the folders. Even the system root. Or am I mistaken?
Forum: C# May 19th, 2006
Replies: 1
Views: 7,386
Posted By tayspen
This might help you get what you want.

http://www.codeguru.com/csharp/csharp/cs_graphics/sound/article.php/c10931/
Forum: C# May 19th, 2006
Replies: 4
Views: 7,515
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# May 19th, 2006
Replies: 6
Views: 23,562
Posted By tayspen
Do you mean C#? If not you posted in the wrong forum ;).

Perhaps this will help you. http://www.codeproject.com/csharp/sudokuincsharp.asp
Forum: C# May 12th, 2006
Replies: 4
Views: 6,752
Posted By tayspen
To send the email, not to sure aboutt he picture.


// create mail message object
MailMessage mail = new MailMessage();
mail.From = ""; // put the from address here
mail.To = ""; ...
Forum: C# May 7th, 2006
Replies: 1
Views: 7,472
Posted By tayspen
Perhaps you could work with this, to get what you wanted?

http://www.c-sharpcorner.com/Code/2002/May/CSCorner3DLogo.asp
Forum: C# May 3rd, 2006
Replies: 3
Views: 5,684
Posted By tayspen
If not, perhaps the .Dispose(); method will dispose of it?
Forum: C# Apr 13th, 2006
Replies: 10
Views: 22,529
Posted By tayspen
Ok, well I have changed my mind ;). There is a good chance that if your not allowed to use the WMP Interface, you won't be allowe to use its controlls. So I have attached a little Media Player...
Forum: C# Apr 12th, 2006
Replies: 10
Views: 22,529
Posted By tayspen
You can embed it so, its not visible, then use your own buttons to control it. The interface doesn't have to be visible.
Forum: C# Apr 11th, 2006
Replies: 10
Views: 22,529
Posted By tayspen
Well, you could use the Windows Media Player Control for the player, that will display the song name, and allow you to control the volume. To do this, you need to add a reference to the...
Forum: C# Apr 7th, 2006
Replies: 6
Views: 2,019
Posted By tayspen
What do you need help with? A specific problem? If so post you code, and explain your problem.

You need to be more descriptive.
Forum: C# Apr 5th, 2006
Replies: 10
Views: 6,019
Posted By tayspen
In that case this is how I would do it like this.


private static void IsNumeric(string input)
{
try
{
Convert.ToInt32(input);
}...
Forum: C# Apr 5th, 2006
Replies: 2
Views: 18,355
Posted By tayspen
Perhaps this will help you: http://www.codeproject.com/useritems/IsNumeric.asp

Let me know :).
Forum: C# Apr 4th, 2006
Replies: 10
Views: 6,019
Posted By tayspen
Maybe somthing like the Masked textbox?

http://www.c-sharpcorner.com/Code/2004/Jan/MaskedTextBoxControl.asp
Forum: C# Mar 30th, 2006
Replies: 2
Views: 3,405
Posted By tayspen
Well, since you can't dive by zero, thats why its thorowing the error... You could just use try catch blocks. Or if you post your code, we could help you with better error handling.

If you use try...
Forum: C# Mar 24th, 2006
Replies: 2
Views: 1,566
Posted By tayspen
This should get you going.

http://www.codeproject.com/cs/miscctrl/systemhotkey.asp

If you need a working sample of what you want to do, I will put one together for you :).
Forum: C# Mar 15th, 2006
Replies: 2
Views: 4,264
Posted By tayspen
So, if I understand correctly, when an error is thrown you want to add the error Message (the text) to a listbox?

If so this should do it.

THis example the program trys to open that file, and...
Forum: C# Mar 5th, 2006
Replies: 4
Views: 8,598
Posted By tayspen
Then just use this code.



Thats all you need.
Forum: C# Mar 5th, 2006
Replies: 4
Views: 8,598
Posted By tayspen
Here is a small windows application that I threw together. It is just a modification of your code. It saves each value into the text file. Then opens it in notepad.


using System;
using...
Forum: C# Feb 26th, 2006
Replies: 1
Views: 2,777
Posted By tayspen
I think the best route would be Shell coding. These might get you started.

http://www.codeproject.com/csharp/columnhandler.asp

http://www.codeproject.com/csharp/ratingcolumn.asp


-T
Forum: C# Feb 10th, 2006
Replies: 5
Views: 3,014
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...
Forum: C# Feb 1st, 2006
Replies: 2
Views: 3,784
Posted By tayspen
So i take it you want to make custom controls/ In other words you want it to be better looking then the built in designer that comes with VS 2003? If so you will most likley end up coding it all by...
Forum: C# Jan 29th, 2006
Replies: 1
Code Snippet: Disable close button
Views: 15,771
Posted By tayspen
Demonstrates how to disable the close button in C#.
Forum: C# Jan 20th, 2006
Replies: 3
Views: 38,301
Posted By tayspen
Welcome to Daniweb

Have a look here. It may help.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemstringclasssplittopic.asp

-T
Forum: C# Jan 16th, 2006
Replies: 4
Views: 2,358
Posted By tayspen
Yea, you will need the...I no he said it. But just to back it up :).


using System.Diagnostics;


In order to use the above code.
Forum: C# Jan 16th, 2006
Replies: 3
Views: 3,647
Posted By tayspen
Hi, is this what you want, I threw it together real quick, but you should be able to finish the rest, this will get you started.


using System;
using System.Collections.Generic;
using...
Forum: C# Jan 11th, 2006
Replies: 21
Views: 12,230
Posted By tayspen
Thats a no isnt it, lol. I didnt think so.
Forum: C# Jan 10th, 2006
Replies: 21
Views: 12,230
Posted By tayspen
Maybe, honestly i do not no. ;)
Forum: C# Jan 10th, 2006
Replies: 21
Views: 12,230
Posted By tayspen
An OS cannot be coded in C#. It needs to be a language that requires no framework...like C. Yes there are OS's in C, google for them :).
Forum: C# Jan 7th, 2006
Replies: 0
Views: 6,955
Posted By tayspen
Playing a wave file just got a whole lot easier.
Forum: C# Dec 21st, 2005
Replies: 7
Views: 5,940
Posted By tayspen
Hi, i found this with a quick search. I am not sure if its what your looking for.

http://pscode.com/vb/scripts/ShowCode.asp?txtCodeId=4325&lngWId=10

-T
Forum: C# Dec 13th, 2005
Replies: 2
Views: 4,088
Posted By tayspen
Yes, by the looks of it that is C++, you will get much better help in the correct forum.

but Welcome to DaniWeb

-T
Forum: C# Dec 11th, 2005
Replies: 0
Code Snippet: Empty Recycle bin
Views: 4,406
Posted By tayspen
Code to empty the windows recycle bin
Forum: C# Dec 9th, 2005
Replies: 5
Views: 8,157
Posted By tayspen
Hey, thanks ive searched the web and ound some examples...and i will continue to mess around with it.

-T
Forum: C# Dec 9th, 2005
Replies: 5
Views: 8,157
Posted By tayspen
Ok, thanks i check it out.

-T
Forum: C# Dec 9th, 2005
Replies: 5
Views: 8,157
Posted By tayspen
How can these be done. For example running a shourtcut thats path is this

C:\app.exe -sync

will run a certain part of the application(the sync function). Do i need to make a seperate...
Showing results 1 to 40 of 212

 


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

©2003 - 2009 DaniWeb® LLC