|
thank you... But I try and its no work... there is my code :
Encoding encodeWidows1252 = Encoding.GetEncoding(1252);
Encoding encodeUTF8= Encoding.UTF8;
Byte[] tabByte = encodeUTF8.GetBytes(texte);
return Encoding.GetEncoding(1252).GetString(tabByte);
Mick@
|
|
|
|
|
Nobody can tell me what the problem ?
Mick@
|
|
|
|
|
Hi,
Sometimes when I perform a system task in my application, like copying a file, writing to the registry etc., it takes some time for that task to complete. And for that period my application seems to hang.
I can solve this problem by running this task in a separate thread.
But what i really want to show to the user is that how the task is progressing (via a ProgressBar).
How do I accomplish this?
regards,
Ratish Philip.
|
|
|
|
|
Use BackGroundWorker component. It can report progress during the operation
|
|
|
|
|
Hey,
I looked up BackgroundWorker component in the Web. It is an excellent class. But everywhere, in the example, they run a loop in the DoWork method and within the loop they call the ReportProgress method which in turn updates the progress bar.
What if the DoWork method contains a single line line instead of a loop (as in the case of copying a file or writing a value to the registry). Then how & when do we call the ReportProgress method?
|
|
|
|
|
|
Thanks a ton.
Ratish Philip
|
|
|
|
|
plz anyone know about displaying data in excel files using c# on command prompt thats using console application plz help me
|
|
|
|
|
ramyanaidu wrote: plz anyone know about displaying data in excel files using c# on command prompt thats using console application
You want to write data to an excel file, or read from it?
There are 10 kinds of people: those who understand binary and those who don't
|
|
|
|
|
|
Dear all,
I want some help regarding to higlight the text in the grid which when we provided in a textbox the text should be highlighted wherever the text exists in the grids data
Waiting for a reply
Thanks in advance.
sai krishna
|
|
|
|
|
I'm not sure if there is a direct way to do this....
To highlight the text navigate to each cell of the gridview and compare the cell content with the 'Search' text and if they match try to set the background color for that particular cell...
Koushik
|
|
|
|
|
But this cannot be done in easier manner so any one can help me
many thanks
sai krishna
|
|
|
|
|
dsaikrishna wrote: But this cannot be done in easier manner
Everything has to be easy?
There are 10 kinds of people: those who understand binary and those who don't
|
|
|
|
|
Hey its easy man...try to figure out your way...
Koushik
|
|
|
|
|
Hi,
I am wanting to know what I would need to do to retrieve a list of the referenced assemblies names and versions at runtime and add them to list etc.
Thanks, Andrew.
|
|
|
|
|
Use the following
System.Reflection.Assembly objAssembly = System.Reflection.Assembly.LoadFrom(@"Load your assembly( filename)");
objAssembly.GetReferencedAssemblies();
gives you the referenced assemblies.
Koushik
|
|
|
|
|
Any examples of how to put this information into a grid with name and version colums?
Thanks, Andrew.
|
|
|
|
|
construct a datatable at run time with Name and Version columns and after obtaining the referenced assemblies add rows to the datatable ..now u can bind this table to datagrid.
Koushik
|
|
|
|
|
thats a gr8 answer koushik......
--Sreeram
|
|
|
|
|
Thanks for your response. I never knew there could be so many code snippets....
|
|
|
|
|
I want that when click the Back and Forword browser button then display a messagebox. I know this problem is possible in javascript. How ? I am trying.
Anybody help me. Urgent
deepak_272@yahoo.com
|
|
|
|
|
Gagan Deep Garg wrote: I know this problem is possible in javascript.
How do you know it's possible? I searched Google...and found many users asking on different forums something like you want to know. And all the answers are You can't. It's not possible. Here [^]. See for yourself. You can try the onUnload event, but there you cannot know why the page is unloading, nor stop the unload.
There are 10 kinds of people: those who understand binary and those who don't
|
|
|
|
|
Will you please stop posting this ruddy question? How do you know it's possible? Have you seen it done? If so, view the source on that page. I would have to say though that I rather doubt this is possible. JavaScript operates in a sandboxed environment whereby it has no real knowledge of the browser that it's running in, and so can't interact with it in a meaningful way. This is by design.
Plus - don't put urgent in your posts. People will get to your questions and answer them when they can.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Oh yes - this is a C# forum. You're not even asking on the right forum.
Deja View - the feeling that you've seen this post before.
|
|
|
|