User Profile

Collapse

Profile Sidebar

Collapse
adamrlee
adamrlee
Last Activity: Jul 24 '08, 07:43 AM
Joined: Jun 6 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • adamrlee
    replied to Passing a variable from one form to the next
    in .NET
    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
    See more | Go to post

    Leave a comment:


  • adamrlee
    started a topic Heavy interfacing with Excel in VB GUI

    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)

    ...
    See more | Go to post
No activity results to display
Show More
Working...