Solved

How do you Call one procedure from another procedure

Posted on 2008-10-22
2
501 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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 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

10 Experts available now in Live!

Get 1:1 Help Now