• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1151
  • Last Modified:

OpenArgs equivalent in VB.Net

Been using Access and ASP for awhile now and a common tactic of mine is to filter form data based on an argument passed as an OpenArg value to the DoCmd.OpenForm function in Access or in a query parameter string in ASP. How do I do this in VB.Net?
1 Solution
Bob LearnedCommented:
You can define a property in a form, and set it from the caller:

Private m_UserName As String = String.Empty

  Public Property UserName() As String
      Return m_UserName
    End Get
    Set(ByVal Value As String)
      m_UserName = Value
    End Set
  End Property


Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now