All my controls dissapeared

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
All the controls on one of my forms has vanished. I was attempting to doubleclick a radio button to get to the CheckedChange event, go some sort of COM error, then the next thing all my controls dissapeared off the form. I got some other strange things happening.
This showed up in the code module;

<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; Private <span style="color:Blue; Sub InitializeComponent()
<span style="color:Blue; Me.SuspendLayout()
<span style="color:Green;
<span style="color:Green; frmBatchHistory
<span style="color:Green;
<span style="color:Blue; Me.ClientSize = <span style="color:Blue; New System.Drawing.Size(284, 262)
<span style="color:Blue; Me.Name = <span style="color:#A31515; "frmBatchHistory"
<span style="color:Blue; Me.ResumeLayout(<span style="color:Blue; False)

<span style="color:Blue; End <span style="color:Blue; Sub
[/code]
<br/>
And anytime I double click inside the empty form I get this...


<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; Private <span style="color:Blue; Sub frmBatchHistory_Load_1(sender <span style="color:Blue; As System.Object, e <span style="color:Blue; As System.EventArgs) <span style="color:Blue; Handles <span style="color:Blue; MyBase.Load

<span style="color:Blue; End <span style="color:Blue; Sub
[/code]
<br/>
I dont know what Load_1 implicates.

Heres my Designer code which looks to be missing something but I dont know what. Ive lost a whole mornings worth of work because of this. Is there any chance of recovery?

<div style="color:Black;background-color:White; <pre>
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
<span style="color:Blue; Partial <span style="color:Blue; Class frmBatchHistory
<span style="color:Blue; Inherits System.Windows.Forms.Form

<span style="color:Green; Form overrides dispose to clean up the component list.


<span style="color:Green; Required by the Windows Form Designer

<span style="color:Green; NOTE: The following procedure is required by the Windows Form Designer
<span style="color:Green; It can be modified using the Windows Form Designer.
<span style="color:Green; Do not modify it using the code editor.

<span style="color:Blue; Friend <span style="color:Blue; WithEvents pnlBatchQueryTools <span style="color:Blue; As System.Windows.Forms.Panel
<span style="color:Blue; Friend <span style="color:Blue; WithEvents grpMachine <span style="color:Blue; As System.Windows.Forms.GroupBox
<span style="color:Blue; Friend <span style="color:Blue; WithEvents optSterilizer3 <span style="color:Blue; As System.Windows.Forms.RadioButton
<span style="color:Blue; Friend <span style="color:Blue; WithEvents optSterilizer2 <span style="color:Blue; As System.Windows.Forms.RadioButton
<span style="color:Blue; Friend <span style="color:Blue; WithEvents optSterilizer1 <span style="color:Blue; As System.Windows.Forms.RadioButton
<span style="color:Blue; Friend <span style="color:Blue; WithEvents grpDateTime <span style="color:Blue; As System.Windows.Forms.GroupBox
<span style="color:Blue; Friend <span style="color:Blue; WithEvents dtpBatchDate <span style="color:Blue; As System.Windows.Forms.DateTimePicker
<span style="color:Blue; Friend <span style="color:Blue; WithEvents lblDate <span style="color:Blue; As System.Windows.Forms.Label
<span style="color:Blue; Friend <span style="color:Blue; WithEvents lblHistoryDays <span style="color:Blue; As System.Windows.Forms.Label
<span style="color:Blue; Friend <span style="color:Blue; WithEvents cboHistoryDays <span style="color:Blue; As System.Windows.Forms.ComboBox
<span style="color:Blue; Friend <span style="color:Blue; WithEvents grpBatchCriteria <span style="color:Blue; As System.Windows.Forms.GroupBox
<span style="color:Blue; Friend <span style="color:Blue; WithEvents lblRecipeName <span style="color:Blue; As System.Windows.Forms.Label
<span style="color:Blue; Friend <span style="color:Blue; WithEvents lblTimeStamp <span style="color:Blue; As System.Windows.Forms.Label
<span style="color:Blue; Friend <span style="color:Blue; WithEvents lblCycleNo <span style="color:Blue; As System.Windows.Forms.Label
<span style="color:Blue; Friend <span style="color:Blue; WithEvents lblBatchNo <span style="color:Blue; As System.Windows.Forms.Label
<span style="color:Blue; Friend <span style="color:Blue; WithEvents cboRecipeName <span style="color:Blue; As System.Windows.Forms.ComboBox
<span style="color:Blue; Friend <span style="color:Blue; WithEvents cboTimeStamp <span style="color:Blue; As System.Windows.Forms.ComboBox
<span style="color:Blue; Friend <span style="color:Blue; WithEvents cboCycleNo <span style="color:Blue; As System.Windows.Forms.ComboBox
<span style="color:Blue; Friend <span style="color:Blue; WithEvents cboBatchNo <span style="color:Blue; As System.Windows.Forms.ComboBox
<span style="color:Blue; Friend <span style="color:Blue; WithEvents dgvBatchData <span style="color:Blue; As System.Windows.Forms.DataGridView
<span style="color:Blue; Friend <span style="color:Blue; WithEvents BindingSource1 <span style="color:Blue; As System.Windows.Forms.BindingSource
<span style="color:Blue; Friend <span style="color:Blue; WithEvents dsBatchData <span style="color:Blue; As SterClient.dsBatchData
<span style="color:Blue; Friend <span style="color:Blue; WithEvents SpBatchLoadTableAdapter <span style="color:Blue; As SterClient.dsBatchDataTableAdapters.spBatchLoadTableAdapter
<span style="color:Blue; Friend <span style="color:Blue; WithEvents BatchIdxDataGridViewTextBoxColumn <span style="color:Blue; As System.Windows.Forms.DataGridViewTextBoxColumn
<span style="color:Blue; Friend <span style="color:Blue; WithEvents AutoclaveNoDataGridViewTextBoxColumn <span style="color:Blue; As System.Windows.Forms.DataGridViewTextBoxColumn
<span style="color:Blue; Friend <span style="color:Blue; WithEvents BatchNoDataGridViewTextBoxColumn <span style="color:Blue; As System.Windows.Forms.DataGridViewTextBoxColumn
<span style="color:Blue; Friend <span style="color:Blue; WithEvents CycleNoDataGridViewTextBoxColumn <span style="color:Blue; As System.Windows.Forms.DataGridViewTextBoxColumn
<span style="color:Blue; Friend <span style="color:Blue; WithEvents RecipeNoDataGridViewTextBoxColumn <span style="color:Blue; As System.Windows.Forms.DataGridViewTextBoxColumn
<span style="color:Blue; Friend <span style="color:Blue; WithEvents RecipeNameDataGridViewTextBoxColumn <span style="color:Blue; As System.Windows.Forms.DataGridViewTextBoxColumn
<span style="color:Blue; Friend <span style="color:Blue; WithEvents LoadNoDataGridViewTextBoxColumn <span style="color:Blue; As System.Windows.Forms.DataGridViewTextBoxColumn
<span style="color:Blue; Friend <span style="color:Blue; WithEvents UserIDDataGridViewTextBoxColumn <span style="color:Blue; As System.Windows.Forms.DataGridViewTextBoxColumn
<span style="color:Blue; Friend <span style="color:Blue; WithEvents DateTimeStampDataGridViewTextBoxColumn <span style="color:Blue; As System.Windows.Forms.DataGridViewTextBoxColumn
<span style="color:Blue; Friend <span style="color:Blue; WithEvents EOBReportPrintDataGridViewCheckBoxColumn <span style="color:Blue; As System.Windows.Forms.DataGridViewCheckBoxColumn
<span style="color:Blue; Friend <span style="color:Blue; WithEvents BatchCompleteDataGridViewCheckBoxColumn <span style="color:Blue; As System.Windows.Forms.DataGridViewCheckBoxColumn
<span style="color:Blue; Friend <span style="color:Blue; WithEvents tsMain <span style="color:Blue; As System.Windows.Forms.ToolStrip
<span style="color:Blue; Friend <span style="color:Blue; WithEvents tsbShowBatchReport <span style="color:Blue; As System.Windows.Forms.ToolStripButton
<span style="color:Blue; Friend <span style="color:Blue; WithEvents tsbPrintBatchReport <span style="color:Blue; As System.Windows.Forms.ToolStripButton
<span style="color:Blue; Friend <span style="color:Blue; WithEvents tsbShowAlarmSummary <span style="color:Blue; As System.Windows.Forms.ToolStripButton
<span style="color:Blue; Friend <span style="color:Blue; WithEvents tsbPrintAlarmSummary <span style="color:Blue; As System.Windows.Forms.ToolStripButton
<span style="color:Blue; Friend <span style="color:Blue; WithEvents tsSeparator1 <span style="color:Blue; As System.Windows.Forms.ToolStripSeparator
<span style="color:Blue; Friend <span style="color:Blue; WithEvents tsbClearCriteria <span style="color:Blue; As System.Windows.Forms.ToolStripButton
<span style="color:Blue; Friend <span style="color:Blue; WithEvents tsbExit <span style="color:Blue; As System.Windows.Forms.ToolStripButton
<span style="color:Blue; End <span style="color:Blue; Class

[/code]





View the full article
 
Back
Top