Text Box Behavior

  • Thread starter Thread starter Brian P. Hammer
  • Start date Start date
B

Brian P. Hammer

All,

I have a couple of forms that have a strange textbox behavior. In all the text boxes, even if I add a new one, I can not set the caret anywhere in it except in 0. It will select whole words and if I have the caret at 0, I can use the arrow keys to move the caret. Everything else seems to be fine. I can't find any property that makes the textbox back to normal. Can someone tell me what I turned on or off to cause this behavior?

Regards,
Brian P. Hammer
 
* "Brian P. Hammer said:
I have a couple of forms that have a strange textbox behavior.  In all the text boxes, even if I add a new one,
I can not set the caret anywhere in it except in 0.  It will select whole words and if I have the caret at 0, I
can use the arrow keys to move the caret.  Everything else seems to be fine. I can't find any property that
makes the textbox back to normal.  Can someone tell me what I turned on or off to cause this behavior?

Does this behavior even occur in a blank project?
 
No, the funny thing is that if I create a new mdi child form, I don't have
the problem. If I copy the entire code from the offending form to a new
form, the problem is there. That is why I thought I had seleted something.
I have included the code below but I don't think you can compile it because
it has a few third party controls.



Imports Consts
Imports RecordHistory
Public Class frmEditContact
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.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
With daContactSelector.SelectCommand.Parameters
..Item("@ContactID").Value = ContactID
End With
DsCompanySelector1.Clear()
daContactSelector.Fill(DsCompanySelector1, "tblContact")

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.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'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 DotNetMenuProvider1 As DotNetWidgets.DotNetMenuProvider
Friend WithEvents DotNetToolbar1 As DotNetWidgets.DotNetToolbar
Friend WithEvents MainMenu1 As System.Windows.Forms.MainMenu
Friend WithEvents MenuItem1 As System.Windows.Forms.MenuItem
Friend WithEvents mnuExit As System.Windows.Forms.MenuItem
Friend WithEvents ilstMenu As System.Windows.Forms.ImageList
Friend WithEvents tbExit As DotNetWidgets.DotNetToolbarButtonItem
Friend WithEvents ilstToolBar As System.Windows.Forms.ImageList
Friend WithEvents SqlConnection1 As System.Data.SqlClient.SqlConnection
Friend WithEvents SqlSelectCommand1 As System.Data.SqlClient.SqlCommand
Friend WithEvents DsCompanySelector1 As
LeadProspectClient_Database.dsCompanySelector
Friend WithEvents daContactSelector As System.Data.SqlClient.SqlDataAdapter
Friend WithEvents Splitter1 As System.Windows.Forms.Splitter
Friend WithEvents Label5 As System.Windows.Forms.Label
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents rtbNote As System.Windows.Forms.RichTextBox
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents txtReferral As System.Windows.Forms.TextBox
Friend WithEvents txtType As System.Windows.Forms.TextBox
Friend WithEvents txtContactID As System.Windows.Forms.TextBox
Friend WithEvents catMain As OutlookBar.OutlookBarCategory
Friend WithEvents ilstTree As System.Windows.Forms.ImageList
Friend WithEvents treMain As OutlookBar.OutlookBar
Friend WithEvents txtName As System.Windows.Forms.TextBox
Friend WithEvents SqlSelectCommand2 As System.Data.SqlClient.SqlCommand
Friend WithEvents SqlInsertCommand1 As System.Data.SqlClient.SqlCommand
Friend WithEvents SqlUpdateCommand1 As System.Data.SqlClient.SqlCommand
Friend WithEvents SqlDeleteCommand1 As System.Data.SqlClient.SqlCommand
Private WithEvents txtClientCode As System.Windows.Forms.TextBox
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
Private WithEvents Panel2 As System.Windows.Forms.Panel
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Me.DotNetMenuProvider1 = New DotNetWidgets.DotNetMenuProvider
Me.ilstMenu = New System.Windows.Forms.ImageList(Me.components)
Me.MenuItem1 = New System.Windows.Forms.MenuItem
Me.mnuExit = New System.Windows.Forms.MenuItem
Me.DotNetToolbar1 = New DotNetWidgets.DotNetToolbar
Me.tbExit = New DotNetWidgets.DotNetToolbarButtonItem
Me.ilstToolBar = New System.Windows.Forms.ImageList(Me.components)
Me.MainMenu1 = New System.Windows.Forms.MainMenu
Me.DsCompanySelector1 = New LeadProspectClient_Database.dsCompanySelector
Me.SqlConnection1 = New System.Data.SqlClient.SqlConnection
Me.daContactSelector = New System.Data.SqlClient.SqlDataAdapter
Me.SqlDeleteCommand1 = New System.Data.SqlClient.SqlCommand
Me.SqlInsertCommand1 = New System.Data.SqlClient.SqlCommand
Me.SqlSelectCommand2 = New System.Data.SqlClient.SqlCommand
Me.SqlUpdateCommand1 = New System.Data.SqlClient.SqlCommand
Me.SqlSelectCommand1 = New System.Data.SqlClient.SqlCommand
Me.treMain = New OutlookBar.OutlookBar
Me.catMain = New OutlookBar.OutlookBarCategory
Me.ilstTree = New System.Windows.Forms.ImageList(Me.components)
Me.Splitter1 = New System.Windows.Forms.Splitter
Me.Panel2 = New System.Windows.Forms.Panel
Me.Button1 = New System.Windows.Forms.Button
Me.txtName = New System.Windows.Forms.TextBox
Me.Label5 = New System.Windows.Forms.Label
Me.Label4 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.rtbNote = New System.Windows.Forms.RichTextBox
Me.Label2 = New System.Windows.Forms.Label
Me.Label1 = New System.Windows.Forms.Label
Me.txtReferral = New System.Windows.Forms.TextBox
Me.txtType = New System.Windows.Forms.TextBox
Me.txtClientCode = New System.Windows.Forms.TextBox
Me.txtContactID = New System.Windows.Forms.TextBox
Me.TextBox1 = New System.Windows.Forms.TextBox
CType(Me.DsCompanySelector1,
System.ComponentModel.ISupportInitialize).BeginInit()
Me.Panel2.SuspendLayout()
Me.SuspendLayout()
'
'DotNetMenuProvider1
'
Me.DotNetMenuProvider1.ImageList = Me.ilstMenu
Me.DotNetMenuProvider1.OwnerForm = Me
'
'ilstMenu
'
Me.ilstMenu.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit
Me.ilstMenu.ImageSize = New System.Drawing.Size(16, 16)
Me.ilstMenu.TransparentColor = System.Drawing.Color.Transparent
'
'MenuItem1
'
Me.DotNetMenuProvider1.SetDrawSpecial(Me.MenuItem1, True)
Me.MenuItem1.Index = 0
Me.MenuItem1.MenuItems.AddRange(New System.Windows.Forms.MenuItem()
{Me.mnuExit})
Me.MenuItem1.Text = "&File"
'
'mnuExit
'
Me.DotNetMenuProvider1.SetDrawSpecial(Me.mnuExit, True)
Me.DotNetMenuProvider1.SetImageIndex(Me.mnuExit, 0)
Me.mnuExit.Index = 0
Me.mnuExit.Text = "E&xit"
'
'DotNetToolbar1
'
Me.DotNetToolbar1.Buttons.Add(Me.tbExit)
Me.DotNetToolbar1.Cursor = System.Windows.Forms.Cursors.Hand
Me.DotNetToolbar1.ImageList = Me.ilstToolBar
Me.DotNetToolbar1.Location = New System.Drawing.Point(0, 0)
Me.DotNetToolbar1.Name = "DotNetToolbar1"
Me.DotNetToolbar1.Size = New System.Drawing.Size(696, 26)
Me.DotNetToolbar1.TabIndex = 0
'
'tbExit
'
Me.tbExit.ImageIndex = 0
Me.tbExit.MenuInvoke = Me.mnuExit
Me.tbExit.ToolTipText = "Exit"
'
'ilstToolBar
'
Me.ilstToolBar.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit
Me.ilstToolBar.ImageSize = New System.Drawing.Size(16, 16)
Me.ilstToolBar.TransparentColor = System.Drawing.Color.Transparent
'
'MainMenu1
'
Me.MainMenu1.MenuItems.AddRange(New System.Windows.Forms.MenuItem()
{Me.MenuItem1})
'
'DsCompanySelector1
'
Me.DsCompanySelector1.DataSetName = "dsCompanySelector"
Me.DsCompanySelector1.Locale = New System.Globalization.CultureInfo("en-US")
'
'SqlConnection1
'
Me.SqlConnection1.ConnectionString = "workstation id=BPH;packet
size=4096;integrated security=SSPI;data source=bph;pers" & _
"ist security info=False;initial catalog=LeadProspectClient"
'
'daContactSelector
'
Me.daContactSelector.DeleteCommand = Me.SqlDeleteCommand1
Me.daContactSelector.InsertCommand = Me.SqlInsertCommand1
Me.daContactSelector.SelectCommand = Me.SqlSelectCommand2
Me.daContactSelector.TableMappings.AddRange(New
System.Data.Common.DataTableMapping() {New
System.Data.Common.DataTableMapping("Table", "tblContact", New
System.Data.Common.DataColumnMapping() {New
System.Data.Common.DataColumnMapping("ContactID", "ContactID"), New
System.Data.Common.DataColumnMapping("Name", "Name"), New
System.Data.Common.DataColumnMapping("Code", "Code"), New
System.Data.Common.DataColumnMapping("Type", "Type"), New
System.Data.Common.DataColumnMapping("Note", "Note"), New
System.Data.Common.DataColumnMapping("Referral", "Referral")})})
Me.daContactSelector.UpdateCommand = Me.SqlUpdateCommand1
'
'SqlDeleteCommand1
'
Me.SqlDeleteCommand1.CommandText = "DELETE FROM tblContact WHERE (ContactID
= @Original_ContactID) AND (Code = @Origi" & _
"nal_Code OR @Original_Code IS NULL AND Code IS NULL) AND (Name =
@Original_Name " & _
"OR @Original_Name IS NULL AND Name IS NULL) AND (Referral =
@Original_Referral O" & _
"R @Original_Referral IS NULL AND Referral IS NULL) AND (Type =
@Original_Type OR" & _
" @Original_Type IS NULL AND Type IS NULL)"
Me.SqlDeleteCommand1.Connection = Me.SqlConnection1
Me.SqlDeleteCommand1.Parameters.Add(New
System.Data.SqlClient.SqlParameter("@Original_ContactID",
System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, False,
CType(0, Byte), CType(0, Byte), "ContactID",
System.Data.DataRowVersion.Original, Nothing))
Me.SqlDeleteCommand1.Parameters.Add(New
System.Data.SqlClient.SqlParameter("@Original_Code",
System.Data.SqlDbType.NVarChar, 3, System.Data.ParameterDirection.Input,
False, CType(0, Byte), CType(0, Byte), "Code",
System.Data.DataRowVersion.Original, Nothing))
Me.SqlDeleteCommand1.Parameters.Add(New
System.Data.SqlClient.SqlParameter("@Original_Name",
System.Data.SqlDbType.NVarChar, 155, System.Data.ParameterDirection.Input,
False, CType(0, Byte), CType(0, Byte), "Name",
System.Data.DataRowVersion.Original, Nothing))
Me.SqlDeleteCommand1.Parameters.Add(New
System.Data.SqlClient.SqlParameter("@Original_Referral",
System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input,
False, CType(0, Byte), CType(0, Byte), "Referral",
System.Data.DataRowVersion.Original, Nothing))
Me.SqlDeleteCommand1.Parameters.Add(New
System.Data.SqlClient.SqlParameter("@Original_Type",
System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input,
False, CType(0, Byte), CType(0, Byte), "Type",
System.Data.DataRowVersion.Original, Nothing))
'
'SqlInsertCommand1
'
Me.SqlInsertCommand1.CommandText = "INSERT INTO tblContact(Name, Code, Type,
Note, Referral) VALUES (@Name, @Code, @T" & _
"ype, @Note, @Referral); SELECT ContactID, Name, Code, Type, Note, Referral
FROM " & _
"tblContact WHERE (ContactID = @@IDENTITY)"
Me.SqlInsertCommand1.Connection = Me.SqlConnection1
Me.SqlInsertCommand1.Parameters.Add(New
System.Data.SqlClient.SqlParameter("@Name", System.Data.SqlDbType.NVarChar,
155, "Name"))
Me.SqlInsertCommand1.Parameters.Add(New
System.Data.SqlClient.SqlParameter("@Code", System.Data.SqlDbType.NVarChar,
3, "Code"))
Me.SqlInsertCommand1.Parameters.Add(New
System.Data.SqlClient.SqlParameter("@Type", System.Data.SqlDbType.NVarChar,
50, "Type"))
Me.SqlInsertCommand1.Parameters.Add(New
System.Data.SqlClient.SqlParameter("@Note", System.Data.SqlDbType.NVarChar,
1073741823, "Note"))
Me.SqlInsertCommand1.Parameters.Add(New
System.Data.SqlClient.SqlParameter("@Referral",
System.Data.SqlDbType.NVarChar, 50, "Referral"))
'
'SqlSelectCommand2
'
Me.SqlSelectCommand2.CommandText = "SELECT ContactID, Name, Code, Type,
Note, Referral FROM tblContact WERE (Contact" & _
"ID = @ContactID)"
Me.SqlSelectCommand2.Connection = Me.SqlConnection1
Me.SqlSelectCommand2.Parameters.Add(New
System.Data.SqlClient.SqlParameter("@ContactID", System.Data.SqlDbType.Int,
4, "ContactID"))
'
'SqlUpdateCommand1
'
Me.SqlUpdateCommand1.CommandText = "UPDATE tblContact SET Name = @Name, Code
= @Code, Type = @Type, Note = @Note, Ref" & _
"erral = @Referral WHERE (ContactID = @Original_ContactID) AND (Code =
@Original_" & _
"Code OR @Original_Code IS NULL AND Code IS NULL) AND (Name = @Original_Name
OR @" & _
"Original_Name IS NULL AND Name IS NULL) AND (Referral = @Original_Referral
OR @O" & _
"riginal_Referral IS NULL AND Referral IS NULL) AND (Type = @Original_Type
OR @Or" & _
"iginal_Type IS NULL AND Type IS NULL); SELECT ContactID, Name, Code, Type,
Note," & _
" Referral FROM tblContact WHERE (ContactID = @ContactID)"
Me.SqlUpdateCommand1.Connection = Me.SqlConnection1
Me.SqlUpdateCommand1.Parameters.Add(New
System.Data.SqlClient.SqlParameter("@Name", System.Data.SqlDbType.NVarChar,
155, "Name"))
Me.SqlUpdateCommand1.Parameters.Add(New
System.Data.SqlClient.SqlParameter("@Code", System.Data.SqlDbType.NVarChar,
3, "Code"))
Me.SqlUpdateCommand1.Parameters.Add(New
System.Data.SqlClient.SqlParameter("@Type", System.Data.SqlDbType.NVarChar,
50, "Type"))
Me.SqlUpdateCommand1.Parameters.Add(New
System.Data.SqlClient.SqlParameter("@Note", System.Data.SqlDbType.NVarChar,
1073741823, "Note"))
Me.SqlUpdateCommand1.Parameters.Add(New
System.Data.SqlClient.SqlParameter("@Referral",
System.Data.SqlDbType.NVarChar, 50, "Referral"))
Me.SqlUpdateCommand1.Parameters.Add(New
System.Data.SqlClient.SqlParameter("@Original_ContactID",
System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, False,
CType(0, Byte), CType(0, Byte), "ContactID",
System.Data.DataRowVersion.Original, Nothing))
Me.SqlUpdateCommand1.Parameters.Add(New
System.Data.SqlClient.SqlParameter("@Original_Code",
System.Data.SqlDbType.NVarChar, 3, System.Data.ParameterDirection.Input,
False, CType(0, Byte), CType(0, Byte), "Code",
System.Data.DataRowVersion.Original, Nothing))
Me.SqlUpdateCommand1.Parameters.Add(New
System.Data.SqlClient.SqlParameter("@Original_Name",
System.Data.SqlDbType.NVarChar, 155, System.Data.ParameterDirection.Input,
False, CType(0, Byte), CType(0, Byte), "Name",
System.Data.DataRowVersion.Original, Nothing))
Me.SqlUpdateCommand1.Parameters.Add(New
System.Data.SqlClient.SqlParameter("@Original_Referral",
System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input,
False, CType(0, Byte), CType(0, Byte), "Referral",
System.Data.DataRowVersion.Original, Nothing))
Me.SqlUpdateCommand1.Parameters.Add(New
System.Data.SqlClient.SqlParameter("@Original_Type",
System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input,
False, CType(0, Byte), CType(0, Byte), "Type",
System.Data.DataRowVersion.Original, Nothing))
Me.SqlUpdateCommand1.Parameters.Add(New
System.Data.SqlClient.SqlParameter("@ContactID", System.Data.SqlDbType.Int,
4, "ContactID"))
'
'SqlSelectCommand1
'
Me.SqlSelectCommand1.CommandText = "SELECT ContactID, Name, Code, Type,
Note, Referral FROM tblContact"
Me.SqlSelectCommand1.Connection = Me.SqlConnection1
'
'treMain
'
Me.treMain.Categories.Add(Me.catMain)
Me.treMain.Dock = System.Windows.Forms.DockStyle.Left
Me.treMain.HideCategoryHeadings = True
Me.treMain.ImageList = Me.ilstTree
Me.treMain.Location = New System.Drawing.Point(0, 26)
Me.treMain.Name = "treMain"
Me.treMain.SelectedCategory = Me.catMain
Me.treMain.Size = New System.Drawing.Size(112, 391)
Me.treMain.TabIndex = 18
'
'ilstTree
'
Me.ilstTree.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit
Me.ilstTree.ImageSize = New System.Drawing.Size(32, 32)
Me.ilstTree.TransparentColor = System.Drawing.Color.Transparent
'
'Splitter1
'
Me.Splitter1.Location = New System.Drawing.Point(112, 26)
Me.Splitter1.Name = "Splitter1"
Me.Splitter1.Size = New System.Drawing.Size(3, 391)
Me.Splitter1.TabIndex = 19
Me.Splitter1.TabStop = False
'
'Panel2
'
Me.Panel2.Controls.Add(Me.TextBox1)
Me.Panel2.Controls.Add(Me.Button1)
Me.Panel2.Controls.Add(Me.txtName)
Me.Panel2.Controls.Add(Me.Label5)
Me.Panel2.Controls.Add(Me.Label4)
Me.Panel2.Controls.Add(Me.Label3)
Me.Panel2.Controls.Add(Me.rtbNote)
Me.Panel2.Controls.Add(Me.Label2)
Me.Panel2.Controls.Add(Me.Label1)
Me.Panel2.Controls.Add(Me.txtReferral)
Me.Panel2.Controls.Add(Me.txtType)
Me.Panel2.Controls.Add(Me.txtClientCode)
Me.Panel2.Controls.Add(Me.txtContactID)
Me.Panel2.Dock = System.Windows.Forms.DockStyle.Fill
Me.Panel2.Location = New System.Drawing.Point(115, 26)
Me.Panel2.Name = "Panel2"
Me.Panel2.Size = New System.Drawing.Size(581, 391)
Me.Panel2.TabIndex = 20
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(224, 24)
Me.Button1.Name = "Button1"
Me.Button1.TabIndex = 29
Me.Button1.Text = "Button1"
'
'txtName
'
Me.txtName.DataBindings.Add(New System.Windows.Forms.Binding("Text",
Me.DsCompanySelector1, "tblContact.Name"))
Me.txtName.Location = New System.Drawing.Point(88, 64)
Me.txtName.Name = "txtName"
Me.txtName.Size = New System.Drawing.Size(480, 26)
Me.txtName.TabIndex = 1
Me.txtName.Text = ""
'
'Label5
'
Me.Label5.Font = New System.Drawing.Font("Times New Roman", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.Label5.Location = New System.Drawing.Point(16, 64)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(64, 23)
Me.Label5.TabIndex = 28
Me.Label5.Text = "Name"
'
'Label4
'
Me.Label4.Font = New System.Drawing.Font("Times New Roman", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.Label4.Location = New System.Drawing.Point(16, 32)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(56, 23)
Me.Label4.TabIndex = 27
Me.Label4.Text = "Code"
'
'Label3
'
Me.Label3.Font = New System.Drawing.Font("Times New Roman", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.Label3.Location = New System.Drawing.Point(16, 160)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(64, 23)
Me.Label3.TabIndex = 26
Me.Label3.Text = "Notes"
'
'rtbNote
'
Me.rtbNote.BackColor = System.Drawing.SystemColors.Window
Me.rtbNote.DataBindings.Add(New System.Windows.Forms.Binding("Text",
Me.DsCompanySelector1, "tblContact.Note"))
Me.rtbNote.Font = New System.Drawing.Font("Times New Roman", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.rtbNote.Location = New System.Drawing.Point(88, 160)
Me.rtbNote.Name = "rtbNote"
Me.rtbNote.Size = New System.Drawing.Size(480, 184)
Me.rtbNote.TabIndex = 4
Me.rtbNote.Text = ""
'
'Label2
'
Me.Label2.Font = New System.Drawing.Font("Times New Roman", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.Label2.Location = New System.Drawing.Point(16, 128)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(64, 23)
Me.Label2.TabIndex = 24
Me.Label2.Text = "Referral"
'
'Label1
'
Me.Label1.Font = New System.Drawing.Font("Times New Roman", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.Label1.Location = New System.Drawing.Point(16, 96)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(64, 23)
Me.Label1.TabIndex = 23
Me.Label1.Text = "Type"
'
'txtReferral
'
Me.txtReferral.DataBindings.Add(New System.Windows.Forms.Binding("Text",
Me.DsCompanySelector1, "tblContact.Referral"))
Me.txtReferral.Font = New System.Drawing.Font("Times New Roman", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.txtReferral.Location = New System.Drawing.Point(88, 128)
Me.txtReferral.Name = "txtReferral"
Me.txtReferral.Size = New System.Drawing.Size(480, 26)
Me.txtReferral.TabIndex = 3
Me.txtReferral.Text = ""
'
'txtType
'
Me.txtType.DataBindings.Add(New System.Windows.Forms.Binding("Text",
Me.DsCompanySelector1, "tblContact.Type"))
Me.txtType.Font = New System.Drawing.Font("Times New Roman", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.txtType.Location = New System.Drawing.Point(88, 96)
Me.txtType.Name = "txtType"
Me.txtType.Size = New System.Drawing.Size(480, 26)
Me.txtType.TabIndex = 2
Me.txtType.Text = ""
'
'txtClientCode
'
Me.txtClientCode.DataBindings.Add(New System.Windows.Forms.Binding("Text",
Me.DsCompanySelector1, "tblContact.Code"))
Me.txtClientCode.Font = New System.Drawing.Font("Times New Roman", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.txtClientCode.Location = New System.Drawing.Point(88, 32)
Me.txtClientCode.Name = "txtClientCode"
Me.txtClientCode.Size = New System.Drawing.Size(56, 26)
Me.txtClientCode.TabIndex = 0
Me.txtClientCode.Text = ""
'
'txtContactID
'
Me.txtContactID.DataBindings.Add(New System.Windows.Forms.Binding("Text",
Me.DsCompanySelector1, "tblContact.ContactID"))
Me.txtContactID.Enabled = False
Me.txtContactID.Font = New System.Drawing.Font("Times New Roman", 9.75!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.txtContactID.Location = New System.Drawing.Point(88, 8)
Me.txtContactID.Name = "txtContactID"
Me.txtContactID.ReadOnly = True
Me.txtContactID.Size = New System.Drawing.Size(56, 22)
Me.txtContactID.TabIndex = 19
Me.txtContactID.Text = ""
'
'TextBox1
'
Me.TextBox1.Location = New System.Drawing.Point(344, 24)
Me.TextBox1.Name = "TextBox1"
Me.TextBox1.TabIndex = 30
Me.TextBox1.Text = "TextBox1"
'
'frmEditContact
'
Me.AutoScaleBaseSize = New System.Drawing.Size(7, 19)
Me.AutoScroll = True
Me.ClientSize = New System.Drawing.Size(696, 417)
Me.Controls.Add(Me.Panel2)
Me.Controls.Add(Me.Splitter1)
Me.Controls.Add(Me.treMain)
Me.Controls.Add(Me.DotNetToolbar1)
Me.DataBindings.Add(New System.Windows.Forms.Binding("Text",
Me.DsCompanySelector1, "tblContact.Name"))
Me.Font = New System.Drawing.Font("Times New Roman", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.Menu = Me.MainMenu1
Me.Name = "frmEditContact"
Me.Text = "Contact Selector"
CType(Me.DsCompanySelector1,
System.ComponentModel.ISupportInitialize).EndInit()
Me.Panel2.ResumeLayout(False)
Me.ResumeLayout(False)
End Sub
#End Region
 
I think I figured it out. If I delete the third party control DotNet Menu
Provider, everything works as expected. I am using 2003 and .Net1.1. I don't
remember having these issues in 2002 and 1.0. Thanks for your help.
 
Back
Top