Question: I have login form and a mainForm.

After loading MainForm, it will be hidden and load the LoginForm. If the user enters correct authentication then the loginForm will be disposed and the MainForm is shown. But the mainForm got flicks for the first time loading for several seconds.

I am implementing in C#.

How can I avoid this flicks? 

Thanks in advance

Answer: 
If you only want the necessary XML entities to be encoded, and not all possible named entities as specified in the [`entities`](http://tinymce.moxiecode.com/wiki.php/Configuration%3aentities) setting, you should probably set the [`entity_encoding`](http://tinymce.moxiecode.com/wiki.php/Configuration%3aentity_encoding) setting to `"raw"`:

```
tinyMCE.init({
    ...
    entity_encoding : "raw"
});

```
I don't know your database configuration, but I suggest you to check what charset you're are using in your database, I prefer UTF8.