Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- CharKeyFrameCollection.cs
- FormatException.cs
- FileReader.cs
- Simplifier.cs
- ResXResourceWriter.cs
- XmlSchemaComplexContentRestriction.cs
- InvalidOleVariantTypeException.cs
- InitializerFacet.cs
- Win32MouseDevice.cs
- XmlArrayItemAttributes.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- WebPartEventArgs.cs
- ProfileSettings.cs
- ReferencedCategoriesDocument.cs
- MenuItemBindingCollection.cs
- WebPartHelpVerb.cs
- BlurEffect.cs
- RelationshipFixer.cs
- MetadataArtifactLoaderComposite.cs
- DataMisalignedException.cs
- SaveCardRequest.cs
- DisplayMemberTemplateSelector.cs
- XsltException.cs
- OracleParameterBinding.cs
- cookie.cs
- ObjectStateEntry.cs
- XmlExceptionHelper.cs
- DesigntimeLicenseContext.cs
- TraceHandler.cs
- UIElement3D.cs
- FixedFindEngine.cs
- PageEventArgs.cs
- SwitchLevelAttribute.cs
- RelationalExpressions.cs
- UriScheme.cs
- FormatSettings.cs
- DataService.cs
- TogglePattern.cs
- PreparingEnlistment.cs
- XmlDataSourceView.cs
- OleDbEnumerator.cs
- AdRotator.cs
- BufferModesCollection.cs
- SizeValueSerializer.cs
- MessageQueuePermissionEntry.cs
- QueryOutputWriter.cs
- DashStyle.cs
- ExceptionHelpers.cs
- DictionaryBase.cs
- WeakReference.cs
- DataGridViewComboBoxEditingControl.cs
- ProtocolProfile.cs
- UpdatableWrapper.cs
- arabicshape.cs
- NamespaceExpr.cs
- DrawingContext.cs
- AppDomainEvidenceFactory.cs
- DesignerCategoryAttribute.cs
- FrameworkPropertyMetadata.cs
- _BaseOverlappedAsyncResult.cs
- ApplicationContext.cs
- BitmapCodecInfoInternal.cs
- ToolboxComponentsCreatedEventArgs.cs
- HttpProfileBase.cs
- ListViewInsertionMark.cs
- JsonXmlDataContract.cs
- _KerberosClient.cs
- UnknownBitmapDecoder.cs
- SqlDependencyUtils.cs
- LinkTarget.cs
- HtmlImage.cs
- PropertyDescriptorGridEntry.cs
- InvalidOleVariantTypeException.cs
- AutoResizedEvent.cs
- KeyGesture.cs
- CustomDictionarySources.cs
- NavigationEventArgs.cs
- XmlWriterSettings.cs
- DataGridColumnsPage.cs
- DocumentCollection.cs
- ZipIOExtraFieldElement.cs
- XmlCDATASection.cs
- AutoResizedEvent.cs
- AQNBuilder.cs
- SqlTriggerAttribute.cs
- StylusEditingBehavior.cs
- RsaKeyIdentifierClause.cs
- MailHeaderInfo.cs
- GridItemCollection.cs
- HttpClientProtocol.cs
- MouseWheelEventArgs.cs
- Utils.cs
- KerberosTokenFactoryCredential.cs
- NamespaceCollection.cs
- WSSecureConversation.cs
- SafeCloseHandleCritical.cs
- QueueException.cs
- RepeaterCommandEventArgs.cs
- login.cs
- Container.cs