Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: VS2010 VB.NET
I am rewriting an application of my own that is currently in VBA, using VS2010 &
This, I hope is a simple question, that will put me clear on the best way to do something.
Currently I have a Form that has a Button on the left, followed by 3 TextBoxes to the right, these are replicated down the page as Button1 thru 14, TextBox 1, 2 & 3 thru 40, 41 & 42.
When a Button is clicked, the data in the corresponding TextBoxes is used in the following screens & processing, all pretty basic stuff, though I obviously have to keep track of all the numbers.
I can do this in as well, but I imagine that there is a better way of doing this, using some kind of Container, Table or Grid ... all I am looking for here is a bit of guidance on my best option and, if possible, a pointer to an example of it in use and I can work from there ...
Thanks in advance ...
I forgot to say, there are not a fixed number of Rows here, so I could add or delete rows, that's why the method I currently use isn't the best ...
Posted 28-Feb-13 5:22am
Edited 28-Feb-13 5:30am
BC @ CV at 28-Feb-13 10:39am
Your best bet is to do some Googling. I found this in 5 seconds:
Gary Heath at 28-Feb-13 10:45am
But you Googled DataGridView ... the whole point of my question is that I don't know which method to use, that's why I ask on sites like this, so that people who DO know can help me !!! I could Google all day log, but it's going to get me nowhere if I don't know what to Google !!!
BC @ CV at 28-Feb-13 11:04am
How about "VB.Net" "Data" "Grid""? If you can't effectively research a topic, particularly one with as much material as data presentation, then you are in the wrong business. A software developer has to know how to research and be resourceful.
Gary Heath at 28-Feb-13 11:10am
How about you go and Troll somebody else, I've got some help from another forum, one without smart-arse idiots giving me pointless answers ...
Shame, this place normally has some helpful people on it ...
aspnet_regiis -i at 28-Feb-13 11:41am
This thread is funny.. A helpful person trying to help a person who himself does not know what help he wants....

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Hard to judge not having a comprehensive design artifact, but some key ideas…
So many buttons is already a bad idea. And you will have extra trouble working with them, forget the users who might go crazy.
You can do something much better. For example, it can be a selection list + one button. The list could be as simple as list box, and the button click even handler should act according to a selected item. This will be clear for users and convenient.
Avoid clutter. You should clearly show that a button is related to some list box by proper visual design. First of all, it should be shown by closeness of controls if a groups of related controls. You also can use panels or group boxes, but remember: no single line or outlining by color without clear purpose!
Gary Heath at 28-Feb-13 12:33pm
Thank you Sergey, but in this case it is not for Users, it's only for me and I want to be able to see the whole layout, because one of the columns is a date and I can see where I stand with each row. It is much like a Menu & it links me to a comprehensive detailed screen for that selection.
It is all colour-coded as well, that is where keeping track of all the TextBox numbers first gave me problems, the main reason I want to avoid it this time around :-) !!!
Sergey Alexandrovich Kryukov at 28-Feb-13 12:38pm
Not true at all. Make all list visible at once. Whatever you do, so many buttons is not an option.
You can have items color-coded, but be very careful with color coding. If it's more then 5, forget it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 520
1 Mathew Soji 335
2 BillWoodruff 260
3 OriginalGriff 215
4 Afzaal Ahmad Zeeshan 188
0 OriginalGriff 6,168
1 Sergey Alexandrovich Kryukov 5,853
2 DamithSL 5,028
3 Manas Bhardwaj 4,539
4 Maciej Los 3,845

Advertise | Privacy | Mobile
Web03 | 2.8.1411019.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100