Public Class NAND Private inputA As Integer Private inputB As Integer Private outputQ As Integer Public Sub New(ByVal inputA As Integer, ByVal inputB As Integer, ByVal outputQ As Integer) Me.inputA = inputA Me.inputB = inputB Me.outputQ = outputQ End Sub Public Function calcNAND() As Integer If inputA = 1 & inputB = 1 Then outputQ = 0 Else outputQ = 1 End If End Function End Class
I have this code and I hope that this is correct. I build a dll component from the class file that contains this code and I am trying to use it as a reference in windows forms application. I have allready made this forms application and added the ddl to the reference but I do not know how to use it in there. I would like to activate (insert value 1) inputA & inputB using checkbox and that the outputQ is displayed in textbox (1 or 0). Do I have to use a vb interface to do this? And how can I use this code as dll component in the forms application?
This post has been edited by progvb: 17 October 2009 - 02:31 PM