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
- Trustee.cs
- Main.cs
- PageCatalogPart.cs
- OleDbConnectionInternal.cs
- DynamicPropertyHolder.cs
- StdRegProviderWrapper.cs
- sqlstateclientmanager.cs
- CodePageUtils.cs
- ParserExtension.cs
- WmlValidatorAdapter.cs
- WebPartDescription.cs
- ObjectConverter.cs
- FilterElement.cs
- ListViewItem.cs
- TypeElement.cs
- AsyncStreamReader.cs
- NamespaceInfo.cs
- diagnosticsswitches.cs
- VisualTransition.cs
- SqlCacheDependencyDatabaseCollection.cs
- RootBuilder.cs
- SemanticBasicElement.cs
- ExceptionHandler.cs
- WpfSharedXamlSchemaContext.cs
- BaseProcessor.cs
- Lasso.cs
- Misc.cs
- Int32Converter.cs
- TCEAdapterGenerator.cs
- TextCollapsingProperties.cs
- Vector3D.cs
- Helpers.cs
- ConfigurationStrings.cs
- Configuration.cs
- DataFormats.cs
- MethodAccessException.cs
- WebPartManager.cs
- Vertex.cs
- IsolatedStorage.cs
- Cursor.cs
- KeyValueConfigurationCollection.cs
- GlyphingCache.cs
- ExpressionEditorAttribute.cs
- ErrorTolerantObjectWriter.cs
- PrintPageEvent.cs
- ControlDesigner.cs
- CopyAttributesAction.cs
- DataServiceQuery.cs
- InternalRelationshipCollection.cs
- ErrorFormatterPage.cs
- StringResourceManager.cs
- ExpressionBuilderContext.cs
- RowParagraph.cs
- LeaseManager.cs
- WebFormsRootDesigner.cs
- TextRangeEdit.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- ZipPackage.cs
- ServiceDesigner.cs
- ScriptMethodAttribute.cs
- PluralizationService.cs
- GridViewRowCollection.cs
- Point.cs
- FormsAuthenticationUser.cs
- DSACryptoServiceProvider.cs
- StyleSheetComponentEditor.cs
- QilFunction.cs
- SecUtil.cs
- _Rfc2616CacheValidators.cs
- DeleteHelper.cs
- XmlILAnnotation.cs
- HttpWebResponse.cs
- DataGridHeaderBorder.cs
- DetailsViewAutoFormat.cs
- PanelStyle.cs
- backend.cs
- HttpListenerResponse.cs
- AuditLogLocation.cs
- HWStack.cs
- CodeTypeParameter.cs
- TreeViewDesigner.cs
- VerificationAttribute.cs
- UmAlQuraCalendar.cs
- Tablet.cs
- CustomCredentialPolicy.cs
- OracleBFile.cs
- XmlIncludeAttribute.cs
- SplashScreenNativeMethods.cs
- MulticastOption.cs
- XmlSchemaException.cs
- TrayIconDesigner.cs
- DataControlField.cs
- XmlDictionaryString.cs
- QilBinary.cs
- XmlChoiceIdentifierAttribute.cs
- SqlConnectionFactory.cs
- GridEntry.cs
- WebPartEditVerb.cs
- StylusCollection.cs
- IERequestCache.cs