How do I save MailMessage object to the disk? The MailMessage object does not expose any Save() methods.
I dont have a problem if it saves in any format, *.eml or *.msg. Any idea how to do this?
...
I'm planning to write an application that, mainly, take inputs from the user and display them.
What can I do in order to support input in many languages?
Is there an easy way to support all native languages (windows supported)?
What's need to be done in order to prevent right-to-left languages to appear backwards? (I saw it happen whe...
Hi,
What would be a good ORM for Oracle in .NET? I am looking for something that can auto generate the classes and mapping etc. and is free. Something closer to Linq2Sql or SubSonic.
...
I know that the .NET Microframework supports the I²C bus. Are there some libraries for CAN or CANOpen too?
If not, does it support CAN without using other peripherials?
Can I build CAN support myself?
Regards,
Markus
...
I'm running into an issue where reading from a HttpResponseStream fails because the StreamReader that I'm wrapping around in reads faster that the Response Stream gets the actual response. I'm retrieving a reasonably small sized file (around 60k) but the Parser which processes the response into an actual object fails because it hits an ...
I am very interested in implementing similar functionality for .NET DataGridView as the popup that is displayed when you click on Vista's Explorer Details View hearders.
Any suggestions
...
Hello. Everyonce in a while I click in something that makes this symbol appear. What is it and what does it serve for?
...
I want to use reflection to set some fields according to data from a file. The information that I can have is TypeName, TypeValue and FieldName.
While this is trivial on classes (Activator.CreateInstance and PropertyInfo.SetValue), I am a bit dumbstruck when it comes to value types like Int32 which does not have any properties. I see th...
Our application draws drop shadows beneath thumbnails. It does this by creating a bitmap, getting a Graphics object using Graphics.FromImage, and then overlaying images using Graphics.DrawImage. I'm using it today for the first time over remote desktop, and it looks awful, because the shadows are being dithered. I don't know whether t...
In case of VSTO this AppDomain.CurrentDomain.SetupInformation.ConfigurationFile This Returns the Configuration file of the Executing Plugin, while shared add-in Returns False Configuration File as AppDomain returns d:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE instead of the Assembly of the Plugin. My Question is how can I get th...
I need a monitoring tool, which can monitor 50+ RSS feeds and send me an SMS with micro link, when certain words or sentences turn up in those RSS streams.
Of cause it would be great if such a tool was open source .NET such that I could optimize it for my specific use.
Does anyone know of such a tool?
...
Update can't work.
sqlstr ="UPDATE emp SET bDate='"+Convert.ToDateTime(txtbDate.Text)+"'";
can't update emp table.
I tried also using Parse method.
It throws error message :
The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value. The statement has been terminated.
...
What drivers should I use? Are they free?
How should the connectionstring look like?
Thanks
...
Mono is an open source version of the .net framework, having a quick look at it's website it claims to have Linq-to-Oracle support. How hard is this to get working, e.g. does oracle software need to be installed on the client machine?
...
web.config allow a globalization tag:
This setting will set the globalization for the entire ASP.NET application.
Does this tag work in app.config in standard forms applications too?
If yes... where shall it be placed?
Or.. is there another way to set the globalization for the entire forms application. Including dll's and all threa...
Hi All,
I have an ntext column in the database in which I am storing the Html Content or the text provided by the User. I want to implement history on the column and for this I am storing the content after and before the edit operation.
I want to find the Difference between the two values in the column and highlight the differen...
Does null have a type? How is a null value represented internally? What is happening in the following code?
void Foo(string bar) {...}
void Foo(object bar) {...}
Foo((string)null);
Edit: The answers so far have been unspecific and too high-level. I understand that a reference type object consists of a pointer on the stack which point...
Hello,
Is there anyway to programmatically add a strong named assembly to the GAC using C# code ?
Thanks
...
Linq to SQL makes use of ROW_NUMBER() for paging purposes, i.e. When you use Skip() and Take().
However, I can't seem to find a way of actually accessing ROW_NUMBER() values myself in the query. I need to find the ROW_NUMBER() of a record within a query (without bringing all the records back).
I've done this successfuly in T-SQL and Li...
I am trying to log what is happening when the Client gets a time out on a Web Service call.
Take a look at the HelloWorld code below. This is what I wish to do, but it seems IsClientConnected does not work as it allways return true.
[WebMethod]
public string HelloWorld() {
//.. Do the Webservice stuff
if (!Context.Response.IsC...