BOOK: Professional VB 2005 with .NET 3.0 ISBN: 978-0-470-12470-3
This is the forum to discuss the Wrox book Professional VB 2005 with .NET 3.0 by Bill Evjen, Billy Hollis, Bill Sheldon, Kent Sharkey, Tim McCarthy; ISBN: 9780470124703
You are currently viewing the BOOK: Professional VB 2005 with .NET 3.0 ISBN: 978-0-470-12470-3 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
I am new to Visual Studio 2008 and C#. I have a Data Grid View Control on a form that contains a list of Football teams and statistics. I want to know how to find out what cell I clicked so I can load the appropriate form for the football team selected. Can anybody help?
I suppose you used listbox for displaying those teams. Why don't you use combobox? It is easier to handle data from combobox (or textbox). Than you can use only one if - else if statement.
Use property of textbox or combo to start on each text change.
something like this:
if textbox1.text = "some_name" then
Dim myform As New Form2
myform.Show()
elseif textbox1.Text = "some_name_2" then
Dim myform1 As New Form3
myform1.Show()
...
end if