Jump to content


Check out our Community Blogs

Davide

Member Since 27 Dec 2009
Offline Last Active Apr 01 2013 08:11 PM
-----

Posts I've Made

In Topic: [SOLVED] Winforms Controls Inside Wpf

29 June 2012 - 04:02 AM

Dynamically adding controls is something you should know.

You might want to check out my tutorial (Attached to this post).

In Topic: [SOLVED] Winforms Controls Inside Wpf

29 June 2012 - 02:59 AM

You can add controls dynamically in code:
DataGridView myDataGrid = new DataGridView();

//More code here...

windowsFormsHost1.Child = myDataGrid;

In Topic: [SOLVED] Winforms Controls Inside Wpf

29 June 2012 - 01:03 AM

In your toolbox you should have a WindowsFormsHost control. Use that to contain any windows forms controls inside a WPF application.

In Topic: Some Techniques For Faster Application

24 June 2012 - 12:56 PM

Create a separate thread to do your work so that the user interface doesn't freeze.

//Assume this gets executed upon clicking a button
Thread myThread = new Thread(method);
myThread.Start();

//And this is the method that gets called and run in a separate thread 
//when you do myThread.Start()
public method( ... something usually goes here )
{
   //...
}

In Topic: Does Virtual Box Slow Down My Pc?

23 June 2012 - 12:50 PM

How do you justify that I gave very bad advice while you actually repeating my core advice? You can not say DeepFreeze is more efficient that System Restore since they have a real big difference. System Restore does not keep documents, while DeepFreeze keep all kind of files. If one ask which one is better to use, of course I will answer using DeepFreeze will be more reliable. But, when did I say System Restore is better than DeepFreeze?




Le wikipedia quote:


System Restore is a component of Microsoft's Windows Me, Windows XP, Windows Vista and Windows 7, but not Windows 2000,[1]operating systems that allows for the rolling back of system files, registry keys, installed programs, etc., to a previous state in the event of system malfunction or failure.

^ This means that it doesn't change user-created files on your computer, I also happen to know this because I restored my system plenty of times in my life. Infected files can infect the system after a restore. A restore also does not always wipe out infected system files.

I also happen to know plenty of system administrators using Deep Freeze in their labs/computer clusters to prevent viruses from sticking around.

I guess there is no solution to run malwares in a virtual space without installing another OS? or a program similar to deepfreeze (windows) to recover the system's state when needed?? is there?


Actually since Windows XP, you already have DeepFreeze's feature build in with the OS. You can use System Restore for this.



No, you cannot use system restore to "run malwares in a virtual space without installing another OS".

It is not your core advice, but if he, or anyone that finds this thread on Google picks this option because it is the easiest solution, they are going to have a very bad time.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download