DO NOT Save Password in Web.Config or App.Config Directly

We saved passwords in project config file normally when we developed the project, However, it should be different when you deploy your project since most of time you should avoid your customer to touch some system passwords such as the database connection password, some of your API’s passwords such as Google+ API secret codes;

Continue reading “DO NOT Save Password in Web.Config or App.Config Directly”

Experienced Software Developer Still Faces to Code or Basic Acknowledge Test When Interview

As a IT guy, a Software Developer, a Microsoft technologies developer (from C++ to .NET ) with over 24 years development history, I still have to face to some awkward (embarrassed ? ) situations such as job interviews. I left school so many years, but some interviews still needed me to give correct answers for some basic computer and programming acknowledges, such as: What is C# ? What features does OO have ? or I was asked for writing code to give a good performance program to implement a scanning or searching case based on stack or queue ….

Continue reading “Experienced Software Developer Still Faces to Code or Basic Acknowledge Test When Interview”

How to disable Progress bar’s animation in .NET

The Windows Forms progress bar control comes with re-draw bar function by default, you will see the drawing process from left to right when you have one or multiple progress bar controls on your screen.

So how to disable the animation since in some cases we do not want to see the re-drawing.

There is no a good solution for it. But there is a simple way to resolve the issue, but just looked wired.

Just put the following code, and then you set the value to progress bar, the animation will gone ! Because the progress bar has a wired feature: when you set a value to it, and –1 right away, the animation will be disappear!

this.progressBar1.Maximum = 101;  
this.progressBar1.Value = 101;
this.progressBar1.Maximum = 100;