Reputation: 729
there is an error I have marked in the code below whether this is the cause of converting from c# to vb.net but if I create a new project vb.net with the textbox there is no problem whatsoever. if I run the original C# project then without error. Please recommend a solution. is there anything that needs to be modified in the designer?
Thanks this may be an event issue in the vb.net
'Code in C#
private System.ComponentModel.IContainer components = null;
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
Bunifu.UI.WinForms.BunifuTextBox.StateProperties stateProperties1 = new Bunifu.UI.WinForms.BunifuTextBox.StateProperties();
Bunifu.UI.WinForms.BunifuTextBox.StateProperties stateProperties2 = new Bunifu.UI.WinForms.BunifuTextBox.StateProperties();
Bunifu.UI.WinForms.BunifuTextBox.StateProperties stateProperties3 = new Bunifu.UI.WinForms.BunifuTextBox.StateProperties();
Bunifu.UI.WinForms.BunifuTextBox.StateProperties stateProperties4 = new Bunifu.UI.WinForms.BunifuTextBox.StateProperties();
this.BunifuTextBox1 = new Bunifu.UI.WinForms.BunifuTextBox();
this.SuspendLayout();
}
private Bunifu.UI.WinForms.BunifuTextBox BunifuTextBox1;
Private components As System.ComponentModel.IContainer = Nothing
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing AndAlso (components IsNot Nothing) Then
components.Dispose()
End If
MyBase.Dispose(disposing)
End Sub
'error this line in bunifutextbox is ambiguous in the namespace bunifu.ui.winforms
Private Sub InitializeComponent()
Dim StateProperties1 As Bunifu.UI.WinForms.BunifuTextBox.StateProperties = New Bunifu.UI.WinForms.BunifuTextBox.StateProperties()
Dim StateProperties2 As Bunifu.UI.WinForms.BunifuTextBox.StateProperties = New Bunifu.UI.WinForms.BunifuTextBox.StateProperties()
Dim StateProperties3 As Bunifu.UI.WinForms.BunifuTextBox.StateProperties = New Bunifu.UI.WinForms.BunifuTextBox.StateProperties()
Dim StateProperties4 As Bunifu.UI.WinForms.BunifuTextBox.StateProperties = New Bunifu.UI.WinForms.BunifuTextBox.StateProperties()
'The code within the method 'InitializeComponent' is generated by the designer and should not be manually modified. Please remove any changes and try opening the designer again.
Me.BunifuTextBox1 = New Bunifu.UI.WinForms.BunifuTextBox()
Me.SuspendLayout()
End Sub
'Error BC30002 Type 'BunifuTextBox' is not defined.
Friend WithEvents BunifuTextBox1 As BunifuTextBox
Upvotes: 0
Views: 208