borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Any new ideas)Next Topic (how to reuse listbox) New Topic New Poll Post Reply
AndreaVB Forum : VB General : listbox question--2nd try
Poster Message
jeff
Level: Protégé

Registered: 09-05-2006
Posts: 7

icon listbox question--2nd try

Ok--here's my question.

  I would like to write a simple program that will give a list of (x,y) values for a line, y=mx+b.   I would like the user to pick one (x,y) point on the line and store this value.  I would like to then change the equation of the line and give the user as second choice while storing the first choice for future use.  I would like to let the user do this repeatedly and at the end display all his choices.  

   I want to somehow use listbox1_click() so that everytime he clicks a choice on the listbox, a new set of choices appears in the same listbox space so he can click on a new choice.  In the end, I would like all his choices to appear in the listbox as a series of segments which connect the nearest chosen points.

One problem I am having is sending the new values back to  sub listbox1_click().  

I would appreciate if someone can send me a sample code for this type of thing.

Thanks,

Jeff
  

14-05-2006 at 06:28 PM
View Profile Send Email to User Show All Posts | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 891
icon Re: listbox question--2nd try

Hi Jeff,
2 things:
1) What is the "problem" that you are having?
2) So, you present the user with a list of options (in listbox1), they click one. This is fine, however, how will you present the 2nd list of options without destroying the single one that they have selected? Won't this be confusing to the user? I would suggest that you have a seperate list that displays the user's selections rather than re-using a single list.
Regards,
Kieron


____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

14-05-2006 at 10:17 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : listbox question--2nd try
Previous Topic (Any new ideas)Next Topic (how to reuse listbox) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder