BP Forums
Auto-generating Drop Menus from User Input - Printable Version

+- BP Forums (https://bpforums.info)
+-- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=55)
+--- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=56)
+---- Forum: VB.NET (Visual Basic 2010/2008) (https://bpforums.info/forumdisplay.php?fid=8)
+----- Forum: Programming Help (https://bpforums.info/forumdisplay.php?fid=9)
+----- Thread: Auto-generating Drop Menus from User Input (/showthread.php?tid=824)



Auto-generating Drop Menus from User Input - MadManMallard - 01-26-2014

I was hoping someone could help me with this. I am semi-experienced in coding, but I'll let you know if I don't understand something.

I want to make the drop down menus under the menu strip buttons have traits/names based on previously entered information from text boxes.

I'm trying to make a trading system for a game. So under the Trade tab, I would like it to list the names of the players that are entered manually in separate text boxes beforehand. Then, in each name, have the submenus generated by other previously entered information.

I hope this is explained well enough.

Thanks to all who reply! (If you need images, just request them)

-Blake


Re: Auto-generating Drop Menus from User Input - Tracer - 08-16-2014

I can help u if u are more specific.Send photo plss.Do u want it online or offline?If u want it online u will have to work alot.If u want it offline it will be easy like 10 lines of code.So be more specific.U can make the drop menu using a panel and saving the info using
Code:
My.Settings.String = TextBox1.Text
My.Settings.Save
<!-- s:ugeek: --><img src="{SMILIES_PATH}/icon_e_ugeek.gif" alt=":ugeek:" title="Uber Geek" /><!-- s:ugeek: -->


Re: Auto-generating Drop Menus from User Input - brandonio21 - 09-17-2014

Tracer, you may be making this more complicated than it needs to be. Instead of using settings, you can just use a button (the login button, perhaps) to add the players' names to the combobox using something like:

[code2=vbnet]ComboBox1.Items.Add(PlayerNameTextBox.Text)[/code2]