Click here to Skip to main content
15,885,920 members
Home / Discussions / C#
   

C#

 
QuestionAdding Items in a Class Pin
Member 136074754-Jan-18 12:04
Member 136074754-Jan-18 12:04 
AnswerRe: Adding Items in a Class Pin
Mycroft Holmes4-Jan-18 12:41
professionalMycroft Holmes4-Jan-18 12:41 
AnswerRe: Adding Items in a Class Pin
BillWoodruff4-Jan-18 21:27
professionalBillWoodruff4-Jan-18 21:27 
AnswerRe: Adding Items in a Class Pin
OriginalGriff4-Jan-18 21:39
mveOriginalGriff4-Jan-18 21:39 
Questionlistview to combobox - HELP Pin
Member 136074164-Jan-18 10:31
Member 136074164-Jan-18 10:31 
QuestionRe: listview to combobox - HELP Pin
Gerry Schmitz4-Jan-18 10:40
mveGerry Schmitz4-Jan-18 10:40 
AnswerRe: listview to combobox - HELP Pin
Member 136074165-Jan-18 12:32
Member 136074165-Jan-18 12:32 
GeneralRe: listview to combobox - HELP Pin
Gerry Schmitz6-Jan-18 6:28
mveGerry Schmitz6-Jan-18 6:28 
You have 2 "challenges":

1) Passing data between forms
2) And initializing a combobox.

And since all can be done in any number of ways, there is no easy answer.

For (1), it sounds like form1 creates form2, so pass the "selected name" to form2 in form2's constructor. Form1's "selection" is the .SelectedItem / item at .SelectedIndex in the listview.

In (2), initialize the combobox to the item with the "selected name" by locating it's index in the cb's itemsource; and set the .SelectedIndex to that.

(As I said, there are other ways; but you got to start somewhere).
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal

GeneralRe: listview to combobox - HELP Pin
Member 136074167-Jan-18 3:59
Member 136074167-Jan-18 3:59 
GeneralRe: listview to combobox - HELP Pin
Gerry Schmitz7-Jan-18 7:10
mveGerry Schmitz7-Jan-18 7:10 
AnswerRe: listview to combobox - HELP Pin
Mycroft Holmes4-Jan-18 12:44
professionalMycroft Holmes4-Jan-18 12:44 
GeneralRe: listview to combobox - HELP Pin
Member 136074165-Jan-18 12:26
Member 136074165-Jan-18 12:26 
GeneralRe: listview to combobox - HELP Pin
Mycroft Holmes6-Jan-18 10:27
professionalMycroft Holmes6-Jan-18 10:27 
Questionimprove a recursive search method ? Pin
BillWoodruff4-Jan-18 5:01
professionalBillWoodruff4-Jan-18 5:01 
AnswerRe: improve a recursive search method ? Pin
Gerry Schmitz4-Jan-18 10:02
mveGerry Schmitz4-Jan-18 10:02 
GeneralRe: improve a recursive search method ? Pin
BillWoodruff4-Jan-18 12:24
professionalBillWoodruff4-Jan-18 12:24 
GeneralMessage Closed Pin
4-Jan-18 13:05
mveGerry Schmitz4-Jan-18 13:05 
GeneralMessage Closed Pin
4-Jan-18 20:10
professionalBillWoodruff4-Jan-18 20:10 
GeneralRe: improve a recursive search method ? Pin
Gerry Schmitz4-Jan-18 20:27
mveGerry Schmitz4-Jan-18 20:27 
AnswerRe: improve a recursive search method ? Pin
Richard Deeming8-Jan-18 5:55
mveRichard Deeming8-Jan-18 5:55 
GeneralRe: improve a recursive search method ? Pin
BillWoodruff15-Jan-18 6:01
professionalBillWoodruff15-Jan-18 6:01 
QuestionManaging Connection Strings From App.Config Pin
Kevin Marois4-Jan-18 4:18
professionalKevin Marois4-Jan-18 4:18 
AnswerRe: Managing Connection Strings From App.Config Pin
OriginalGriff4-Jan-18 4:40
mveOriginalGriff4-Jan-18 4:40 
GeneralRe: Managing Connection Strings From App.Config Pin
Kevin Marois4-Jan-18 4:44
professionalKevin Marois4-Jan-18 4:44 
GeneralRe: Managing Connection Strings From App.Config Pin
OriginalGriff4-Jan-18 4:59
mveOriginalGriff4-Jan-18 4:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.