Click here to Skip to main content
15,925,113 members
Home / Discussions / C#
   

C#

 
GeneralRe: howto create doc/view c#-apps? Pin
Rüpel27-Mar-02 23:45
Rüpel27-Mar-02 23:45 
AnswerRe: howto create doc/view c#-apps? Pin
Kannan Kalyanaraman25-Mar-02 4:50
Kannan Kalyanaraman25-Mar-02 4:50 
GeneralI need help with this question Pin
25-Mar-02 0:21
suss25-Mar-02 0:21 
GeneralRe: I need help with this question Pin
BLaZiNiX26-Mar-02 19:01
BLaZiNiX26-Mar-02 19:01 
QuestionListView with CheckedItems ??? Pin
gicio24-Mar-02 23:54
gicio24-Mar-02 23:54 
QuestionAny way to create a better looking TabControl? Pin
24-Mar-02 23:27
suss24-Mar-02 23:27 
AnswerRe: Any way to create a better looking TabControl? Pin
25-Mar-02 4:20
suss25-Mar-02 4:20 
QuestionReplace parts of an object in an ArrayList.But how ??? Pin
gicio24-Mar-02 23:18
gicio24-Mar-02 23:18 
hi!

I have a problem:

here I read the data from the ArrayList into the ListView
with a checkBox (displayCarListView.CheckBoxes = true;


)public void ShowCar(ListView objectDisplayCarListView){ListView displayCarListView;displayCarListView = objectDisplayCarListView;foreach (Car car in carArrayList){MessageBox.Show(Convert.ToString(carArrayList.IndexOf(car)));int carIndex = carArrayList.IndexOf(car);ListViewItem newItem = newListViewItem(((Car)carArrayList[carIndex]).Manufacturer);newItem.SubItems.Add(((Car)carArrayList[carIndex]).Model );displayCarListView.Items.Add(newItem);}}


now I would take this data that was checked in the ListView and put it in
an other GUI with TextBoxes
(it should the index of the car in the ArrayList must transfer also to the
other GUI (but I don´t really know how! Wink | ;) ))
I try it so: (but without the index....thats work 100% .... but I need the
Index of the car...)




public void ChangeCar(ListView objectDisplayCarListView){ListView displayCarListView;displayCarListView = objectDisplayCarListView;Car currentCar = new Car();if (displayCarListView.CheckedItems[0].Checked){ChangeCarNow currentChangeCarNow = new ChangeCarNow(this);currentChangeCarNow.manufactoreTextBox.Text =displayCarListView.CheckedItems[0].Text;currentChangeCarNow.modelTextBox.Text =displayCarListView.CheckedItems[0].SubItems[1].Text;//here the other GUI is show......with the datacurrentChangeCarNow.Show();}}


in the GUI currentChangeCarNow(ChangeCarNow) it should be change the data of the car.
the changes data of the car I must put back exactly in the same place
where I take it out.
that's why I need the index of the car
have someone an idea how i can do this?




big thx!!


Pawel




GeneralOverriding the Closing event Pin
24-Mar-02 21:39
suss24-Mar-02 21:39 
GeneralRe: Overriding the Closing event Pin
James T. Johnson24-Mar-02 21:51
James T. Johnson24-Mar-02 21:51 
GeneralRe: Overriding the Closing event Pin
David Wengier25-Mar-02 0:11
David Wengier25-Mar-02 0:11 
GeneralCreate Control at Runtime Pin
Mazdak24-Mar-02 20:50
Mazdak24-Mar-02 20:50 
GeneralRe: Create Control at Runtime Pin
James T. Johnson24-Mar-02 21:22
James T. Johnson24-Mar-02 21:22 
QuestionCan I generate ActiveX Document From C#? Pin
24-Mar-02 18:31
suss24-Mar-02 18:31 
AnswerRe: Can I generate ActiveX Document From C#? Pin
James T. Johnson24-Mar-02 18:43
James T. Johnson24-Mar-02 18:43 
GeneralWeird GDI+ rectangle drawing Pin
24-Mar-02 11:56
suss24-Mar-02 11:56 
GeneralRe: Weird GDI+ rectangle drawing Pin
James T. Johnson24-Mar-02 21:56
James T. Johnson24-Mar-02 21:56 
GeneralRe: Weird GDI+ rectangle drawing Pin
25-Mar-02 4:05
suss25-Mar-02 4:05 
GeneralSimple Question Pin
Mazdak24-Mar-02 6:14
Mazdak24-Mar-02 6:14 
GeneralRe: Simple Question Pin
James T. Johnson24-Mar-02 9:33
James T. Johnson24-Mar-02 9:33 
GeneralRe: Simple Question Pin
Mazdak24-Mar-02 19:29
Mazdak24-Mar-02 19:29 
GeneralPrinting Pin
BLaZiNiX23-Mar-02 23:39
BLaZiNiX23-Mar-02 23:39 
GeneralRe: Printing Pin
Mazdak24-Mar-02 4:47
Mazdak24-Mar-02 4:47 
GeneralRe: Printing Pin
BLaZiNiX24-Mar-02 6:10
BLaZiNiX24-Mar-02 6:10 
GeneralRe: Printing Pin
Mazdak24-Mar-02 6:55
Mazdak24-Mar-02 6:55 

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.