Click here to Skip to main content
15,897,187 members
Articles / Desktop Programming / Windows Forms

A Simple Wait Window

Rate me:
Please Sign up or sign in to vote.
4.50/5 (22 votes)
8 Mar 2010CPOL4 min read 181.1K   15.4K   91  
Showing a wait window during a long running process
'
' * Created by SharpDevelop.
' * User: mjackson
' * Date: 05/03/2010
' * Time: 09:41
' * 
' * To change this template use Tools | Options | Coding | Edit Standard Headers.
' 

Imports System.Collections.Generic

''' <summary>
''' Provides data for the WaitWindow events.
''' </summary>
Public Class WaitWindowEventArgs
	Inherits EventArgs

	''' <summary>
	''' Initialises a new intance of the WaitWindowEventArgs class.
	''' </summary>
	''' <param name="GUI">The associated WaitWindow instance.</param>
	''' <param name="args">A list of arguments to be passed.</param>
	Public Sub New(GUI As WaitWindow, args As List(Of Object))
		MyBase.New()
		Me._Window = GUI
		Me._Arguments = args
	End Sub

	Private _Window As WaitWindow
	Private _Arguments As List(Of Object)
	Private _Result As Object

	Public ReadOnly Property Window() As WaitWindow
		Get
			Return _Window
		End Get
	End Property

	Public ReadOnly Property Arguments() As List(Of Object)
		Get
			Return _Arguments
		End Get
	End Property

	Public Property Result() As Object
		Get
			Return _Result
		End Get
		Set
			_Result = value
		End Set
	End Property
End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
United Kingdom United Kingdom
Unfortunately my real name was already in use as a code project login. For those of you who are wondering I am really Napoleon Solo. Sorry, I mean, Mark Jackson. Well, I do look a bit like him I think.

Comments and Discussions