Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / WinForms / Managed / System / WinForms / WebBrowserProgressChangedEventHandler.cs / 1 / WebBrowserProgressChangedEventHandler.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms {
///
///
///
/// Delegate to the WebBrowser ProgressChanged event.
///
///
public delegate void WebBrowserProgressChangedEventHandler(object sender, WebBrowserProgressChangedEventArgs e);
///
///
///
/// Provides data for the event.
///
///
public class WebBrowserProgressChangedEventArgs : EventArgs {
private long currentProgress;
private long maximumProgress;
///
///
///
/// Creates an instance of the class.
///
///
public WebBrowserProgressChangedEventArgs(long currentProgress, long maximumProgress) {
this.currentProgress = currentProgress;
this.maximumProgress = maximumProgress;
}
///
///
///
/// Specifies current number of bytes donwloaded. CurrentProgress/MaximumProgress*100 = progress percentage.
///
///
public long CurrentProgress {
get {
return currentProgress;
}
}
///
///
///
/// Specifies total number of bytes of item being downloaded.
/// CurrentProgress/MaximumProgress*100 = progress percentage.
///
///
public long MaximumProgress {
get {
return maximumProgress;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms {
///
///
///
/// Delegate to the WebBrowser ProgressChanged event.
///
///
public delegate void WebBrowserProgressChangedEventHandler(object sender, WebBrowserProgressChangedEventArgs e);
///
///
///
/// Provides data for the event.
///
///
public class WebBrowserProgressChangedEventArgs : EventArgs {
private long currentProgress;
private long maximumProgress;
///
///
///
/// Creates an instance of the class.
///
///
public WebBrowserProgressChangedEventArgs(long currentProgress, long maximumProgress) {
this.currentProgress = currentProgress;
this.maximumProgress = maximumProgress;
}
///
///
///
/// Specifies current number of bytes donwloaded. CurrentProgress/MaximumProgress*100 = progress percentage.
///
///
public long CurrentProgress {
get {
return currentProgress;
}
}
///
///
///
/// Specifies total number of bytes of item being downloaded.
/// CurrentProgress/MaximumProgress*100 = progress percentage.
///
///
public long MaximumProgress {
get {
return maximumProgress;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MaterialGroup.cs
- FontFamilyIdentifier.cs
- CopyAction.cs
- Lock.cs
- Geometry.cs
- ErrorFormatter.cs
- BlurEffect.cs
- UnsafeNativeMethods.cs
- PerformanceCounterManager.cs
- DependencyObjectType.cs
- DuplicateWaitObjectException.cs
- DataGridViewColumnHeaderCell.cs
- XmlNotation.cs
- FactoryGenerator.cs
- SafeLibraryHandle.cs
- PixelFormatConverter.cs
- BitStack.cs
- LocationSectionRecord.cs
- ReadOnlyAttribute.cs
- DataGridViewRowEventArgs.cs
- SQLRoleProvider.cs
- EncryptedXml.cs
- SpanIndex.cs
- loginstatus.cs
- WindowsEditBoxRange.cs
- WindowsHyperlink.cs
- XmlSchemaObject.cs
- LinqDataSourceStatusEventArgs.cs
- EdmProperty.cs
- InstancePersistenceCommandException.cs
- TypeUtil.cs
- SqlStream.cs
- OleDbPropertySetGuid.cs
- Label.cs
- MsdtcClusterUtils.cs
- SpellerError.cs
- BinaryCommonClasses.cs
- RegexCompilationInfo.cs
- SchemaImporter.cs
- DropSource.cs
- ToolStripPanelRow.cs
- Formatter.cs
- WindowsStatic.cs
- XmlSchemaObjectCollection.cs
- SchemaElementLookUpTableEnumerator.cs
- CheckBoxPopupAdapter.cs
- XmlSerializableServices.cs
- CultureMapper.cs
- SafeNativeMethods.cs
- SpecialNameAttribute.cs
- PointConverter.cs
- ErrorWrapper.cs
- SizeConverter.cs
- TemplateControlCodeDomTreeGenerator.cs
- DocumentCollection.cs
- SystemIPv6InterfaceProperties.cs
- StreamSecurityUpgradeAcceptorBase.cs
- ReadOnlyPropertyMetadata.cs
- MbpInfo.cs
- SynchronizedInputHelper.cs
- XmlSerializableServices.cs
- x509utils.cs
- ListViewContainer.cs
- MsmqVerifier.cs
- CursorConverter.cs
- XmlSchemaDocumentation.cs
- XamlLoadErrorInfo.cs
- Monitor.cs
- KeyValueInternalCollection.cs
- RemotingException.cs
- SqlDesignerDataSourceView.cs
- SortExpressionBuilder.cs
- WebBrowserProgressChangedEventHandler.cs
- SystemParameters.cs
- IsolatedStorageException.cs
- OptimizedTemplateContent.cs
- SelectionPattern.cs
- TableStyle.cs
- LiteralControl.cs
- EventRecord.cs
- ObjectConverter.cs
- WindowsButton.cs
- ColumnHeader.cs
- IItemContainerGenerator.cs
- TypefaceMetricsCache.cs
- BindingManagerDataErrorEventArgs.cs
- WebPartDisplayModeEventArgs.cs
- DecimalAnimationUsingKeyFrames.cs
- BindingContext.cs
- Misc.cs
- Renderer.cs
- HttpCacheVary.cs
- SynchronizationScope.cs
- Function.cs
- HandleCollector.cs
- ListBox.cs
- TemplateKeyConverter.cs
- MediaElementAutomationPeer.cs
- XmlSchemaObjectTable.cs
- Bidi.cs