{ Learn Code. Share Code. Teach Code. Love Code. }

  • Search

  • Search it up!

Search found 15 matches

 Go to advanced search

Re: If statement for the richTextBox1!

 by emreozpalamutcu ¦  Thu Jun 23, 2011 9:44 am ¦  Forum: General coding help ¦  Topic: If statement for the richTextBox1! ¦  Replies: 5 ¦  Views: 402

Code: Select all
 if (richTextBox1->Text=="")
{

MessageBox::Show("Please enter your message!", "empty", MessageBoxButtons::OK, MessageBoxIcon::Exclamation);

} 

 else

{

//second action here

}
This is was the code I needed.

Re: If statement for the richTextBox1!

 by emreozpalamutcu ¦  Thu Jun 23, 2011 9:19 am ¦  Forum: General coding help ¦  Topic: If statement for the richTextBox1! ¦  Replies: 5 ¦  Views: 402

lol I almost done it, I had a idea and it's kind of working just having trouble with end if and I will search that on Google :D

Re: If statement for the richTextBox1!

 by emreozpalamutcu ¦  Thu Jun 23, 2011 8:55 am ¦  Forum: General coding help ¦  Topic: If statement for the richTextBox1! ¦  Replies: 5 ¦  Views: 402

Thank you but that didn't really help, I done VB before if i knew that would of worked i would of tried it, C# and C++ is similar, but visual basic is almost a different thing. But thanks for the help, it's enough to thought to help. Some people knows the answer they can't be bothered answering.

If statement for the richTextBox1!

 by emreozpalamutcu ¦  Thu Jun 23, 2011 7:23 am ¦  Forum: General coding help ¦  Topic: If statement for the richTextBox1! ¦  Replies: 5 ¦  Views: 402

Hi, I have this richTextBox1 and when users enter something there and click send email will come to me, then I question came to my had what if they send empty message, i don't get the message if it's empty but what should make them think that they are spamming me when their not. So my question is wh...

Re: How to email a simple plain text on windows form application

 by emreozpalamutcu ¦  Wed Jun 22, 2011 11:18 pm ¦  Forum: General coding help ¦  Topic: How to email a simple plain text on windows form application ¦  Replies: 21 ¦  Views: 813

thank you for your helps i couldn't of done it without you lot. I managed to do it, I used my internet provides hostname which is smtp.virgin.net and i received the email.

Re: How to email a simple plain text on windows form application

 by emreozpalamutcu ¦  Wed Jun 22, 2011 11:11 pm ¦  Forum: General coding help ¦  Topic: How to email a simple plain text on windows form application ¦  Replies: 21 ¦  Views: 813

Okay but I don't want to ask the users who is using my program for there authentication and how could I do this can I just use my details to send the messages to my support email if yes what is the code for it

thank you

Re: How to email a simple plain text on windows form application

 by emreozpalamutcu ¦  Wed Jun 22, 2011 11:00 pm ¦  Forum: General coding help ¦  Topic: How to email a simple plain text on windows form application ¦  Replies: 21 ¦  Views: 813

sorry can you just explain that you mean I have to have security, authentication ?

Re: How to email a simple plain text on windows form application

 by emreozpalamutcu ¦  Wed Jun 22, 2011 10:50 pm ¦  Forum: General coding help ¦  Topic: How to email a simple plain text on windows form application ¦  Replies: 21 ¦  Views: 813

now i get this error

An unhandled exception of type 'System.Net.Mail.SmtpException' occurred in System.dll

Additional information: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first

Re: How to email a simple plain text on windows form application

 by emreozpalamutcu ¦  Wed Jun 22, 2011 10:36 pm ¦  Forum: General coding help ¦  Topic: How to email a simple plain text on windows form application ¦  Replies: 21 ¦  Views: 813

It kind of worked but i think it's the settings of my domain just to make sure can you check this error An unhandled exception of type 'System.Net.Mail.SmtpException' occurred in System.dll Additional information: Mailbox unavailable. The server response was: Access denied - Invalid HELO name (See R...

Re: How to email a simple plain text on windows form application

 by emreozpalamutcu ¦  Wed Jun 22, 2011 9:52 pm ¦  Forum: General coding help ¦  Topic: How to email a simple plain text on windows form application ¦  Replies: 21 ¦  Views: 813

I just realised i can right anything on the ip bit and i wrote local host with port 25 and it's open any other ideas.