Form with groupboxes is behaving diffrently randomly

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Philip Wagenaar

    #1

    Form with groupboxes is behaving diffrently randomly

    I have made a form with a tab that containts groupboxes and those contain
    checkboxes.

    When I run the application sometimes the outlining for some groupboxes are
    not shown, if I switch tabs and back sometimes all outlining is shown and
    sometimes are not shown. I have no idea what is going wrong.

    What also is weird is that when I open the form from my main application I
    can resize the form, even though it is locked, and that when I cut and paste
    the forms code in a new Windows Application project in VS.NET 2003 and I run
    the form I cannot resize it (without changing any settings).

    I am totally confused why all this happening.

    I have pasted the code for the form below.


    Public Class frmSettings
    Inherits System.Windows. Forms.Form

    #Region " Windows Form Designer generated code "

    Public Sub New()
    MyBase.New()

    'This call is required by the Windows Form Designer.
    InitializeCompo nent()

    'Add any initialization after the InitializeCompo nent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
    If disposing Then
    If Not (components Is Nothing) Then
    components.Disp ose()
    End If
    End If
    MyBase.Dispose( disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.Componen tModel.IContain er

    '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.
    Friend WithEvents gbxXml As System.Windows. Forms.GroupBox
    Friend WithEvents gbxLogging As System.Windows. Forms.GroupBox
    Friend WithEvents gbxError As System.Windows. Forms.GroupBox
    Friend WithEvents TextBox1 As System.Windows. Forms.TextBox
    Friend WithEvents TextBox2 As System.Windows. Forms.TextBox
    Friend WithEvents tbxTimer As System.Windows. Forms.TextBox
    Friend WithEvents Label1 As System.Windows. Forms.Label
    Friend WithEvents gbxServer As System.Windows. Forms.GroupBox
    Friend WithEvents tbxPort As System.Windows. Forms.TextBox
    Friend WithEvents tbxServer As System.Windows. Forms.TextBox
    Friend WithEvents Label2 As System.Windows. Forms.Label
    Friend WithEvents Label3 As System.Windows. Forms.Label
    Friend WithEvents btnOk As System.Windows. Forms.Button
    Friend WithEvents btnCancel As System.Windows. Forms.Button
    Friend WithEvents btnTest As System.Windows. Forms.Button
    Friend WithEvents rbtParallel As System.Windows. Forms.RadioButt on
    Friend WithEvents rbtSerial As System.Windows. Forms.RadioButt on
    Friend WithEvents cbxDate As System.Windows. Forms.CheckBox
    Friend WithEvents cbxData As System.Windows. Forms.CheckBox
    Friend WithEvents cbxLogOutXml As System.Windows. Forms.CheckBox
    Friend WithEvents cbxLogParsedXml As System.Windows. Forms.CheckBox
    Friend WithEvents cbxLogOrgXml As System.Windows. Forms.CheckBox
    Friend WithEvents cbxLogEasy As System.Windows. Forms.CheckBox
    Friend WithEvents cbxLogConnector As System.Windows. Forms.CheckBox
    Friend WithEvents cbxLogFolder As System.Windows. Forms.CheckBox
    Friend WithEvents cbxErrData As System.Windows. Forms.CheckBox
    Friend WithEvents cbxErrOutXml As System.Windows. Forms.CheckBox
    Friend WithEvents cbxErrParsedXml As System.Windows. Forms.CheckBox
    Friend WithEvents cbxErrOrgXml As System.Windows. Forms.CheckBox
    Friend WithEvents gbxProcessing As System.Windows. Forms.GroupBox
    Friend WithEvents gbxFolder As System.Windows. Forms.GroupBox
    Friend WithEvents tbxFolder As System.Windows. Forms.TextBox
    Friend WithEvents btnFolder As System.Windows. Forms.Button
    Friend WithEvents FolderBrowserDi alog1 As
    System.Windows. Forms.FolderBro wserDialog
    Friend WithEvents TabControl1 As System.Windows. Forms.TabContro l
    Friend WithEvents tbpGeneral As System.Windows. Forms.TabPage
    Friend WithEvents tbpExport As System.Windows. Forms.TabPage
    <System.Diagnos tics.DebuggerSt epThrough()> Private Sub
    InitializeCompo nent()
    Me.gbxXml = New System.Windows. Forms.GroupBox
    Me.cbxDate = New System.Windows. Forms.CheckBox
    Me.cbxData = New System.Windows. Forms.CheckBox
    Me.gbxLogging = New System.Windows. Forms.GroupBox
    Me.TextBox1 = New System.Windows. Forms.TextBox
    Me.cbxLogOutXml = New System.Windows. Forms.CheckBox
    Me.cbxLogParsed Xml = New System.Windows. Forms.CheckBox
    Me.cbxLogOrgXml = New System.Windows. Forms.CheckBox
    Me.cbxLogEasy = New System.Windows. Forms.CheckBox
    Me.cbxLogConnec tor = New System.Windows. Forms.CheckBox
    Me.cbxLogFolder = New System.Windows. Forms.CheckBox
    Me.gbxError = New System.Windows. Forms.GroupBox
    Me.cbxErrData = New System.Windows. Forms.CheckBox
    Me.TextBox2 = New System.Windows. Forms.TextBox
    Me.cbxErrOutXml = New System.Windows. Forms.CheckBox
    Me.cbxErrParsed Xml = New System.Windows. Forms.CheckBox
    Me.cbxErrOrgXml = New System.Windows. Forms.CheckBox
    Me.btnOk = New System.Windows. Forms.Button
    Me.btnCancel = New System.Windows. Forms.Button
    Me.gbxProcessin g = New System.Windows. Forms.GroupBox
    Me.Label1 = New System.Windows. Forms.Label
    Me.tbxTimer = New System.Windows. Forms.TextBox
    Me.rbtParallel = New System.Windows. Forms.RadioButt on
    Me.rbtSerial = New System.Windows. Forms.RadioButt on
    Me.gbxServer = New System.Windows. Forms.GroupBox
    Me.btnTest = New System.Windows. Forms.Button
    Me.Label3 = New System.Windows. Forms.Label
    Me.Label2 = New System.Windows. Forms.Label
    Me.tbxServer = New System.Windows. Forms.TextBox
    Me.tbxPort = New System.Windows. Forms.TextBox
    Me.gbxFolder = New System.Windows. Forms.GroupBox
    Me.btnFolder = New System.Windows. Forms.Button
    Me.tbxFolder = New System.Windows. Forms.TextBox
    Me.FolderBrowse rDialog1 = New System.Windows. Forms.FolderBro wserDialog
    Me.TabControl1 = New System.Windows. Forms.TabContro l
    Me.tbpGeneral = New System.Windows. Forms.TabPage
    Me.tbpExport = New System.Windows. Forms.TabPage
    Me.gbxXml.Suspe ndLayout()
    Me.gbxLogging.S uspendLayout()
    Me.gbxError.Sus pendLayout()
    Me.gbxProcessin g.SuspendLayout ()
    Me.gbxServer.Su spendLayout()
    Me.gbxFolder.Su spendLayout()
    Me.TabControl1. SuspendLayout()
    Me.tbpGeneral.S uspendLayout()
    Me.SuspendLayou t()
    '
    'gbxXml
    '
    Me.gbxXml.Contr ols.Add(Me.cbxD ate)
    Me.gbxXml.Contr ols.Add(Me.cbxD ata)
    Me.gbxXml.Locat ion = New System.Drawing. Point(64, 312)
    Me.gbxXml.Name = "gbxXml"
    Me.gbxXml.Size = New System.Drawing. Size(512, 72)
    Me.gbxXml.TabIn dex = 0
    Me.gbxXml.TabSt op = False
    Me.gbxXml.Text = "XML Parsing"
    '
    'cbxDate
    '
    Me.cbxDate.Loca tion = New System.Drawing. Point(8, 40)
    Me.cbxDate.Name = "cbxDate"
    Me.cbxDate.Size = New System.Drawing. Size(272, 24)
    Me.cbxDate.TabI ndex = 7
    Me.cbxDate.Text = "Convert date in <DATETIME> to Unix notation"
    '
    'cbxData
    '
    Me.cbxData.Loca tion = New System.Drawing. Point(8, 16)
    Me.cbxData.Name = "cbxData"
    Me.cbxData.Size = New System.Drawing. Size(288, 24)
    Me.cbxData.TabI ndex = 6
    Me.cbxData.Text = "Convert filename in <DATA> to Mime encoded data"
    '
    'gbxLogging
    '
    Me.gbxLogging.C ontrols.Add(Me. TextBox1)
    Me.gbxLogging.C ontrols.Add(Me. cbxLogOutXml)
    Me.gbxLogging.C ontrols.Add(Me. cbxLogParsedXml )
    Me.gbxLogging.C ontrols.Add(Me. cbxLogOrgXml)
    Me.gbxLogging.C ontrols.Add(Me. cbxLogEasy)
    Me.gbxLogging.C ontrols.Add(Me. cbxLogConnector )
    Me.gbxLogging.C ontrols.Add(Me. cbxLogFolder)
    Me.gbxLogging.L ocation = New System.Drawing. Point(64, 400)
    Me.gbxLogging.N ame = "gbxLogging "
    Me.gbxLogging.S ize = New System.Drawing. Size(512, 100)
    Me.gbxLogging.T abIndex = 1
    Me.gbxLogging.T abStop = False
    Me.gbxLogging.T ext = "Logging"
    '
    'TextBox1
    '
    Me.TextBox1.Bor derStyle = System.Windows. Forms.BorderSty le.None
    Me.TextBox1.Loc ation = New System.Drawing. Point(384, 16)
    Me.TextBox1.Mul tiline = True
    Me.TextBox1.Nam e = "TextBox1"
    Me.TextBox1.Rea dOnly = True
    Me.TextBox1.Siz e = New System.Drawing. Size(120, 72)
    Me.TextBox1.Tab Index = 6
    Me.TextBox1.Tex t = "All log files will be created in the LOGGING
    subfolder under the corresponding XM" & _
    "L request ID"
    '
    'cbxLogOutXml
    '
    Me.cbxLogOutXml .Location = New System.Drawing. Point(200, 64)
    Me.cbxLogOutXml .Name = "cbxLogOutX ml"
    Me.cbxLogOutXml .Size = New System.Drawing. Size(120, 24)
    Me.cbxLogOutXml .TabIndex = 13
    Me.cbxLogOutXml .Text = "Keep output XML"
    '
    'cbxLogParsedXm l
    '
    Me.cbxLogParsed Xml.Location = New System.Drawing. Point(200, 40)
    Me.cbxLogParsed Xml.Name = "cbxLogParsedXm l"
    Me.cbxLogParsed Xml.Size = New System.Drawing. Size(152, 24)
    Me.cbxLogParsed Xml.TabIndex = 12
    Me.cbxLogParsed Xml.Text = "Keep parsed parsed XML"
    '
    'cbxLogOrgXml
    '
    Me.cbxLogOrgXml .Location = New System.Drawing. Point(200, 16)
    Me.cbxLogOrgXml .Name = "cbxLogOrgX ml"
    Me.cbxLogOrgXml .Size = New System.Drawing. Size(120, 24)
    Me.cbxLogOrgXml .TabIndex = 11
    Me.cbxLogOrgXml .Text = "Keep original XML"
    '
    'cbxLogEasy
    '
    Me.cbxLogEasy.L ocation = New System.Drawing. Point(8, 64)
    Me.cbxLogEasy.N ame = "cbxLogEasy "
    Me.cbxLogEasy.S ize = New System.Drawing. Size(168, 24)
    Me.cbxLogEasy.T abIndex = 10
    Me.cbxLogEasy.T ext = "Log Easy XML activity to file"
    '
    'cbxLogConnecto r
    '
    Me.cbxLogConnec tor.Location = New System.Drawing. Point(8, 40)
    Me.cbxLogConnec tor.Name = "cbxLogConnecto r"
    Me.cbxLogConnec tor.Size = New System.Drawing. Size(168, 24)
    Me.cbxLogConnec tor.TabIndex = 9
    Me.cbxLogConnec tor.Text = "Log connector activity to file"
    '
    'cbxLogFolder
    '
    Me.cbxLogFolder .Location = New System.Drawing. Point(8, 16)
    Me.cbxLogFolder .Name = "cbxLogFold er"
    Me.cbxLogFolder .Size = New System.Drawing. Size(144, 24)
    Me.cbxLogFolder .TabIndex = 8
    Me.cbxLogFolder .Text = "Log folder activity to file"
    '
    'gbxError
    '
    Me.gbxError.Con trols.Add(Me.cb xErrData)
    Me.gbxError.Con trols.Add(Me.Te xtBox2)
    Me.gbxError.Con trols.Add(Me.cb xErrOutXml)
    Me.gbxError.Con trols.Add(Me.cb xErrParsedXml)
    Me.gbxError.Con trols.Add(Me.cb xErrOrgXml)
    Me.gbxError.Loc ation = New System.Drawing. Point(64, 520)
    Me.gbxError.Nam e = "gbxError"
    Me.gbxError.Siz e = New System.Drawing. Size(512, 104)
    Me.gbxError.Tab Index = 2
    Me.gbxError.Tab Stop = False
    Me.gbxError.Tex t = "On error"
    '
    'cbxErrData
    '
    Me.cbxErrData.L ocation = New System.Drawing. Point(200, 16)
    Me.cbxErrData.N ame = "cbxErrData "
    Me.cbxErrData.T abIndex = 17
    Me.cbxErrData.T ext = "Keep data files"
    '
    'TextBox2
    '
    Me.TextBox2.Bor derStyle = System.Windows. Forms.BorderSty le.None
    Me.TextBox2.Loc ation = New System.Drawing. Point(384, 24)
    Me.TextBox2.Mul tiline = True
    Me.TextBox2.Nam e = "TextBox2"
    Me.TextBox2.Rea dOnly = True
    Me.TextBox2.Siz e = New System.Drawing. Size(120, 72)
    Me.TextBox2.Tab Index = 9
    Me.TextBox2.Tex t = "All error files will be created in the ERROR
    subfolder under the corresponding XM" & _
    "L request ID"
    '
    'cbxErrOutXml
    '
    Me.cbxErrOutXml .Location = New System.Drawing. Point(8, 64)
    Me.cbxErrOutXml .Name = "cbxErrOutX ml"
    Me.cbxErrOutXml .Size = New System.Drawing. Size(120, 24)
    Me.cbxErrOutXml .TabIndex = 16
    Me.cbxErrOutXml .Text = "Keep output XML"
    '
    'cbxErrParsedXm l
    '
    Me.cbxErrParsed Xml.Location = New System.Drawing. Point(8, 40)
    Me.cbxErrParsed Xml.Name = "cbxErrParsedXm l"
    Me.cbxErrParsed Xml.Size = New System.Drawing. Size(152, 24)
    Me.cbxErrParsed Xml.TabIndex = 15
    Me.cbxErrParsed Xml.Text = "Keep parsed parsed XML"
    '
    'cbxErrOrgXml
    '
    Me.cbxErrOrgXml .Location = New System.Drawing. Point(8, 16)
    Me.cbxErrOrgXml .Name = "cbxErrOrgX ml"
    Me.cbxErrOrgXml .Size = New System.Drawing. Size(120, 24)
    Me.cbxErrOrgXml .TabIndex = 14
    Me.cbxErrOrgXml .Text = "Keep original XML"
    '
    'btnOk
    '
    Me.btnOk.Locati on = New System.Drawing. Point(256, 720)
    Me.btnOk.Name = "btnOk"
    Me.btnOk.TabInd ex = 3
    Me.btnOk.Text = "Ok"
    '
    'btnCancel
    '
    Me.btnCancel.Lo cation = New System.Drawing. Point(376, 720)
    Me.btnCancel.Na me = "btnCancel"
    Me.btnCancel.Ta bIndex = 4
    Me.btnCancel.Te xt = "Cancel"
    '
    'gbxProcessing
    '
    Me.gbxProcessin g.Controls.Add( Me.Label1)
    Me.gbxProcessin g.Controls.Add( Me.tbxTimer)
    Me.gbxProcessin g.Controls.Add( Me.rbtParallel)
    Me.gbxProcessin g.Controls.Add( Me.rbtSerial)
    Me.gbxProcessin g.Location = New System.Drawing. Point(64, 216)
    Me.gbxProcessin g.Name = "gbxProcess ing"
    Me.gbxProcessin g.Size = New System.Drawing. Size(512, 80)
    Me.gbxProcessin g.TabIndex = 5
    Me.gbxProcessin g.TabStop = False
    Me.gbxProcessin g.Text = "Processing "
    '
    'Label1
    '
    Me.Label1.Locat ion = New System.Drawing. Point(224, 32)
    Me.Label1.Name = "Label1"
    Me.Label1.Size = New System.Drawing. Size(160, 23)
    Me.Label1.TabIn dex = 3
    Me.Label1.Text = "Millisecon ds between requests"
    '
    'tbxTimer
    '
    Me.tbxTimer.Loc ation = New System.Drawing. Point(384, 32)
    Me.tbxTimer.Nam e = "tbxTimer"
    Me.tbxTimer.Siz e = New System.Drawing. Size(72, 20)
    Me.tbxTimer.Tab Index = 5
    Me.tbxTimer.Tex t = ""
    '
    'rbtParallel
    '
    Me.rbtParallel. Location = New System.Drawing. Point(8, 40)
    Me.rbtParallel. Name = "rbtParalle l"
    Me.rbtParallel. TabIndex = 4
    Me.rbtParallel. Text = "Parallel"
    '
    'rbtSerial
    '
    Me.rbtSerial.Lo cation = New System.Drawing. Point(8, 16)
    Me.rbtSerial.Na me = "rbtSerial"
    Me.rbtSerial.Ta bIndex = 3
    Me.rbtSerial.Te xt = "Serial"
    '
    'gbxServer
    '
    Me.gbxServer.Co ntrols.Add(Me.b tnTest)
    Me.gbxServer.Co ntrols.Add(Me.L abel3)
    Me.gbxServer.Co ntrols.Add(Me.L abel2)
    Me.gbxServer.Co ntrols.Add(Me.t bxServer)
    Me.gbxServer.Co ntrols.Add(Me.t bxPort)
    Me.gbxServer.Lo cation = New System.Drawing. Point(64, 120)
    Me.gbxServer.Na me = "gbxServer"
    Me.gbxServer.Si ze = New System.Drawing. Size(512, 80)
    Me.gbxServer.Ta bIndex = 6
    Me.gbxServer.Ta bStop = False
    Me.gbxServer.Te xt = "Server"
    '
    'btnTest
    '
    Me.btnTest.Loca tion = New System.Drawing. Point(288, 32)
    Me.btnTest.Name = "btnTest"
    Me.btnTest.TabI ndex = 2
    Me.btnTest.Text = "Test"
    '
    'Label3
    '
    Me.Label3.Locat ion = New System.Drawing. Point(176, 32)
    Me.Label3.Name = "Label3"
    Me.Label3.Size = New System.Drawing. Size(32, 23)
    Me.Label3.TabIn dex = 3
    Me.Label3.Text = "Port"
    '
    'Label2
    '
    Me.Label2.Locat ion = New System.Drawing. Point(32, 32)
    Me.Label2.Name = "Label2"
    Me.Label2.Size = New System.Drawing. Size(40, 23)
    Me.Label2.TabIn dex = 2
    Me.Label2.Text = "Server"
    '
    'tbxServer
    '
    Me.tbxServer.Lo cation = New System.Drawing. Point(72, 32)
    Me.tbxServer.Na me = "tbxServer"
    Me.tbxServer.Ta bIndex = 0
    Me.tbxServer.Te xt = ""
    '
    'tbxPort
    '
    Me.tbxPort.Loca tion = New System.Drawing. Point(208, 32)
    Me.tbxPort.Name = "tbxPort"
    Me.tbxPort.Size = New System.Drawing. Size(64, 20)
    Me.tbxPort.TabI ndex = 1
    Me.tbxPort.Text = ""
    '
    'gbxFolder
    '
    Me.gbxFolder.Co ntrols.Add(Me.b tnFolder)
    Me.gbxFolder.Co ntrols.Add(Me.t bxFolder)
    Me.gbxFolder.Lo cation = New System.Drawing. Point(64, 24)
    Me.gbxFolder.Na me = "gbxFolder"
    Me.gbxFolder.Si ze = New System.Drawing. Size(512, 80)
    Me.gbxFolder.Ta bIndex = 7
    Me.gbxFolder.Ta bStop = False
    Me.gbxFolder.Te xt = "Folder to monitor"
    '
    'btnFolder
    '
    Me.btnFolder.Lo cation = New System.Drawing. Point(384, 48)
    Me.btnFolder.Na me = "btnFolder"
    Me.btnFolder.Ta bIndex = 1
    Me.btnFolder.Te xt = "Select"
    '
    'tbxFolder
    '
    Me.tbxFolder.Lo cation = New System.Drawing. Point(80, 24)
    Me.tbxFolder.Na me = "tbxFolder"
    Me.tbxFolder.Si ze = New System.Drawing. Size(376, 20)
    Me.tbxFolder.Ta bIndex = 0
    Me.tbxFolder.Te xt = ""
    '
    'TabControl1
    '
    Me.TabControl1. Controls.Add(Me .tbpGeneral)
    Me.TabControl1. Controls.Add(Me .tbpExport)
    Me.TabControl1. Location = New System.Drawing. Point(16, 16)
    Me.TabControl1. Name = "TabControl 1"
    Me.TabControl1. SelectedIndex = 0
    Me.TabControl1. Size = New System.Drawing. Size(680, 688)
    Me.TabControl1. TabIndex = 9
    '
    'tbpGeneral
    '
    Me.tbpGeneral.C ontrols.Add(Me. gbxError)
    Me.tbpGeneral.C ontrols.Add(Me. gbxLogging)
    Me.tbpGeneral.C ontrols.Add(Me. gbxXml)
    Me.tbpGeneral.C ontrols.Add(Me. gbxProcessing)
    Me.tbpGeneral.C ontrols.Add(Me. gbxServer)
    Me.tbpGeneral.C ontrols.Add(Me. gbxFolder)
    Me.tbpGeneral.L ocation = New System.Drawing. Point(4, 22)
    Me.tbpGeneral.N ame = "tbpGeneral "
    Me.tbpGeneral.S ize = New System.Drawing. Size(672, 662)
    Me.tbpGeneral.T abIndex = 0
    Me.tbpGeneral.T ext = "General"
    '
    'tbpExport
    '
    Me.tbpExport.Lo cation = New System.Drawing. Point(4, 22)
    Me.tbpExport.Na me = "tbpExport"
    Me.tbpExport.Si ze = New System.Drawing. Size(672, 662)
    Me.tbpExport.Ta bIndex = 1
    Me.tbpExport.Te xt = "Export"
    '
    'frmSettings
    '
    Me.AutoScaleBas eSize = New System.Drawing. Size(5, 13)
    Me.ClientSize = New System.Drawing. Size(720, 765)
    Me.Controls.Add (Me.TabControl1 )
    Me.Controls.Add (Me.btnOk)
    Me.Controls.Add (Me.btnCancel)
    Me.Name = "frmSetting s"
    Me.Text = "Settings"
    Me.gbxXml.Resum eLayout(False)
    Me.gbxLogging.R esumeLayout(Fal se)
    Me.gbxError.Res umeLayout(False )
    Me.gbxProcessin g.ResumeLayout( False)
    Me.gbxServer.Re sumeLayout(Fals e)
    Me.gbxFolder.Re sumeLayout(Fals e)
    Me.TabControl1. ResumeLayout(Fa lse)
    Me.tbpGeneral.R esumeLayout(Fal se)
    Me.ResumeLayout (False)

    End Sub

    #End Region

    End Class



  • Philip Wagenaar

    #2
    RE: Form with groupboxes is behaving diffrently randomly

    Ok I just found the problem. I have a Dell Latitude D600 laptop with a DELL
    TFT monitor connected. I have rotated the screen from landscape to portrait.
    When I change back to landscape the problem is gone. When I rotate my screen
    (and ofcourse change this in the screen settings) to portrait again I have
    the problem again! This is cool! But looks like a bug.

    "Philip Wagenaar" wrote:
    [color=blue]
    > I have made a form with a tab that containts groupboxes and those contain
    > checkboxes.
    >
    > When I run the application sometimes the outlining for some groupboxes are
    > not shown, if I switch tabs and back sometimes all outlining is shown and
    > sometimes are not shown. I have no idea what is going wrong.
    >
    > What also is weird is that when I open the form from my main application I
    > can resize the form, even though it is locked, and that when I cut and paste
    > the forms code in a new Windows Application project in VS.NET 2003 and I run
    > the form I cannot resize it (without changing any settings).
    >
    > I am totally confused why all this happening.
    >
    > I have pasted the code for the form below.
    >
    >
    > Public Class frmSettings
    > Inherits System.Windows. Forms.Form
    >
    > #Region " Windows Form Designer generated code "
    >
    > Public Sub New()
    > MyBase.New()
    >
    > 'This call is required by the Windows Form Designer.
    > InitializeCompo nent()
    >
    > 'Add any initialization after the InitializeCompo nent() call
    >
    > End Sub
    >
    > 'Form overrides dispose to clean up the component list.
    > Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
    > If disposing Then
    > If Not (components Is Nothing) Then
    > components.Disp ose()
    > End If
    > End If
    > MyBase.Dispose( disposing)
    > End Sub
    >
    > 'Required by the Windows Form Designer
    > Private components As System.Componen tModel.IContain er
    >
    > '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.
    > Friend WithEvents gbxXml As System.Windows. Forms.GroupBox
    > Friend WithEvents gbxLogging As System.Windows. Forms.GroupBox
    > Friend WithEvents gbxError As System.Windows. Forms.GroupBox
    > Friend WithEvents TextBox1 As System.Windows. Forms.TextBox
    > Friend WithEvents TextBox2 As System.Windows. Forms.TextBox
    > Friend WithEvents tbxTimer As System.Windows. Forms.TextBox
    > Friend WithEvents Label1 As System.Windows. Forms.Label
    > Friend WithEvents gbxServer As System.Windows. Forms.GroupBox
    > Friend WithEvents tbxPort As System.Windows. Forms.TextBox
    > Friend WithEvents tbxServer As System.Windows. Forms.TextBox
    > Friend WithEvents Label2 As System.Windows. Forms.Label
    > Friend WithEvents Label3 As System.Windows. Forms.Label
    > Friend WithEvents btnOk As System.Windows. Forms.Button
    > Friend WithEvents btnCancel As System.Windows. Forms.Button
    > Friend WithEvents btnTest As System.Windows. Forms.Button
    > Friend WithEvents rbtParallel As System.Windows. Forms.RadioButt on
    > Friend WithEvents rbtSerial As System.Windows. Forms.RadioButt on
    > Friend WithEvents cbxDate As System.Windows. Forms.CheckBox
    > Friend WithEvents cbxData As System.Windows. Forms.CheckBox
    > Friend WithEvents cbxLogOutXml As System.Windows. Forms.CheckBox
    > Friend WithEvents cbxLogParsedXml As System.Windows. Forms.CheckBox
    > Friend WithEvents cbxLogOrgXml As System.Windows. Forms.CheckBox
    > Friend WithEvents cbxLogEasy As System.Windows. Forms.CheckBox
    > Friend WithEvents cbxLogConnector As System.Windows. Forms.CheckBox
    > Friend WithEvents cbxLogFolder As System.Windows. Forms.CheckBox
    > Friend WithEvents cbxErrData As System.Windows. Forms.CheckBox
    > Friend WithEvents cbxErrOutXml As System.Windows. Forms.CheckBox
    > Friend WithEvents cbxErrParsedXml As System.Windows. Forms.CheckBox
    > Friend WithEvents cbxErrOrgXml As System.Windows. Forms.CheckBox
    > Friend WithEvents gbxProcessing As System.Windows. Forms.GroupBox
    > Friend WithEvents gbxFolder As System.Windows. Forms.GroupBox
    > Friend WithEvents tbxFolder As System.Windows. Forms.TextBox
    > Friend WithEvents btnFolder As System.Windows. Forms.Button
    > Friend WithEvents FolderBrowserDi alog1 As
    > System.Windows. Forms.FolderBro wserDialog
    > Friend WithEvents TabControl1 As System.Windows. Forms.TabContro l
    > Friend WithEvents tbpGeneral As System.Windows. Forms.TabPage
    > Friend WithEvents tbpExport As System.Windows. Forms.TabPage
    > <System.Diagnos tics.DebuggerSt epThrough()> Private Sub
    > InitializeCompo nent()
    > Me.gbxXml = New System.Windows. Forms.GroupBox
    > Me.cbxDate = New System.Windows. Forms.CheckBox
    > Me.cbxData = New System.Windows. Forms.CheckBox
    > Me.gbxLogging = New System.Windows. Forms.GroupBox
    > Me.TextBox1 = New System.Windows. Forms.TextBox
    > Me.cbxLogOutXml = New System.Windows. Forms.CheckBox
    > Me.cbxLogParsed Xml = New System.Windows. Forms.CheckBox
    > Me.cbxLogOrgXml = New System.Windows. Forms.CheckBox
    > Me.cbxLogEasy = New System.Windows. Forms.CheckBox
    > Me.cbxLogConnec tor = New System.Windows. Forms.CheckBox
    > Me.cbxLogFolder = New System.Windows. Forms.CheckBox
    > Me.gbxError = New System.Windows. Forms.GroupBox
    > Me.cbxErrData = New System.Windows. Forms.CheckBox
    > Me.TextBox2 = New System.Windows. Forms.TextBox
    > Me.cbxErrOutXml = New System.Windows. Forms.CheckBox
    > Me.cbxErrParsed Xml = New System.Windows. Forms.CheckBox
    > Me.cbxErrOrgXml = New System.Windows. Forms.CheckBox
    > Me.btnOk = New System.Windows. Forms.Button
    > Me.btnCancel = New System.Windows. Forms.Button
    > Me.gbxProcessin g = New System.Windows. Forms.GroupBox
    > Me.Label1 = New System.Windows. Forms.Label
    > Me.tbxTimer = New System.Windows. Forms.TextBox
    > Me.rbtParallel = New System.Windows. Forms.RadioButt on
    > Me.rbtSerial = New System.Windows. Forms.RadioButt on
    > Me.gbxServer = New System.Windows. Forms.GroupBox
    > Me.btnTest = New System.Windows. Forms.Button
    > Me.Label3 = New System.Windows. Forms.Label
    > Me.Label2 = New System.Windows. Forms.Label
    > Me.tbxServer = New System.Windows. Forms.TextBox
    > Me.tbxPort = New System.Windows. Forms.TextBox
    > Me.gbxFolder = New System.Windows. Forms.GroupBox
    > Me.btnFolder = New System.Windows. Forms.Button
    > Me.tbxFolder = New System.Windows. Forms.TextBox
    > Me.FolderBrowse rDialog1 = New System.Windows. Forms.FolderBro wserDialog
    > Me.TabControl1 = New System.Windows. Forms.TabContro l
    > Me.tbpGeneral = New System.Windows. Forms.TabPage
    > Me.tbpExport = New System.Windows. Forms.TabPage
    > Me.gbxXml.Suspe ndLayout()
    > Me.gbxLogging.S uspendLayout()
    > Me.gbxError.Sus pendLayout()
    > Me.gbxProcessin g.SuspendLayout ()
    > Me.gbxServer.Su spendLayout()
    > Me.gbxFolder.Su spendLayout()
    > Me.TabControl1. SuspendLayout()
    > Me.tbpGeneral.S uspendLayout()
    > Me.SuspendLayou t()
    > '
    > 'gbxXml
    > '
    > Me.gbxXml.Contr ols.Add(Me.cbxD ate)
    > Me.gbxXml.Contr ols.Add(Me.cbxD ata)
    > Me.gbxXml.Locat ion = New System.Drawing. Point(64, 312)
    > Me.gbxXml.Name = "gbxXml"
    > Me.gbxXml.Size = New System.Drawing. Size(512, 72)
    > Me.gbxXml.TabIn dex = 0
    > Me.gbxXml.TabSt op = False
    > Me.gbxXml.Text = "XML Parsing"
    > '
    > 'cbxDate
    > '
    > Me.cbxDate.Loca tion = New System.Drawing. Point(8, 40)
    > Me.cbxDate.Name = "cbxDate"
    > Me.cbxDate.Size = New System.Drawing. Size(272, 24)
    > Me.cbxDate.TabI ndex = 7
    > Me.cbxDate.Text = "Convert date in <DATETIME> to Unix notation"
    > '
    > 'cbxData
    > '
    > Me.cbxData.Loca tion = New System.Drawing. Point(8, 16)
    > Me.cbxData.Name = "cbxData"
    > Me.cbxData.Size = New System.Drawing. Size(288, 24)
    > Me.cbxData.TabI ndex = 6
    > Me.cbxData.Text = "Convert filename in <DATA> to Mime encoded data"
    > '
    > 'gbxLogging
    > '
    > Me.gbxLogging.C ontrols.Add(Me. TextBox1)
    > Me.gbxLogging.C ontrols.Add(Me. cbxLogOutXml)
    > Me.gbxLogging.C ontrols.Add(Me. cbxLogParsedXml )
    > Me.gbxLogging.C ontrols.Add(Me. cbxLogOrgXml)
    > Me.gbxLogging.C ontrols.Add(Me. cbxLogEasy)
    > Me.gbxLogging.C ontrols.Add(Me. cbxLogConnector )
    > Me.gbxLogging.C ontrols.Add(Me. cbxLogFolder)
    > Me.gbxLogging.L ocation = New System.Drawing. Point(64, 400)
    > Me.gbxLogging.N ame = "gbxLogging "
    > Me.gbxLogging.S ize = New System.Drawing. Size(512, 100)
    > Me.gbxLogging.T abIndex = 1
    > Me.gbxLogging.T abStop = False
    > Me.gbxLogging.T ext = "Logging"
    > '
    > 'TextBox1
    > '
    > Me.TextBox1.Bor derStyle = System.Windows. Forms.BorderSty le.None
    > Me.TextBox1.Loc ation = New System.Drawing. Point(384, 16)
    > Me.TextBox1.Mul tiline = True
    > Me.TextBox1.Nam e = "TextBox1"
    > Me.TextBox1.Rea dOnly = True
    > Me.TextBox1.Siz e = New System.Drawing. Size(120, 72)
    > Me.TextBox1.Tab Index = 6
    > Me.TextBox1.Tex t = "All log files will be created in the LOGGING
    > subfolder under the corresponding XM" & _
    > "L request ID"
    > '
    > 'cbxLogOutXml
    > '
    > Me.cbxLogOutXml .Location = New System.Drawing. Point(200, 64)
    > Me.cbxLogOutXml .Name = "cbxLogOutX ml"
    > Me.cbxLogOutXml .Size = New System.Drawing. Size(120, 24)
    > Me.cbxLogOutXml .TabIndex = 13
    > Me.cbxLogOutXml .Text = "Keep output XML"
    > '
    > 'cbxLogParsedXm l
    > '
    > Me.cbxLogParsed Xml.Location = New System.Drawing. Point(200, 40)
    > Me.cbxLogParsed Xml.Name = "cbxLogParsedXm l"
    > Me.cbxLogParsed Xml.Size = New System.Drawing. Size(152, 24)
    > Me.cbxLogParsed Xml.TabIndex = 12
    > Me.cbxLogParsed Xml.Text = "Keep parsed parsed XML"
    > '
    > 'cbxLogOrgXml
    > '
    > Me.cbxLogOrgXml .Location = New System.Drawing. Point(200, 16)
    > Me.cbxLogOrgXml .Name = "cbxLogOrgX ml"
    > Me.cbxLogOrgXml .Size = New System.Drawing. Size(120, 24)
    > Me.cbxLogOrgXml .TabIndex = 11
    > Me.cbxLogOrgXml .Text = "Keep original XML"
    > '
    > 'cbxLogEasy
    > '
    > Me.cbxLogEasy.L ocation = New System.Drawing. Point(8, 64)
    > Me.cbxLogEasy.N ame = "cbxLogEasy "
    > Me.cbxLogEasy.S ize = New System.Drawing. Size(168, 24)
    > Me.cbxLogEasy.T abIndex = 10
    > Me.cbxLogEasy.T ext = "Log Easy XML activity to file"
    > '
    > 'cbxLogConnecto r
    > '
    > Me.cbxLogConnec tor.Location = New System.Drawing. Point(8, 40)
    > Me.cbxLogConnec tor.Name = "cbxLogConnecto r"
    > Me.cbxLogConnec tor.Size = New System.Drawing. Size(168, 24)
    > Me.cbxLogConnec tor.TabIndex = 9
    > Me.cbxLogConnec tor.Text = "Log connector activity to file"
    > '
    > 'cbxLogFolder
    > '
    > Me.cbxLogFolder .Location = New System.Drawing. Point(8, 16)
    > Me.cbxLogFolder .Name = "cbxLogFold er"
    > Me.cbxLogFolder .Size = New System.Drawing. Size(144, 24)
    > Me.cbxLogFolder .TabIndex = 8
    > Me.cbxLogFolder .Text = "Log folder activity to file"
    > '
    > 'gbxError
    > '
    > Me.gbxError.Con trols.Add(Me.cb xErrData)
    > Me.gbxError.Con trols.Add(Me.Te xtBox2)
    > Me.gbxError.Con trols.Add(Me.cb xErrOutXml)
    > Me.gbxError.Con trols.Add(Me.cb xErrParsedXml)
    > Me.gbxError.Con trols.Add(Me.cb xErrOrgXml)
    > Me.gbxError.Loc ation = New System.Drawing. Point(64, 520)
    > Me.gbxError.Nam e = "gbxError"
    > Me.gbxError.Siz e = New System.Drawing. Size(512, 104)
    > Me.gbxError.Tab Index = 2
    > Me.gbxError.Tab Stop = False
    > Me.gbxError.Tex t = "On error"
    > '
    > 'cbxErrData
    > '
    > Me.cbxErrData.L ocation = New System.Drawing. Point(200, 16)
    > Me.cbxErrData.N ame = "cbxErrData "
    > Me.cbxErrData.T abIndex = 17
    > Me.cbxErrData.T ext = "Keep data files"
    > '
    > 'TextBox2
    > '
    > Me.TextBox2.Bor derStyle = System.Windows. Forms.BorderSty le.None
    > Me.TextBox2.Loc ation = New System.Drawing. Point(384, 24)
    > Me.TextBox2.Mul tiline = True
    > Me.TextBox2.Nam e = "TextBox2"
    > Me.TextBox2.Rea dOnly = True
    > Me.TextBox2.Siz e = New System.Drawing. Size(120, 72)
    > Me.TextBox2.Tab Index = 9
    > Me.TextBox2.Tex t = "All error files will be created in the ERROR
    > subfolder under the corresponding XM" & _
    > "L request ID"
    > '
    > 'cbxErrOutXml
    > '
    > Me.cbxErrOutXml .Location = New System.Drawing. Point(8, 64)
    > Me.cbxErrOutXml .Name = "cbxErrOutX ml"
    > Me.cbxErrOutXml .Size = New System.Drawing. Size(120, 24)
    > Me.cbxErrOutXml .TabIndex = 16
    > Me.cbxErrOutXml .Text = "Keep output XML"
    > '
    > 'cbxErrParsedXm l
    > '
    > Me.cbxErrParsed Xml.Location = New System.Drawing. Point(8, 40)
    > Me.cbxErrParsed Xml.Name = "cbxErrParsedXm l"
    > Me.cbxErrParsed Xml.Size = New System.Drawing. Size(152, 24)
    > Me.cbxErrParsed Xml.TabIndex = 15
    > Me.cbxErrParsed Xml.Text = "Keep parsed parsed XML"
    > '
    > 'cbxErrOrgXml
    > '
    > Me.cbxErrOrgXml .Location = New System.Drawing. Point(8, 16)
    > Me.cbxErrOrgXml .Name = "cbxErrOrgX ml"
    > Me.cbxErrOrgXml .Size = New System.Drawing. Size(120, 24)
    > Me.cbxErrOrgXml .TabIndex = 14
    > Me.cbxErrOrgXml .Text = "Keep original XML"
    > '
    > 'btnOk
    > '
    > Me.btnOk.Locati on = New System.Drawing. Point(256, 720)[/color]

    Comment

    • Peter Huang [MSFT]

      #3
      RE: Form with groupboxes is behaving diffrently randomly

      Hi Philip,

      Based on my test on a LG TFT+865G Display Adapter, I can not reproduce the
      problem.
      I test two approach,
      1. show the form first and then rotate between landscape and portrait
      2. rotate from landscape to portrait, and then show the form

      In both test, the groupbox's outlines can be shown fine and we can resize
      the form.

      So I think you may try to test on another machine with different display
      adapter/Display suite.


      Best regards,

      Peter Huang
      Microsoft Online Partner Support

      Get Secure! - www.microsoft.com/security
      This posting is provided "AS IS" with no warranties, and confers no rights.

      Comment

      • Philip Wagenaar

        #4
        RE: Form with groupboxes is behaving diffrently randomly

        But I just updated my display driver from support.dell.co m and now the
        problem with the outlining of the groupboxes is gone. So I guess it wat a bug
        in the ATI driver?

        ""Peter Huang" [MSFT]" wrote:
        [color=blue]
        > Hi Philip,
        >
        > Based on my test on a LG TFT+865G Display Adapter, I can not reproduce the
        > problem.
        > I test two approach,
        > 1. show the form first and then rotate between landscape and portrait
        > 2. rotate from landscape to portrait, and then show the form
        >
        > In both test, the groupbox's outlines can be shown fine and we can resize
        > the form.
        >
        > So I think you may try to test on another machine with different display
        > adapter/Display suite.
        >
        >
        > Best regards,
        >
        > Peter Huang
        > Microsoft Online Partner Support
        >
        > Get Secure! - www.microsoft.com/security
        > This posting is provided "AS IS" with no warranties, and confers no rights.
        >
        >[/color]

        Comment

        • Wei-Dong XU [MSFT]

          #5
          RE: Form with groupboxes is behaving diffrently randomly

          Hi

          So far it is hard to guess what had happened.
          But I think you may try to make a test.
          1. Try to reproduce it on another machine(e.g. A, and confirm it will work)
          2. Try to exchange the two monitors, if the problem occurred on the problem
          machine or the machine A

          So that we can know preparatorily what may be the cause.
          In the next steps, if the Machine A, is OK, the displayer card maybe the
          cause, then you can exchange the Displayer card, to see if the Machine A
          will works OK.
          If NO, then it is the displayer card, you may try update the driver.
          If YES, I think the problem maybe your machine.

          You may perform the test and let me know the result.

          Best regards,

          Peter Huang
          Microsoft Online Partner Support

          Get Secure! - www.microsoft.com/security
          This posting is provided "AS IS" with no warranties, and confers no rights.

          Comment

          Working...