Passing variables between forms in VB

  • Thread starter Thread starter jazFunk
  • Start date Start date
  • Tags Tags
    Forms Variables
AI Thread Summary
To pass variables between forms for printing in VB 2008, utilizing public variables in modules is a recommended approach. This method allows for easy access to shared data across different forms. The PrintForm component can be used effectively for printing purposes, but understanding how to manage variable scope and visibility in VB 2008 is crucial for successful implementation. Familiarity with VBScript and .asp can provide a foundational understanding, but adapting to VB 2008's structure and syntax is necessary for achieving the desired functionality.
jazFunk
Messages
12
Reaction score
0
I need to pass variables from one form to another for printing purposes. I'm using the PrintForm component to print the form.

I'm familiar with this concept using VBScript and .asp... However, I am at a loss for how to do so using VB 2008.
 
Technology news on Phys.org
I never tried printing nor VB 2008, but have you try declaring public variables in modules?
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Replies
25
Views
3K
Replies
34
Views
4K
Replies
19
Views
4K
Replies
11
Views
1K
Back
Top