Solved

How do you Call one procedure from another procedure

Posted on 2008-10-22
2
514 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 86

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

717 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