I work in MS Visual Studio 2008, I have a VB.NET Solution which has three Projects, BusinessObjectL ibrary (object properties), DataAccessLibra ry (object functions such as selectAll, exportToExcel) and WindowUserInter face (UserForms c/w Controls)
In my WindowUserInter face (project) I have a form called "rolFormGrid.vb ", on this form, I have a DataGrid that gets filled with a function called "selectAll" when the form is loaded, I also have a button that calls the function "exportToEx cel" and I have a Progress Bar called "rolProgressBar " ***.
In my DataAccessLibra y (project) I have a class called "ROL_Adapter.vb ", and in this class resides the function called "exportToEx cel" which has all the code to create an Excel Workbook. When this function is being called, it can takes close to a minute to export to excel. We all know how users can be impatient if they do not see anything happening in the foreground when an application is working, that is the reason I want the progress bar.
I want to access this progressbar from my code in my "exportToEx cel" function.
How do I do this?
In MS Access I would call Form_FormName.P rogressBar but I cannot find the way in VB.NET to address the Form
Can you help me?
I hope my explanation is good enough
In my WindowUserInter face (project) I have a form called "rolFormGrid.vb ", on this form, I have a DataGrid that gets filled with a function called "selectAll" when the form is loaded, I also have a button that calls the function "exportToEx cel" and I have a Progress Bar called "rolProgressBar " ***.
In my DataAccessLibra y (project) I have a class called "ROL_Adapter.vb ", and in this class resides the function called "exportToEx cel" which has all the code to create an Excel Workbook. When this function is being called, it can takes close to a minute to export to excel. We all know how users can be impatient if they do not see anything happening in the foreground when an application is working, that is the reason I want the progress bar.
I want to access this progressbar from my code in my "exportToEx cel" function.
How do I do this?
In MS Access I would call Form_FormName.P rogressBar but I cannot find the way in VB.NET to address the Form
Can you help me?
I hope my explanation is good enough
Comment