|
Also note that assemblies aren't always just one file.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Please, How to Read EEPROM Smart Card .
|
|
|
|
|
RTFM, how the hell are we suppose to know?
|
|
|
|
|
ewww !
a very very very very very bad question !
Type of EEProm, How this eprom est connected to your PC...
We need details please !
|
|
|
|
|
Hello All.
I was wondering if anybody new the framework or some example code to send an email from a windows application.
This can be done via launching a window which will have an 'automatic' attachment to be sent as an issues report.
This could also be done transparenently, i.e. Without launching the outlook window...Probably allot more complicated.
Any help would be appreciated.
Cheers
|
|
|
|
|
Like This[^]
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
just look www.codeproject.com/KB/cs/Sending_Mails_From_C_.aspx
or
First find the System.Web.dll in your computer drive where .NET Framework installed
Then add a reference to that dll in your C# windows application.
then write following code to send email....
string smtpServer;
smtpServer= "127.0.0.1";
System.Web.Mail.MailMessage msg = new System.Web.Mail.MailMessage();
msg.From = "From Email Address";
msg.To = "To Email Address";
msg.Body = "Body here";
System.Web.Mail.MailAttachment attachFile = new System.Web.Mail.MailAttachment("Filepath");
System.Web.Mail.SmtpMail.SmtpServer = smtpServer; System.Web.Mail.SmtpMail.Send(msg);
or
First find the System.Web.dll in your computer drive where .NET Framework installed
Then add a reference to that dll in your C# windows application.
then write following code to send email....
string smtpServer;
smtpServer= "127.0.0.1";
System.Web.Mail.MailMessage msg = new System.Web.Mail.MailMessage();
msg.From = "From Email Address";
msg.To = "To Email Address";
msg.Body = "Body here";
System.Web.Mail.MailAttachment attachFile = new System.Web.Mail.MailAttachment("Filepath");
System.Web.Mail.SmtpMail.SmtpServer = smtpServer; System.Web.Mail.SmtpMail.Send(msg);
|
|
|
|
|
|
You need to do it carefully, Example: do not double click a submit button.
|
|
|
|
|
leppie wrote: Example: do not double click a submit button
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Here you are: RTFM[^]
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Lol, his blatant repost invoked the same response!
|
|
|
|
|
RTFM [and] "Go look on google" are two inappropriate responses to a question. If you don't know the answer or don't wish to help, please say nothing instead of brushing off someone's question. Politely showing someone how you searched or obtained the answer to a question is acceptable, even encouraged. ... If you wish to remind a user to use search tools or other resources when they have asked a question you feel is basic or common, please be very polite. Any replies for help that contain language disrespectful towards the user asking the question, i.e. "STFU" or "RTFM" are unacceptable and will not be tolerated.
– Forum Policies and Expectations — Ubuntu Forums
|
|
|
|
|
Sorry, you are reading the wrong[1] FM! Now STFU!
[1] This is CP, not Ubuntu
|
|
|
|
|
I quoted that because I consider it's common sense and it can be applied pretty much in any technical forum. But whatever...
|
|
|
|
|
blackjack2150 wrote: But whatever...
I was joking, hence the 'joke' icon Of course we should follow general messageboard etiquette.
|
|
|
|
|
Hi there! I have a question, maybe some of you guys can help me. I have a string, and when I am saving, it saves with the extension of like the file name + 0001, then 0002, etc. I want to know if is possible to have just the filename without any extensions like 0001. Thx ahead!
|
|
|
|
|
laziale wrote: I have a string, and when I am saving, it saves with the extension of like the file name + 0001, then 0002, etc. I want to know if is possible to have just the filename without any extensions like 0001.
I have no idea what you are talking about. Look at Path.GetFileNameWithoutExtension() maybe.
|
|
|
|
|
here is what I am talking about: Like I have a picture, and I have like a third party library, and I am converting the picture to PDF, and when is converted it comes the name of the picture, converted in PDF, like if the name of the picture was MaldivesHotel.bmp after conversion is MaldivesHotel0001.pdf. I want to remove that 0001 from the name. Is it possible?
|
|
|
|
|
laziale wrote: e if the name of the picture was MaldivesHotel.bmp after conversion is MaldivesHotel0001.pdf. I want to remove that 0001 from the name. Is it possible?
Very possible. Use the function I mentioned previously, then do File.Move(badfilename, filenamewithoutextension + ".pdf") .
|
|
|
|
|
The classes in third party library might have properties that allow you to control how the pdf file will be named. If not you can always rename a file programmatically.
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
Try this :
static void Main()
{
FileInfo fileInfo = new FileInfo("file name.exe");
string withoutExt = Regex.Replace(fileInfo.Name, fileInfo.Extension, "");
Console.WriteLine(withoutExt);
Console.ReadKey();
}
|
|
|
|
|
Hello everyone,
My situation is,
- when design the old version web services, I have not considered a SOAP header is needed for a specific web services method;
- client is generating proxy code from old version web services, which is not considering of SOAP header issues as well;
- now I want to upgrade web services code to retrieve some SOAP header from client request, and let client to set the SOAP header from each request;
My question is, since client is using old proxy which does not contain any information about how to generate SOAP header automatically, how could they add SOAP header in each request?
thanks in advance,
George
|
|
|
|
|
i want create a font which height/width equals an ratio?
eg:height/width=0.7.
in the c# i dont find the way to achieve it.
we can only set the size of the font.
and the font's height and width is readonly.
from vevi
|
|
|
|