|
Hi All!
i have a small program that runs and check if a file exists.
The program is a win app, how can i make the task apear in the right and not as a task in the task bar, i mean in the ToolBar like babylon or anti virus beside the launguage bar.
i am refering in the minimize mode.
how can i do it in C#?
Do i need to draw an icon for it?
Thanks .
|
|
|
|
|
Hi!
You'll need a NotifyIcon for this. I think there's also an article here that deals with the topic.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
|
Yes thank you
|
|
|
|
|
Hi All. Can someone please help. I am using vs 2003 and SQL 2000. I have to insert about 50000 records into sql. I have tried to use a tread to do this, but when the user say closes the app while the second thread is still running, the app is closed, but the thread is still running and still inserting rows into the database. The code that i used to create a thread is as follows: Thread t1 = new Thread(new ThreadStart(ThreadLoadingData)); t1.Name = "ThreadLoadingData"; t1.Start(); I used the tread in the same class. In ThreadLoadingData i go to different classes for inserting the data. Thera are 5 tables that i must insert into, each one i use a different class. Now i also need to display a progress bar for this, how do i go about solving this problem
Thanks
|
|
|
|
|
Well to close the thread :
t1.Abort ();
This causes a ThreadAbortException you just catch it in the method of the thread (in this case "ThreadLoadingData").
When the exception is caught you just stop uploading.
For the rest, the progress stuff, there is a special class in .net that handles this, I don't have the time to look, but I suggest you take a look online for this in Google or some other searchengine.
Don't you also love the code?
|
|
|
|
|
I think that there is a usefull articale in the threading section its title is: "Wait for threads in a ThreadPool object to complete" By gtamir.
here is its URL: http://www.codeproject.com/csharp/waitforthreads.asp[^]
I wish you find what do you want exactlu in it.
Regards
Ahmed Ismail
|
|
|
|
|
|
Hello,
I want to convert VS 2005 C# project and a dll to VS 2003. It has not used any framework 2.0 libraries.
Do you have idea?
Kind Regards !
jayasshc
|
|
|
|
|
|
Thanks,
Yes I tried google, but could not find a proper tutorial. Actually I am a novice to C#. Does MSBuild convert 2005 dll to 2003? If you could you pls give me more details or proper tutorial?
Thanks Again!
jayasshc
|
|
|
|
|
You can decompile it and rebuild into vs2003. You can use the program Reflector and the plugin FileGenerator
Regards
|
|
|
|
|
Thanks,
I am a novice to C#. Could you please give me more details about "Reflector and the plugin FileGenerator" ?
Thanks In Advanced!
jayasshc
|
|
|
|
|
Download the program Reflector (http://www.aisto.com/roeder/dotnet/Download.aspx?File=Reflector) and later download and install the filegenerator plugin (http://www.jasonbock.net/JB/Code/FileGenerator.zip) in the program.
Open Reflector, and open the dll with it. Then, select the dll, clic on tools and choose Generate files.. It's easy
Regards
|
|
|
|
|
Thank for your help.
I downloaded reflector,and file generator. How can I integrate file generator with reflector. There is no file generator in tool menu.
Thanks
jayasshc
|
|
|
|
|
Copy the FileGenerator dll to the Reflector's folder
Regards
|
|
|
|
|
I tried but couldn't.
The problem is version 1.1 does not allow to add reflector as a referrence.
I am really in a truble, Could you please do me a favour
If i send you my two dlls can you try to convert them.
I will send them now.
My name is Charith Jayasundara
email : csecharith@yahoo.com
Thanks A Lot!!!
jayasshc
|
|
|
|
|
I want to highlight the text in a textBox as user types text in other text box. Please given me code example. I remembered it but now I have forgotten. Thanks
Syed Shahid Hussain
|
|
|
|
|
Hello
private void textBox2_TextChanged(object sender, EventArgs e)
{
if (textBox1.Text.IndexOf(textBox2.Text) != -1)
{
textBox1.SelectionStart = textBox1.Text.IndexOf(textBox2.Text);
textBox1.SelectionLength = textBox2.TextLength;
}
else
{
textBox1.SelectionStart = 0;
textBox1.SelectionLength = 0;
}
}
When the user types in textBox2, text is automatically selected in textbox1. If the text is not present, selection is canceled.
Regards
|
|
|
|
|
Hi
My dear friend your really really thanks. You dont measure my happiness. Thats really I want. So nice of You.
Shahid
|
|
|
|
|
:-OYou are welcome.
Regards
|
|
|
|
|
how to input a sign for integration in my code? Thanks!
|
|
|
|
|
If your subject and your question are the same, either the subject is far too long, the question is far too short, or both.
In this case both. The question contains far too little information.
---
b { font-weight: normal; }
|
|
|
|
|
zechariah wrote: how to input a sign for integration in my code?
Define: "sign"
|
|
|
|
|
How I write mormated text to the text box, so that i can make some word in BOLD , Italic or UnderLine.
and chage the yexy size of certain words?
If the answer is : "that i can not";
is there a control that enables me to do that?
thanks
** Ahmed Ismail **
|
|
|
|