| | |
Resizing componenets
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Sep 2009
Posts: 9
Reputation:
Solved Threads: 0
Scott,
I found the fill property - the sqaure in the middle of the drop-down box - that was the missing piece of information. But now it expands to fill the entire tab that it is on - covering all the other controls. I need it to stay where it is - relative to its top left corner and resize from there, moving the position of the bottom right corner as I drag out the forms right and lower edges.
Dave
I found the fill property - the sqaure in the middle of the drop-down box - that was the missing piece of information. But now it expands to fill the entire tab that it is on - covering all the other controls. I need it to stay where it is - relative to its top left corner and resize from there, moving the position of the bottom right corner as I drag out the forms right and lower edges.
Dave
•
•
Join Date: Jan 2008
Posts: 2,052
Reputation:
Solved Threads: 118
See the attached project
Form1.Designer.cs :
Form1.Designer.cs :
C# Syntax (Toggle Plain Text)
namespace fitwebbrowserindinwindow { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.webBrowser1 = new System.Windows.Forms.WebBrowser(); this.SuspendLayout(); // // webBrowser1 // this.webBrowser1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.webBrowser1.Location = new System.Drawing.Point(-2, 129); this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20); this.webBrowser1.Name = "webBrowser1"; this.webBrowser1.Size = new System.Drawing.Size(620, 250); this.webBrowser1.TabIndex = 0; this.webBrowser1.Url = new System.Uri("http://www.google.com", System.UriKind.Absolute); // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(618, 379); this.Controls.Add(this.webBrowser1); this.Name = "Form1"; this.Text = "Form1"; this.ResumeLayout(false); } #endregion private System.Windows.Forms.WebBrowser webBrowser1; } }
Due to lack of freedom of speech, i no longer post on this website.
![]() |
Similar Threads
- Resizing of an array. (C++)
- Uploading and resizing images (PHP)
- Help with comments box and uploading and resizing images for users (PHP)
- JFrame Resizing (Java)
- Resizing an iframe that lives in a table (HTML and CSS)
- Form resizing (VB.NET)
- Resizing Root Partition in SUSE (*nix Software)
- Resizing paint objs (Java)
Other Threads in the C# Forum
- Previous Thread: Pls help me on how to make a more useful application install process
- Next Thread: CustomAction Install noob questions
| Thread Tools | Search this Thread |
.net access algorithm angle array barchart bitmap box broadcast c# capturing check checkbox client combobox control conversion convert csharp custom database datagrid datagridview dataset datetime dbconnection degrees delegate design development disappear draganddrop drawing encryption enum event excel file firefox form format forms function gdi+ httpwebrequest image index input install java label leak libraries list listbox mandelbrot math monodevelop mouseclick msword mysql operator path pause photoshop picturebox pixelinversion post programming radians regex remote remoting richtextbox round server sleep socket sql statistics stream string table tcpclientchannel text textbox thread time timer update usercontrol validation virtualization visualbasic visualstudio webbrowser windows winforms wpf xml






