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

Recommended Answers

All 4 Replies

You should tell us the error as well.

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

ok its work thx a lot

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.