G
Guest
Hi,
I am trying to follow the same structure as the MS Application Blocks for my
local stuff. I am trying to create an application block to process payments
which I'll hand out to other developers in my company. I created the project
Company.Application.Payment and in that project I created one class called
PaymentHelper.vb after compling I created a new project (win form) and then
reference the Company.Application.Payment.dll I then Imports
Company.Application.Payment. The problem is If I create a new sub and then
try
Private Sub CallComp()
PaymentHelper.ProcessPayment()
End Sub
it doesn't work. I have to do the foll
Private Sub CallComp()
Dim test as new PaymentHelper
test.ProcessPayment()
End Sub
Why?
I am trying to follow the same structure as the MS Application Blocks for my
local stuff. I am trying to create an application block to process payments
which I'll hand out to other developers in my company. I created the project
Company.Application.Payment and in that project I created one class called
PaymentHelper.vb after compling I created a new project (win form) and then
reference the Company.Application.Payment.dll I then Imports
Company.Application.Payment. The problem is If I create a new sub and then
try
Private Sub CallComp()
PaymentHelper.ProcessPayment()
End Sub
it doesn't work. I have to do the foll
Private Sub CallComp()
Dim test as new PaymentHelper
test.ProcessPayment()
End Sub
Why?