Advertisement

06.15.2008 at 03:07PM PDT, ID: 23486730
[x]
Attachment Details

Using Classes with Asp.net

Asked by grogo21 in Programming for ASP.NET, .NET, Microsoft Visual Basic.Net

Tags: asp.net, vb.net

Hello, i know this is a very simple question but I am used to placing all of my code into one class and would now like to use multiple classes to help organize my code.

My questions is how can I call functions and subroutines in one class from another class.

Class1.vb contains:
Public Class ProcessSnap
    Public Sub Process(ByVal iWidth As Integer, ByVal iHeight As Integer)
    End Sub
End Class

In class2.vb i would like to execute the sub above.  Does the code below accoplish this?

                        Dim Process As ProcessSnap = New ProcessSnap
                        Process.Process(iwidth, iHeight)

Thanks



Start Free Trial
 
Keywords: Using Classes with Asp.net
 
Loading Advertisement...
 
[+][-]06.15.2008 at 03:53PM PDT, ID: 21790008

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Programming for ASP.NET, .NET, Microsoft Visual Basic.Net
Tags: asp.net, vb.net
Sign Up Now!
Solution Provided By: Chaosian
Participating Experts: 2
Solution Grade: A
 
 
[+][-]06.15.2008 at 04:19PM PDT, ID: 21790086

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.15.2008 at 04:52PM PDT, ID: 21790156

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628