Skip to content

Commit

Permalink
Merge pull request #175 from gpetrou/previewHandler
Browse files Browse the repository at this point in the history
Make PreviewHandlerHost instead of PreviewHandlerControl inherit from…
  • Loading branch information
dwmkerr committed Jul 9, 2018
2 parents 917c90f + 7d47e44 commit 8805877
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,8 @@ namespace SharpShell.SharpPreviewHandler
/// <summary>
/// Base class for preview handler controls.
/// </summary>
public class PreviewHandlerControl : Form
public class PreviewHandlerControl : UserControl
{
/// <summary>
/// Initializes a new instance of the <see cref="PreviewHandlerControl"/> class.
/// </summary>
protected PreviewHandlerControl()
{
FormBorderStyle = FormBorderStyle.None;
}

/// <summary>
/// Sets the color of the background, if possible, to coordinate with the windows
/// color scheme.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace SharpShell.SharpPreviewHandler
/// The PreviewHandlerHost is the window created in the preview
/// pane which will hold the derived preview handlers UI.
/// </summary>
internal class PreviewHandlerHost : UserControl
internal class PreviewHandlerHost : Form
{
/// <summary>
/// Initializes a new instance of the <see cref="PreviewHandlerHost"/> class.
Expand All @@ -23,6 +23,8 @@ public PreviewHandlerHost()
// Initialize the component.
InitializeComponent();

FormBorderStyle = FormBorderStyle.None;

// Invisible by default.
Visible = false;
}
Expand Down

0 comments on commit 8805877

Please sign in to comment.