?
Solved

How do you Call one procedure from another procedure

Posted on 2008-10-22
2
Medium Priority
?
515 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 2000 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

801 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