How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Bryan Your Own Question

Bryan, Computer Enthusiast
Category: Microsoft Office
Satisfied Customers: 1445
Experience:  Have been using MS Office since Office XP and know VBA coding very well
Type Your Microsoft Office Question Here...
Bryan is online now
A new question is answered every 9 seconds

How do you use the Tag Property of a form in Visual Studio

This answer was rated:

How do you use the 'Tag' Property of a form in Visual Studio 2008, 2010?

JBryan42 :

Welcome to JustAnswer. My name is Bryan and I will be assisting you today. Please do not rate this session until it has been completed.

JBryan42 :

You assign it just like any other property. Is there a specific control you are asking about? And what type of data do you want to store in the tag?

Customer :

Let's say that I open a window as a child to the first (not MDI, you might call it a Dialog), If I want to use the output to a Textbox on the first of the two windows, can I use the Tag for that? Can the Tag be used to monitor a sentinel on that page or anything like that. The bottom line is How Do I Use The Tag Property On One Page On Another Page,

Customer :

Most Likely The Page I Used To Open The One With The Tag I Want To Use?

JBryan42 :

The tag can be set and used just like any other string property. So you could call Dialog1.caption = Form1.TextBox.Tag to assign that way. Does that answer the question?

Customer : Do I need 'using' statements or other references?
JBryan42 :

A tag is just a property of an object. You would only need a uses if you are doing cross form references then they would need to know about each other. So if you wanted to reference the tag stored on Dialog1 from Form1, The dialog would need to be in the uses of the form.

Related Microsoft Office Questions