i have a control dll and i use this control in my project then i change this controls codes after i do it . appears some error on this lines in form1[designer]

Me.Dentisyon1 = New WindowsControlLibrary1.dentisyon 
Friend WithEvents Dentisyon1 As WindowsControlLibrary1.dentisyon

what should i do?

thx for answers

Edited 5 Years Ago by Oneryavuz: n/a

ups sorry i forget this

"Type 'WindowsControlLibrary1.dentisyon' is not definited"

hmm i use my control , i change its dll , i delete my control from form , i right click on toolbox n i click choose item and i press reset button for reset my toolbox and i browse my new dll :D at least i got the error

i have a control dll and i use this control in my project then i change this controls codes after i do it . appears some error on this lines in form1[designer]

Me.Dentisyon1 = New WindowsControlLibrary1.dentisyon 
Friend WithEvents Dentisyon1 As WindowsControlLibrary1.dentisyon

what should i do?

thx for answers

it seems that your code is basically correct. by the way, where did you put your code? if you put your code in your form.vb file, then i suggest putting that code in the form.designer.vb file under Private Sub InitializeComponent().

The code should look like this

Private Sub InitializeComponent()
        Me.Dentisyon1 = New WindowsControlLibrary1.dentisyon
End Sub
Friend WithEvents Dentisyon1 As WindowsControlLibrary1.dentisyon
This question has already been answered. Start a new discussion instead.