tags:

views:

410

answers:

2

I have created wpf application with listbox having some images. Now what i want is if i inserted usb or cd into the system having some images my application has to start automatically once i inserted usb or cd having images and application has to ask whether to add those images of usb or cd to the application by default.

Any source code plz... any suggestions also...

Thanks in advance

A: 

sir please tell me ...how i get next window after completion of progress bar ,below the coding of progress bar

using System;

using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; using System.Timers;

namespace ProgressBarTutorial { /// /// Interaction logic for Window1.xaml /// public partial class Window1 : Window { private Timer Timer;

    public Window1()
    {

    }


    private void Window_Loaded(object sender, RoutedEventArgs e)
    {



        Duration duration = new Duration(TimeSpan.FromSeconds(20));

        DoubleAnimation doubleanimation = new DoubleAnimation(200.0, duration);

        PBar.BeginAnimation(ProgressBar.ValueProperty, doubleanimation);



    }


    private void PBar_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
    {

    }



    //private void CreateDynamicProgressBarControl()
    //{
    //    ProgressBar progbar = new ProgressBar();
    //    progbar.IsIndeterminate = false;
    //    progbar.Orientation = Orientation.Horizontal;
    //    progbar.Width = 150;
    //    progbar.Height = 15;
    //    Duration duration = new Duration(TimeSpan.FromSeconds(10));
    //    DoubleAnimation doubleanimation = new DoubleAnimation(100.0, duration);
    //    progbar.BeginAnimation(ProgressBar.ValueProperty, doubleanimation);
    //    sbar.Items.Add(progbar);
    //}


}  

}

abhijeet