Solved

How do you Call one procedure from another procedure

Posted on 2008-10-22
2
512 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

809 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