Quantcast
Viewing latest article 2
Browse Latest Browse All 10

PictureBox Expansion Problem

Please verify that the SplitContainer's Visible property is set to True.

If that is not the problem, then it would help if you could post the form's designer generated code.  Go to solution Explorer and click on the "Show All Files" button and expand the node for your form.  Open the file that will be named something like YourForm.Designer.vb and post the contents using the Insert Code Block button of the message composition box.

The visible property is set to true.  

#Region"Windows Form Designer generated code "PublicSubNew()MyBase.New()If m_vb6FormDefInstance IsNothingThenIf m_InitializingDefInstance Then
				m_vb6FormDefInstance = MeElseTry'For the start-up form, the first instance created is the default instance.If System.Reflection.Assembly.GetExecutingAssembly.EntryPoint.DeclaringType IsMe.GetTypeThen
						m_vb6FormDefInstance = MeEndIfCatchEndTryEndIfEndIf'isInitializingComponent = True'InitializeComponent()'isInitializingComponent = FalseEndSubPrivateSub ReleaseResources(ByVal eventSender AsObject, ByVal eventArgs As System.EventArgs) HandlesMyBase.Closed
		Dispose(True)EndSub'Form overrides dispose to clean up the component list.<System.Diagnostics.DebuggerNonUserCode()> _ProtectedOverloadsOverridesSub Dispose(ByVal Disposing AsBoolean)If Disposing ThenIfNot (components IsNothing) Then
				components.Dispose()EndIfEndIfMyBase.Dispose(Disposing)EndSub'Required by the Windows Form DesignerPrivate components As System.ComponentModel.IContainerPublic ToolTipMain As System.Windows.Forms.ToolTipPublicWithEvents btnExit As System.Windows.Forms.ButtonPublicWithEvents cmdInstructions As System.Windows.Forms.ButtonPublicWithEvents cmdSave As System.Windows.Forms.ButtonPublicWithEvents btnGetNewImage As System.Windows.Forms.ButtonPublicWithEvents txtxy As System.Windows.Forms.TextBox'NOTE: The following procedure is required by the Windows Form Designer'It can be modified using the Windows Form Designer.'Do not modify it using the code editor.<System.Diagnostics.DebuggerStepThrough()> _PrivateSub InitializeComponent()Me.btnExit = New System.Windows.Forms.Button()Me.cmdInstructions = New System.Windows.Forms.Button()Me.cmdSave = New System.Windows.Forms.Button()Me.btnGetNewImage = New System.Windows.Forms.Button()Me.txtxy = New System.Windows.Forms.TextBox()Me.sc1 = New System.Windows.Forms.SplitContainer()Me.pbLoadedImage = New System.Windows.Forms.PictureBox()Me.tbOutputFile1 = New System.Windows.Forms.TextBox()Me.btnLoadImage = New System.Windows.Forms.Button()Me.tbImageFile = New System.Windows.Forms.TextBox()Me.lblOutput = New System.Windows.Forms.Label()Me.lblInput = New System.Windows.Forms.Label()Me.ofdGetImage = New System.Windows.Forms.OpenFileDialog()Me.sc1.Panel1.SuspendLayout()Me.sc1.Panel2.SuspendLayout()Me.sc1.SuspendLayout()CType(Me.pbLoadedImage, System.ComponentModel.ISupportInitialize).BeginInit()Me.SuspendLayout()''btnExit'Me.btnExit.BackColor = System.Drawing.SystemColors.ControlMe.btnExit.Cursor = System.Windows.Forms.Cursors.DefaultMe.btnExit.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))Me.btnExit.ForeColor = System.Drawing.SystemColors.ControlTextMe.btnExit.Location = New System.Drawing.Point(784, 3)Me.btnExit.Name = "btnExit"Me.btnExit.RightToLeft = System.Windows.Forms.RightToLeft.NoMe.btnExit.Size = New System.Drawing.Size(73, 33)Me.btnExit.TabIndex = 5Me.btnExit.Text = "&Exit"Me.btnExit.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveTextMe.btnExit.UseVisualStyleBackColor = False''cmdInstructions'Me.cmdInstructions.BackColor = System.Drawing.SystemColors.ControlMe.cmdInstructions.Cursor = System.Windows.Forms.Cursors.DefaultMe.cmdInstructions.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))Me.cmdInstructions.ForeColor = System.Drawing.SystemColors.ControlTextMe.cmdInstructions.Location = New System.Drawing.Point(784, 42)Me.cmdInstructions.Name = "cmdInstructions"Me.cmdInstructions.RightToLeft = System.Windows.Forms.RightToLeft.NoMe.cmdInstructions.Size = New System.Drawing.Size(73, 33)Me.cmdInstructions.TabIndex = 4Me.cmdInstructions.Text = "&Instructions"Me.cmdInstructions.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveTextMe.cmdInstructions.UseVisualStyleBackColor = False''cmdSave'Me.cmdSave.BackColor = System.Drawing.SystemColors.ControlMe.cmdSave.Cursor = System.Windows.Forms.Cursors.DefaultMe.cmdSave.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))Me.cmdSave.ForeColor = System.Drawing.SystemColors.ControlTextMe.cmdSave.Location = New System.Drawing.Point(689, 3)Me.cmdSave.Name = "cmdSave"Me.cmdSave.RightToLeft = System.Windows.Forms.RightToLeft.NoMe.cmdSave.Size = New System.Drawing.Size(89, 33)Me.cmdSave.TabIndex = 3Me.cmdSave.Text = "&Save Data"Me.cmdSave.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveTextMe.cmdSave.UseVisualStyleBackColor = False''btnGetNewImage'Me.btnGetNewImage.BackColor = System.Drawing.SystemColors.ControlMe.btnGetNewImage.Cursor = System.Windows.Forms.Cursors.DefaultMe.btnGetNewImage.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))Me.btnGetNewImage.ForeColor = System.Drawing.SystemColors.ControlTextMe.btnGetNewImage.Location = New System.Drawing.Point(689, 42)Me.btnGetNewImage.Name = "btnGetNewImage"Me.btnGetNewImage.RightToLeft = System.Windows.Forms.RightToLeft.NoMe.btnGetNewImage.Size = New System.Drawing.Size(89, 46)Me.btnGetNewImage.TabIndex = 2Me.btnGetNewImage.Text = "Get New Image File"Me.btnGetNewImage.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveTextMe.btnGetNewImage.UseVisualStyleBackColor = False''txtxy'Me.txtxy.AcceptsReturn = TrueMe.txtxy.BackColor = System.Drawing.SystemColors.WindowMe.txtxy.Cursor = System.Windows.Forms.Cursors.IBeamMe.txtxy.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))Me.txtxy.ForeColor = System.Drawing.SystemColors.WindowTextMe.txtxy.Location = New System.Drawing.Point(729, 3)Me.txtxy.MaxLength = 0Me.txtxy.Name = "txtxy"Me.txtxy.RightToLeft = System.Windows.Forms.RightToLeft.NoMe.txtxy.Size = New System.Drawing.Size(137, 20)Me.txtxy.TabIndex = 1Me.txtxy.Text = "(U,V) i"''sc1'Me.sc1.Dock = System.Windows.Forms.DockStyle.FillMe.sc1.Location = New System.Drawing.Point(0, 0)Me.sc1.Name = "sc1"Me.sc1.Orientation = System.Windows.Forms.Orientation.Horizontal''sc1.Panel1'Me.sc1.Panel1.Controls.Add(Me.txtxy)Me.sc1.Panel1.Controls.Add(Me.pbLoadedImage)''sc1.Panel2'Me.sc1.Panel2.Controls.Add(Me.tbOutputFile1)Me.sc1.Panel2.Controls.Add(Me.btnLoadImage)Me.sc1.Panel2.Controls.Add(Me.tbImageFile)Me.sc1.Panel2.Controls.Add(Me.lblOutput)Me.sc1.Panel2.Controls.Add(Me.lblInput)Me.sc1.Panel2.Controls.Add(Me.cmdInstructions)Me.sc1.Panel2.Controls.Add(Me.btnGetNewImage)Me.sc1.Panel2.Controls.Add(Me.btnExit)Me.sc1.Panel2.Controls.Add(Me.cmdSave)Me.sc1.Size = New System.Drawing.Size(869, 727)Me.sc1.SplitterDistance = 630Me.sc1.SplitterWidth = 1Me.sc1.TabIndex = 7''pbLoadedImage'Me.pbLoadedImage.Dock = System.Windows.Forms.DockStyle.FillMe.pbLoadedImage.Location = New System.Drawing.Point(0, 0)Me.pbLoadedImage.Name = "pbLoadedImage"Me.pbLoadedImage.Size = New System.Drawing.Size(869, 630)Me.pbLoadedImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImageMe.pbLoadedImage.TabIndex = 2Me.pbLoadedImage.TabStop = False''tbOutputFile1'Me.tbOutputFile1.AcceptsReturn = TrueMe.tbOutputFile1.BackColor = System.Drawing.SystemColors.WindowMe.tbOutputFile1.Cursor = System.Windows.Forms.Cursors.IBeamMe.tbOutputFile1.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))Me.tbOutputFile1.ForeColor = System.Drawing.SystemColors.WindowTextMe.tbOutputFile1.Location = New System.Drawing.Point(135, 36)Me.tbOutputFile1.MaxLength = 0Me.tbOutputFile1.Name = "tbOutputFile1"Me.tbOutputFile1.RightToLeft = System.Windows.Forms.RightToLeft.NoMe.tbOutputFile1.Size = New System.Drawing.Size(449, 20)Me.tbOutputFile1.TabIndex = 15''btnLoadImage'Me.btnLoadImage.BackColor = System.Drawing.SystemColors.ControlMe.btnLoadImage.Cursor = System.Windows.Forms.Cursors.DefaultMe.btnLoadImage.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))Me.btnLoadImage.ForeColor = System.Drawing.SystemColors.ControlTextMe.btnLoadImage.Location = New System.Drawing.Point(587, 10)Me.btnLoadImage.Name = "btnLoadImage"Me.btnLoadImage.RightToLeft = System.Windows.Forms.RightToLeft.NoMe.btnLoadImage.Size = New System.Drawing.Size(94, 26)Me.btnLoadImage.TabIndex = 12Me.btnLoadImage.Text = "Load Image"Me.btnLoadImage.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveTextMe.btnLoadImage.UseVisualStyleBackColor = False''tbImageFile'Me.tbImageFile.AcceptsReturn = TrueMe.tbImageFile.BackColor = System.Drawing.SystemColors.WindowMe.tbImageFile.Cursor = System.Windows.Forms.Cursors.IBeamMe.tbImageFile.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))Me.tbImageFile.ForeColor = System.Drawing.SystemColors.WindowTextMe.tbImageFile.Location = New System.Drawing.Point(135, 10)Me.tbImageFile.MaxLength = 0Me.tbImageFile.Name = "tbImageFile"Me.tbImageFile.RightToLeft = System.Windows.Forms.RightToLeft.NoMe.tbImageFile.Size = New System.Drawing.Size(449, 20)Me.tbImageFile.TabIndex = 11Me.tbImageFile.Text = "Double Click Here to Get Image"''lblOutput'Me.lblOutput.BackColor = System.Drawing.SystemColors.ControlMe.lblOutput.Cursor = System.Windows.Forms.Cursors.DefaultMe.lblOutput.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))Me.lblOutput.ForeColor = System.Drawing.SystemColors.ControlTextMe.lblOutput.Location = New System.Drawing.Point(64, 39)Me.lblOutput.Name = "lblOutput"Me.lblOutput.RightToLeft = System.Windows.Forms.RightToLeft.NoMe.lblOutput.Size = New System.Drawing.Size(65, 17)Me.lblOutput.TabIndex = 14Me.lblOutput.Text = "Output File"''lblInput'Me.lblInput.BackColor = System.Drawing.SystemColors.ControlMe.lblInput.Cursor = System.Windows.Forms.Cursors.DefaultMe.lblInput.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))Me.lblInput.ForeColor = System.Drawing.SystemColors.ControlTextMe.lblInput.Location = New System.Drawing.Point(64, 13)Me.lblInput.Name = "lblInput"Me.lblInput.RightToLeft = System.Windows.Forms.RightToLeft.NoMe.lblInput.Size = New System.Drawing.Size(65, 16)Me.lblInput.TabIndex = 10Me.lblInput.Text = "Image File"''frmload'Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)Me.BackColor = System.Drawing.SystemColors.ControlMe.ClientSize = New System.Drawing.Size(869, 727)Me.Controls.Add(Me.sc1)Me.Cursor = System.Windows.Forms.Cursors.DefaultMe.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))Me.Location = New System.Drawing.Point(4, 23)Me.Name = "frmload"Me.RightToLeft = System.Windows.Forms.RightToLeft.NoMe.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreenMe.Text = "RELAP-DIGITIZE"Me.sc1.Panel1.ResumeLayout(False)Me.sc1.Panel1.PerformLayout()Me.sc1.Panel2.ResumeLayout(False)Me.sc1.Panel2.PerformLayout()Me.sc1.ResumeLayout(False)CType(Me.pbLoadedImage, System.ComponentModel.ISupportInitialize).EndInit()Me.ResumeLayout(False)EndSubFriendWithEvents sc1 As System.Windows.Forms.SplitContainerFriendWithEvents pbLoadedImage As System.Windows.Forms.PictureBoxPublicWithEvents tbOutputFile1 As System.Windows.Forms.TextBoxPublicWithEvents btnLoadImage As System.Windows.Forms.ButtonPublicWithEvents tbImageFile As System.Windows.Forms.TextBoxPublicWithEvents lblOutput As System.Windows.Forms.LabelPublicWithEvents lblInput As System.Windows.Forms.LabelFriendWithEvents ofdGetImage As System.Windows.Forms.OpenFileDialog#End RegionEndClass


Brian Allison

Viewing latest article 2
Browse Latest Browse All 10

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>