I'm making a progress screen for an application and when I'm uploading a file he gives the "percentage progress" IN the text (realtime). That's nice and good BUT I always have to do: txt1.Text = txt1.Text.replace(previousPercentage, newPercentage)
And because there is a lot of text in my textbox it starts to blink when it's refreshed (it doesn't blink when I add something to it).
How often are you running the replace command ? Perhaps you need to run it on a string and then put that string in your label ?
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
"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 )
It sais "invalid modifier 'virtual' for C".
I'll try Explaining again...
I have these classes:
public Class C<br />
public abstract Class A<br />
protected C;<br />
public Class D : C<br />
public Class B : A<br />
private D;<br />
When I do this: B = new B();, I have D AND C in B.
And I need ONLY ONE, which is the newer one - D.
How can I make the Class A use the new one (D) insted of the old one?
Hello. I have to make a program, that is listening to keyboard, and if some combination of keys are pressed, it blocks other key.
EXAMLE - if i press "Lshift+Rshift" the F1 key is blocked.
How can i do it? How can i get the combination of 2 keys?
Is there any return statement in "SpecialCleanup()" method also am assuming that the exception could be from SpecialCleanup() method only so you are not able to figure out what was the original exception.
I would suggest that you log the stack trace as soon as the exception is raised !!! Use exception handling block and logging block provided by MS ...
Jaiprakash M Bankolli
Assuming that you are creating a windows application, change your project settings to Console application (won't change anything in your programm, only you will have console window available for debugging purposes).
You are running in to a problem known as "breaking the stack", which is why the exception doesn't have the relevant stack trace data. You were on the right track, but need to change the code so it looks like this:
The difference here is that throw ex; throws a new exception where throw; re-throws the original exception.
That being said, you really should try to avoid catching general exceptions and catch specific exceptions that you know you can recover from. What is the difference between SpecialCleanup and NormalCleanup?
In just two days, tomorrow will be yesterday.
We know that XNA tool is good for develop games,
We also know that Visual Studio 2005 with DirectX9.0c SDK is another tool to do this ,It use DirectX3D's classes to build the game ,I have found that the XNA tool uses its own classes, any differents between XNA environment and DirectX SDK if only runs on PC?
I would like to know if it is possible to read a particular file from DVD present inn the DVD -Rom . The concept is the Main exe should search for all dvd-roms in the system to find this file and should call another exe if the file exists in any one of the DVD in the DVD-ROM.
I don't know how to read from DVD -ROM with C#.Any Help would be appreciated