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
- DbConnectionStringBuilder.cs
- RedistVersionInfo.cs
- OrderByBuilder.cs
- XmlSchemaGroup.cs
- BinHexDecoder.cs
- ConfigurationStrings.cs
- ActiveXHelper.cs
- UrlPath.cs
- ObjectHandle.cs
- BeginStoryboard.cs
- AnimationStorage.cs
- FixedElement.cs
- HwndMouseInputProvider.cs
- XmlWriterDelegator.cs
- MessageQueueAccessControlEntry.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- fixedPageContentExtractor.cs
- ProtocolsSection.cs
- MinMaxParagraphWidth.cs
- RowToParametersTransformer.cs
- XmlSiteMapProvider.cs
- ErrorStyle.cs
- BoolLiteral.cs
- ButtonBase.cs
- TemplateEditingService.cs
- FunctionDetailsReader.cs
- SectionInformation.cs
- DropShadowBitmapEffect.cs
- PcmConverter.cs
- BaseComponentEditor.cs
- HttpProxyTransportBindingElement.cs
- XmlTextWriter.cs
- HostedHttpTransportManager.cs
- PathNode.cs
- PackagePart.cs
- UserUseLicenseDictionaryLoader.cs
- Panel.cs
- MetaChildrenColumn.cs
- ConditionalDesigner.cs
- ErrorHandler.cs
- TextRunCacheImp.cs
- DetailsViewModeEventArgs.cs
- FigureParagraph.cs
- CultureSpecificCharacterBufferRange.cs
- ProtocolsConfigurationHandler.cs
- DeleteHelper.cs
- SystemUnicastIPAddressInformation.cs
- PathSegment.cs
- ByteAnimationBase.cs
- XmlSchemaSimpleTypeRestriction.cs
- MenuItemAutomationPeer.cs
- MobileUserControl.cs
- CompositeTypefaceMetrics.cs
- ScaleTransform3D.cs
- FilterableAttribute.cs
- DbExpressionBuilder.cs
- UnionExpr.cs
- LeftCellWrapper.cs
- ClonableStack.cs
- EntityContainerRelationshipSet.cs
- SqlProviderServices.cs
- UnsupportedPolicyOptionsException.cs
- GuidelineSet.cs
- ReliabilityContractAttribute.cs
- ValidationError.cs
- DataKeyArray.cs
- AnnotationComponentManager.cs
- StyleCollection.cs
- AssemblyAssociatedContentFileAttribute.cs
- SmiEventSink_DeferedProcessing.cs
- SortedSet.cs
- LocalizableAttribute.cs
- TdsParser.cs
- OpCodes.cs
- HashHelper.cs
- SamlAttribute.cs
- BaseValidator.cs
- ProfileSettingsCollection.cs
- XNameConverter.cs
- wgx_commands.cs
- TextBox.cs
- TextDataBindingHandler.cs
- RijndaelCryptoServiceProvider.cs
- ChannelDispatcherCollection.cs
- EntityDataSourceWizardForm.cs
- Message.cs
- LocationSectionRecord.cs
- ClockController.cs
- SafeIUnknown.cs
- MarkupWriter.cs
- MouseActionConverter.cs
- DbParameterCollectionHelper.cs
- ValidatedControlConverter.cs
- QilLoop.cs
- DefaultClaimSet.cs
- DataPagerFieldItem.cs
- OracleNumber.cs
- Encoding.cs
- Cursor.cs
- WindowsHyperlink.cs