Thursday 8 November 2012

Hide and Run process in silverlight

//how to hide the control in sliverlight

       textobox1.Visibility = Visibility.Collapsed;


//start the any  process

    dynamic cmd = AutomationFactory.CreateObject("WScript.Shell");
               cmd.Run("calc.exe", 1, true);


/start the any  process seocnd way


dynamic excel = ComAutomationFactory.CreateObject("Excel.Application"); 




Sunday 4 November 2012

Sart process in c#

Start process in c#


//add the namespace
using System.Diagnostics;


//now write the code lets i want to start the process of cmd 


      public void StartCmd()
        {   Process.Start("cmd");

        }