mirror of https://github.com/dahall/Vanara.git
Updated test project for ExplorerBrowser
parent
d14609c256
commit
b57ebd928e
|
@ -60,6 +60,9 @@
|
|||
<DependentUpon>SimpleForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Theraot.Core" Version="3.2.5" Condition=" $(TargetFramework.StartsWith('net2')) Or $(TargetFramework.StartsWith('net3')) Or $(TargetFramework.StartsWith('net4')) " />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\PInvoke\Shell32\Vanara.PInvoke.Shell32.csproj" />
|
||||
<ProjectReference Include="..\..\Windows.Forms\Vanara.Windows.Forms.csproj" />
|
||||
|
|
|
@ -28,27 +28,13 @@
|
|||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.explorerBrowser1 = new Vanara.Windows.Forms.ExplorerBrowser();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// explorerBrowser1
|
||||
//
|
||||
this.explorerBrowser1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.explorerBrowser1.ContentFlags = ((Vanara.Windows.Forms.ExplorerBrowserContentSectionOptions)((Vanara.Windows.Forms.ExplorerBrowserContentSectionOptions.NoWebView | Vanara.Windows.Forms.ExplorerBrowserContentSectionOptions.UseSearchFolder)));
|
||||
this.explorerBrowser1.Location = new System.Drawing.Point(124, 48);
|
||||
this.explorerBrowser1.Name = "explorerBrowser1";
|
||||
this.explorerBrowser1.NavigationFlags = Vanara.Windows.Forms.ExplorerBrowserNavigateOptions.ShowFrames;
|
||||
this.explorerBrowser1.Size = new System.Drawing.Size(541, 335);
|
||||
this.explorerBrowser1.TabIndex = 0;
|
||||
//
|
||||
// SimpleForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Controls.Add(this.explorerBrowser1);
|
||||
this.Name = "SimpleForm";
|
||||
this.Text = "SimpleForm";
|
||||
this.Load += new System.EventHandler(this.SimpleForm_Load);
|
||||
|
@ -58,6 +44,5 @@
|
|||
|
||||
#endregion
|
||||
|
||||
private Vanara.Windows.Forms.ExplorerBrowser explorerBrowser1;
|
||||
}
|
||||
}
|
|
@ -20,7 +20,7 @@ namespace Microsoft.WindowsAPICodePack.Samples
|
|||
|
||||
private void SimpleForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
explorerBrowser1.Navigate(ShellFolder.Desktop);
|
||||
//explorerBrowser1.Navigate(ShellFolder.Desktop);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue