Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have 5 text boxes, and 6 check boxes. When a check box is selected, the text from the text box next to it needs to be put into a string:

Input1 = txtInput1.Text
Input1 = "" & vbCrLf & "__ " & Input1 & ""

 

These values (Input1 - Input5) are then printed in a list. Part of the code works correctly as I get to the new line and I get "__ ". I am however not understanding why the first part of the code doesn't seem to be working. Also, I have dimmed Inputs1 - Input5 as Strings. Should they be doubles or something similar? Thank You.

Dodge

Grab Life By The Horns

Posted

Text, I'm sorry. Right now I have the variables being assigned when the check boxes are clicked, but I just "discovered" that it'll work if you enter code into the textbox first, and then check the box. I'm thinking I might add this code to the print button, because at that point in time all the desired data should be entered.

 

(The program displays a form, with numerous checkboxes and labels (which contain item names). When a checkbox is checked, the corresponding item is added to the list, and then the list is printed.)

Dodge

Grab Life By The Horns

Posted
I removed the checkboxes for these text inputs. I also put the string assignment (I guess that's what you'd call it) into my Print button's click event. Problem solved. Thanks for your help(support, whatever ya wanna call it) Robby.

Dodge

Grab Life By The Horns

Posted
I was wrong. Now that I put that stuff under the print button, the small line I need for the check prints out for every Input, whether there's text entered or not. Is there a different event, such as something relating the textbox that would be suitable for this?

Dodge

Grab Life By The Horns

Posted (edited)

I'm thinking maybe a little "If..then" technology may be able to rectify my current "situation."

 

**Update**

The "situation" has been rectified.

Edited by Dodgeram01

Dodge

Grab Life By The Horns

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...