|
You need to be clearer about what you want. Do you want to validate that the email address is properly formed or that it is a real address at the destination?
If you just want to validate it is properly formed there are a lot of different ways to do this, including using some of the built-in .NET classes or regular expressions. If you want to make sure it is a real address at the destination, the only real way to do this is to actually try sending a test message.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
Best thing to do is to try sending the email, and if it comes back as undeliverable, then it probably doesn't exist.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hello everybody,
I want to implement auto generated time table in my asp.net application
please help me out.
thanks and regards
susan
|
|
|
|
|
That's nice, do you have a specific problem?
|
|
|
|
|
thanks for your reply
can u know me the algorithm of time table and how to implement it.
|
|
|
|
|
Ill show you an algorithm of sorts...
you.GotHelp == false;
while(you.IsLazy)
{
string myStupidQuestion = "plz s3nd codeZ, urgentz";
you.GotHelp == RequestHelpOnCodeProject(myStupidQuestion);
if(you.PulledYourHeadOutYourAss & you.FeelLikeThinkingForYourself)
{
break;
}
}
string myBetterQuestion = "I have a program that needs to do A, B and C, ive tried X, Y and Z";
you.GotHelp == RequestHelpOnCodeProject(myBetterQuestion );
Get the picture? Go read this[^] before you post here again cause you'll only get flamed.
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
Actually I had a similar question.
(I'll try to be as specific as possible)
- Here's what exactly I need to try to do - I want a table with 8 columns (one for each day and an extra for the time slots in each day). And I need 25 rows. I've tried using the TableLayoutPanel control but I'm not so sure how (or even if) I can edit the contents of the each cell in the table. I first thought that I'd add a textbox to each cell that the user can edit, but that seems to be a sort of brute force method and I was wondering if there was a simpler, less tedious method of doing the same thing. Possibly inserting an excel spreadsheet into the app, but I'm quite confused with the system behind that as well.
|
|
|
|
|
Hi,
I want to create an instance of a control from knowing its type:
Im using the following line of code which compiles (type is Type of user control):
Control control = (Control)Activator.CreateInstance(type);
But at runtime it gives the error:
Exception has been thrown by the target of an invocation
inner:
Input string was not in a correct format
source:
mscorlib
Anyone see what im doing wrong?
Thanks,
Chas
|
|
|
|
|
Doh!
That line is fine.
There was a problem in the constructor of the control!
|
|
|
|
|
Chazzysb wrote: There was a problem in the constructor of the control!
Lucky those are easy to track down. Try throwing an exception in a static constructor, then you will be lost for a while
|
|
|
|
|
Hi everyone!
How do I convert a Bitmap var to an Image type?
System.Drawing.Bitmap myBmp;
System.Windows.Controls.Image myImg;
myImg = (Image)myBmp;
'System.Drawing.Bitmap' to 'System.Windows.Controls.Image'.
I'm really struggling to get this done, and it really seemed so easy and straight-forward but, I can't do it.
Any help will be appreciated.
Thanks a million.
|
|
|
|
|
The System.Drawing.Bitmap class inherits from the System.Drawing.Image class. All you have to do is a simple type cast.
There is no System.Windows.Controls.Image maybe you mean System.Windows.Forms.PictureBox . In that case, you'll set the Image property of it.
myPicBox.Image = myBmb;
Eslam Afifi
|
|
|
|
|
Eslam Afifi wrote: There is no System.Windows.Controls.Image
There is in WPF I think
|
|
|
|
|
Yes, there is.
It's WPF type, vectorial image stuff.
I had to use ImageSource to solve this problem, it is really a pain in the neck though.
Thanks guys.
|
|
|
|
|
Yeah, you're right. I didn't think of that. Thanks
I think he'll save the bitmap to a MemoryStream and then use the StreamSource.
Edit: I see he/she knew that already.
Eslam Afifi
|
|
|
|
|
I have disabled the control box in my properties pane on my windows form and wanted to make a cutomized button that would minimize my window. Can anyone tell how to do that?
|
|
|
|
|
this.WindowState = FormWindowState.Minimized;
Eslam Afifi
|
|
|
|
|
oh silly me! thanks!
|
|
|
|
|
You're welcome
Eslam Afifi
|
|
|
|
|
i develpoed a simple concurrent server . when startserver button is clicked the application blocks in socket.accept();
when a client is connected a new thread is created and the client is handled by that.
but then the server application again blocks in accept(). and the form is displayed as a white box,no componenets are displayed.
how can i over come this problem,i want to display the components as usual while the server is blocked in accept();
|
|
|
|
|
Accept() in another thread.
|
|
|
|
|
Hello All
i am wondering how to call a batch of SQL server scripts from inside a C# code
Thanx for your help
|
|
|
|
|
|
You can use the SqlConnection and SqlCommand in the System.Data.SqlClient namespace.
Or you can use the ServerConnection in the Microsoft.SqlServer.Management.Common namespace (reference the Microsoft.SqlServer.ConnectionInfo assembly).
Eslam Afifi
|
|
|
|
|
You can use SqlCommand class to execute commands against sql database.
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|