|
I think it happens because the body of those mails are HTML so why you don't use the WebBrowser Control for showing them.
it can show both plain text and HTML
|
|
|
|
|
hello friends
can anybody tell me how to convert the .nt 2005 to 2003 version can it
be possible plzzzz reply
|
|
|
|
|
Microsoft Has a tool name "MSBuild Extra Toolkit for .NET1.1" aka "MSBee"
which can compile your solutions in vs 2005 with .net1.1
http://msdn2.microsoft.com/en-us/vstudio/aa718347.aspx
but it didn't work for me because I used somethings that did not exist in .net1.1
maybe works for you
good luck
|
|
|
|
|
DataBase Rights
Time - 1 month , 3 months , 6 months , 1 year
DBRIGHTS
id auto inc , primary
employerid
startdate , enddate
this is the database and time zone is given for each register user he has to click any one from 1month to 1 year. depending upon this he will recive msg that his account get expire please register again
anyoone plz told me how i do that
|
|
|
|
|
Use Thread which is always active in background.
For more help contact on chetan.patel@rigelnetworks.com
Best Regards,
Chetan Patel
|
|
|
|
|
use Session concept in ur application.This will help to count amount of days/time/month.
Regards
Chintan
www.visharadsoft.com
(Nothing is so purify as KNOWLEDGE)
|
|
|
|
|
Hi,
Thanks in advance.
I want to post a XML file to a URL (in window application) and i m trying this code but system give me a error message at oBjStreamWriter = File.CreateText("http://...../XMLFolder/Test.xml"); "URI format are not supported", please help me if anybody can.
StreamWriter mWriter;
StreamWriter oBjStreamWriter;
StreamReader oBjStreamReader;
StringReader ReadOutput;
XmlTextReader xmltextreader;
HttpWebRequest oBjRequest = (HttpWebRequest)WebRequest.Create("http://...../XMLFolder/");
oBjRequest.Method = "POST";
oBjRequest.ContentLength = XMLStr.Length;
oBjRequest.ContentType = "application/x-www-form-urlencoded";
mWriter = new StreamWriter(oBjRequest.GetRequestStream());
mWriter.Write(XMLStr);
mWriter.Close();
oBjStreamWriter = File.CreateText("http://...../XMLFolder/Test.xml");
oBjStreamWriter.WriteLine(XMLStr);
oBjStreamWriter.Close();
WebResponse oBjWebResponse = oBjRequest.GetResponse();
oBjStreamReader = new StreamReader(oBjWebResponse.GetResponseStream());
string ResultOutput = oBjStreamReader.ReadToEnd();
oBjStreamReader.Close();
Arun Kr
|
|
|
|
|
Once you put HTTP, you are asking for an online resource. If the file is local, lose the HTTP
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
if u r dealing with local desktop, dont use http ://..., as this will make it to use online resource.Instead, use localhost://<path of="" virtual="" directory=""> and keep the file say file.txt to this virtual directory.
Regards
Chintan
www.visharadsoft.com
(Nothing is so purify as KNOWLEDGE)
|
|
|
|
|
can we choose printer during execution if yes please give me source.
Nikesh Kr. Yadav
CSS Infotech
Sec- 31
Gurgaon,
Haryana(India)
|
|
|
|
|
I'm not sure if you're using Visual Studio 2005 but if you are, theres a component called a PrintDialog that allow the user to choose which printer they would like to use.
Lester
http://www.lestersconyers.com
|
|
|
|
|
|
You can use classes in System.Management namespace and some WMI query to do that
for that I suggest you to search MSDN for WMI or windows management instruments
and of course the program "Scriptomatic2" from Microsoft guys can help you a lot it can generate queries you needed for retrieving current printers and set the default printer.
all you need is just some coding.!
good luck
|
|
|
|
|
Hello developers,
Does anybody know a good e-link to Threading tutorial for windows application in C#.Net.
Please make sure i am looking for windows application and not console because i could already see many for console.
But i cant find good article for windows application. I am looking for such article which takes me from beginner to advance level threading for windows application only.
Thanx
James
|
|
|
|
|
they work exactly the same in both instances.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Do they ?
But i tried one example and it didn't work fine on windows but works fine over console. I think their is a lil difference. May be not much but i need to know that difference. Ok ill look again over some console applications. Lets see if it works..
|
|
|
|
|
Hi James,
Only the thread a Form is created on can manipulate the form and it's child controls. Trying to set properties on controls from a worker process will throw an exception.
You would have to use the Invoke() method and send a delegate to the form that will be run on the controlling thread. Besides that they work pretty much the same.
T
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Yeh you are right. Just have a look in what i did. Its working but i want to know if there is any other better approach..
<br />
private void Startbtn_Click(Object sender, EventArgs e)<br />
{<br />
Thread t = new Thread(new ThreadStart(try));<br />
t.Start()<br />
}<br />
<br />
void try()<br />
{<br />
int count = 0;<br />
while (true)<br />
{<br />
if(count > 1000)<br />
{<br />
break;<br />
}<br />
Thread.Sleep(1000);<br />
if(InvokeRequired)<br />
Invoke(new new_try_delegate(new_try));<br />
count++;<br />
}<br />
}<br />
<br />
public delegate void new_try_delegate();<br />
<br />
void new_try()<br />
{<br />
textBox1.Text += "This is new Thread" + Environment.NewLine;<br />
}<br />
<br />
<br />
Now the above code just repeat the message "This is new Thread" for 1000 times and it works fine. But now my questions are:---
1.] Can i use same delegate call i.e. public delegate voud new_try_delegate() for all different threads i create.
And does it work the same way if i am writing data into textbox from different location of my application.
Lastly can you suggest me some more options to test so that i understand it better.
Cheers
|
|
|
|
|
I see some problems in your code.
1. What happens when you hit the start button a few times without waiting for the thread to finish.
2. Invoking the delegate from the thread does work from your thread, but this method requires that each object calling to the new_try() method know about the delegate and call that.
3. If the new_try() method is called from any other thread than the GUI thread, it will take time to execute the call.
The new_try() method should take the form of
public delegate void new_try_delegate();
new_try_delegate newTryEvent = new new_try_delegate(new_try);
public void new_try()
{
if (this.InvokeRequired)
{
Invoke.Begin( newTryEvent );
}
else
{
textBox1.Text += "This is new Thread" + Environment.NewLine;
}
}
Now you can call new_try() from any other thread and the GUI thread will do the work of displaying the string.
As for the first problem, you should always check to see if the thread is running before starting another instance of that thread so that the user doesn't run themselves out of resources.
Phil
|
|
|
|
|
That's a nice way of doing it. Didn't know about the InvokeRequired property.
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
okay... thanks for pointing that out.
|
|
|
|
|
Threads are mind bending to get your head round when you get into them. Took me ages to figure them out.
You already know a delegate is a function pointer, and as long as it isn't executed by a worker thread, and is instead processed by the Main thread, it will be thread safe and valid for UI manipulation. You can create as many instances of delegates pointing to the same function as you like, and simply run them on the main thread.
Try spawning multiple threads and firing off delegates for the same function with different fields. The invoke method lets you supply a parameter list after the delegate so you can supply arguments to the invoked function.
Also, you could experiment with.. i think it's Anonymous Methods, where you create the method body with the delegate declaration.
Good luck
T
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Hello friends,
can we get default program of file specified.
E.g. default program for .mp3 file may be windows media player/winamp like that.
Is there any method which gives such details of default program.
thanks in advance.
Rahul Kulkarni
|
|
|
|
|
You get that info via the registry, I don't know of a method that will look it up for you, however.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|