It is not good to have too many public vars.
Try making more getter/setter methods.
For example if you want to pass var 'x' from Form1 to Form2 simply call Form2.setMyX(x)
in Form2 Sub setMyX(byVal new_x)
x=new_x
End Sub
User Profile
Collapse
-
Heavy interfacing with Excel in VB GUI
I am trying to create a filter program in VB that will be able to heavily interface with a chosen Excel spreadsheet in XLS format. I was wondering if anyone could give me a better way to work with it instead of
adding
Public objExcel As New Excel.Applicati on
under the class title and doing things like:
ComboBox1.Items .Add(objExcel.R ange("a" & cell.ToString). Value.ToString)
...
No activity results to display
Show More
Leave a comment: