Solved

How do you Call one procedure from another procedure

Posted on 2008-10-22
2
506 Views
Last Modified: 2013-12-17
I want to call a couple procedures from another procedure. How does one do it within C#?
I know VB.Net the syntax is CALL MySub().
Seem my example below.
Many thanks (and points) to the one who can show me how to implement it.
Wallace


private void bw_DoWork(object sender, DoWorkEventArgs e)

        {

            // I want to call Procedures (shown below) "CreateHeadersAndFillListView()" AND "private void PaintListView(string root)" from this procedure

        }
 

private void CreateHeadersAndFillListView()

        {

          //SO SOME WORK

        }

private void PaintListView(string root)

        {

          //DO SOME STUFF

        }

Open in new window

0
Comment
Question by:wally_davis
2 Comments
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 500 total points
ID: 22780938
private void bw_DoWork(object sender, DoWorkEventArgs e)
        {
            CreateHeadersAndFillListView();
            PaintListView();
        }
 
private void CreateHeadersAndFillListView()
        {
          //SO SOME WORK
        }
private void PaintListView(string root)
        {
          //DO SOME STUFF
        }
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 22781365
By the way, the "Call" part in VB.Net doesn't do anything...it's a relic from the VB6 days:
http://msdn.microsoft.com/en-us/library/sxz296wz(VS.71).aspx
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now