Passing variables between forms in VB

  • Thread starter Thread starter jazFunk
  • Start date Start date
  • Tags Tags
    Forms Variables
Click For Summary
SUMMARY

This discussion focuses on passing variables between forms in Visual Basic 2008, specifically for printing purposes using the PrintForm component. The user expresses familiarity with similar concepts in VBScript and ASP but seeks guidance on implementing this in VB 2008. A suggestion is made to declare public variables in modules as a potential solution for variable sharing between forms.

PREREQUISITES
  • Understanding of Visual Basic 2008 syntax and structure
  • Familiarity with the PrintForm component in VB 2008
  • Knowledge of variable scope and declaration in VB
  • Basic concepts of form handling in Visual Basic
NEXT STEPS
  • Research how to declare public variables in VB 2008 modules
  • Explore the PrintForm component documentation for advanced printing techniques
  • Learn about form events and how to handle data transfer between them in VB 2008
  • Investigate best practices for managing state in Windows Forms applications
USEFUL FOR

Visual Basic developers, particularly those working with VB 2008, and anyone looking to implement inter-form communication for printing tasks.

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?
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 25 ·
Replies
25
Views
4K
Replies
1
Views
7K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 34 ·
2
Replies
34
Views
4K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 14 ·
Replies
14
Views
6K
  • · Replies 43 ·
2
Replies
43
Views
4K
Replies
1
Views
2K