|
Thanks Christian,
I want to confirm that when using Visual Studio 2005 to build a C# Class Library, the generated assembly Class Library is dependent on .Net 2.0? And for the same case, Class Library generated by Visual Studio 2003 is dependent on .Net 1.1? Could you help to confirm again?
Are thre any ways to change the hard-coded dependencies? For example, in Visual Studio 2005, I could make a C# Class Library which is dependent on .Net 1.1?
regards,
George
|
|
|
|
|
|
Thanks Hessam,
It seems that binary code for .Net 2.0 is not compatible with .Net 1.1? And it is why users need to make build for .Net 1.1 in VS 2005 (so that Microsoft provides MsBee)?
regards,
George
|
|
|
|
|
In the software on which i am working there is module just like Microsoft outlook i.e a user can configure its mail id and can download his mails in software.
What my problem is while downloading mails:-
If content is plain text then its all OK,
But if its colour text or having different encoding then its shows tags(related to colour, text size).
means look messed up.
So, how can i overcome this, so that mails display correct?
|
|
|
|
|
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.
|
|
|
|