AllExperts > Experts 
Search      

Visual Basic

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More Visual Basic Answers
Question Library

Ask a question about Visual Basic
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Frank G. Dahncke
Expertise
I can answer most questions realating to real-world application programming in Visual Basic .NET (including SQL-Server 7.0 and up). I NO LONGER ANSWER VB6 QUESTIONS. My speciality is GUI/frontend work and API calls. I do not know about Internet, games or graphics programming, just the bread-and-butter stuff. I answer questions in German as well.

Experience
Experience: I have been programming BASIC applications professionally for 22 years now (2007), having done most any application type from multimedia CBT to telephone directories to database frontends. Organizations: RA-MICRO Software GmbH
 
   

You are here:  Experts > Computing/Technology > Basic > Visual Basic > Runtime controls

Topic: Visual Basic



Expert: Frank G. Dahncke
Date: 7/28/2008
Subject: Runtime controls

Question
QUESTION: I can create controls on a form at runtime (check boxes and text boxes) but I can not figure out how to read from those controls to save their contents to an array or a file.

How can this be done?

ANSWER: Which version of VB are you using?

Yours,

Frank

---------- FOLLOW-UP ----------

QUESTION: Sorry - its VB 2008 Express Edition

Answer
OK. In that case, just read the properties of the control. I don't know your background in programming, so I'll just make a simple example. Let's assume a textcontrol named "txtInput" resides on your form, then you can access the text the user typed by using the .Text property, thus:

 Msgbox("User input: " & txtInput.Text)

Of course, the property to be used is different for each control type, please refer to the built-in manual for details.

Hope this helps, if not, get back to me.

Yours,

Frank

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.