2 Replies - 820 Views - Last Post: 06 November 2012 - 01:01 PM Rate Topic: -----

#1 daniellewalkaa  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 27-October 12

Visual basic problem

Posted 06 November 2012 - 11:56 AM

I'm doing a program and part of it is to have a text box and a button which when you type text into the textbox and press the button the the information goes to the last form. I have a bit of coding for this which is:

Form8.Amount.Items.Add("")

Amount is the textbox which is on the last form. Usually in the ("") writing goes in but i want it so if you write within it the text shows at the last form..

could anybody help with what im missing with the brackets or if they shouldnt even be there, it would be much appreciated!

Is This A Good Question/Topic? 0
  • +

Replies To: Visual basic problem

#2 tlhIn`toq  Icon User is online

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5674
  • View blog
  • Posts: 12,190
  • Joined: 02-June 10

Re: Visual basic problem

Posted 06 November 2012 - 12:32 PM

1) Please try to give your posts meaningful titles. "Problem" in a help forum is pretty meaningless.

2) "could anybody help with what im missing with the brackets "
Brackets? What brackets? You don't have any brackets in your code.

3) I'm not sure why you are doing this in ancient VB6... But maybe one of these tutorials for more modern .NET will help. At the very least the concepts of form-to-form communication my help get you away from bad design planning.

Q: ...get Form 'A' to make a change or talk to Form 'B'

NOTE: Don't try to access GUI controls across forms. Its wrong. Nobody will hire you if you do this sort of crap. It violates every guideline for 'black box' programming, Separation of Responsibility, loose binding of components, and event driven programming. Read the tutorials and learn to do it right the first time so you don't develop bad habits that you just have to un-learn later.
A:
Was This Post Helpful? 0
  • +
  • -

#3 daniellewalkaa  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 27-October 12

Re: Visual basic problem

Posted 06 November 2012 - 01:01 PM

Thank you for your advice, I will take this into considerations. I've never used this forum until recently, so as expected I didnt know. I will watch the tutorials and hopefully figure it out myself like I did the rest. Thanks for the help.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1