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
- NamedPipeProcessProtocolHandler.cs
- MailMessageEventArgs.cs
- XsdDuration.cs
- SiteIdentityPermission.cs
- RegistryExceptionHelper.cs
- FlowDocument.cs
- ButtonBaseAdapter.cs
- FixedSOMLineCollection.cs
- RankException.cs
- FrameworkElementAutomationPeer.cs
- ToolBar.cs
- BasicExpandProvider.cs
- Latin1Encoding.cs
- Select.cs
- WeakReadOnlyCollection.cs
- LoadRetryAsyncResult.cs
- XPathPatternParser.cs
- DataGridViewCellParsingEventArgs.cs
- XmlHierarchicalDataSourceView.cs
- LinkArea.cs
- Region.cs
- ToolStripScrollButton.cs
- ScrollProviderWrapper.cs
- ControlCachePolicy.cs
- MiniAssembly.cs
- VoiceChangeEventArgs.cs
- XmlTextAttribute.cs
- TaiwanLunisolarCalendar.cs
- ObjRef.cs
- MapPathBasedVirtualPathProvider.cs
- SiteMap.cs
- UrlAuthorizationModule.cs
- CannotUnloadAppDomainException.cs
- OracleRowUpdatingEventArgs.cs
- MailAddress.cs
- ProxyHelper.cs
- StylusPointPropertyId.cs
- IdentitySection.cs
- EventLogWatcher.cs
- XmlWrappingWriter.cs
- RotationValidation.cs
- BezierSegment.cs
- MonthChangedEventArgs.cs
- CharacterString.cs
- XmlAttribute.cs
- EventLogEntryCollection.cs
- GeneralTransform3DTo2DTo3D.cs
- XmlTextReaderImplHelpers.cs
- ProtocolsConfigurationEntry.cs
- embossbitmapeffect.cs
- MembershipValidatePasswordEventArgs.cs
- ItemChangedEventArgs.cs
- EdgeProfileValidation.cs
- QueueSurrogate.cs
- ServiceXNameTypeConverter.cs
- Formatter.cs
- ProgressBarBrushConverter.cs
- Odbc32.cs
- GridViewUpdateEventArgs.cs
- WindowsFormsEditorServiceHelper.cs
- InkCanvasSelectionAdorner.cs
- EntityCollection.cs
- StatusBarPanel.cs
- PaperSource.cs
- RightsManagementEncryptionTransform.cs
- filewebrequest.cs
- ErasingStroke.cs
- DbParameterCollection.cs
- TemplateBamlTreeBuilder.cs
- Oci.cs
- wgx_commands.cs
- SingleAnimationBase.cs
- IgnoreFlushAndCloseStream.cs
- Effect.cs
- XmlSiteMapProvider.cs
- _SpnDictionary.cs
- DivideByZeroException.cs
- ControlBindingsConverter.cs
- ContractInstanceProvider.cs
- PanelStyle.cs
- ResourceAssociationType.cs
- OracleBoolean.cs
- PaperSource.cs
- EntityModelBuildProvider.cs
- ListenerElementsCollection.cs
- AccessKeyManager.cs
- EventProviderClassic.cs
- PenCursorManager.cs
- TextPointerBase.cs
- Crc32Helper.cs
- TemplateControlBuildProvider.cs
- WsdlParser.cs
- EventEntry.cs
- EventArgs.cs
- QueryExpression.cs
- RefreshEventArgs.cs
- ObjectToIdCache.cs
- LocalizabilityAttribute.cs
- DbConnectionFactory.cs
- CodeSubDirectoriesCollection.cs