Click here to Skip to main content
16,004,828 members
Home / Discussions / C#
   

C#

 
Questionproxy switcher webbrowser [modified] Pin
-m-rt--n-2-May-09 7:15
-m-rt--n-2-May-09 7:15 
Questionvariables changing back to null Pin
mh.3110782-May-09 6:16
mh.3110782-May-09 6:16 
AnswerRe: variables changing back to null Pin
Luc Pattyn2-May-09 6:26
sitebuilderLuc Pattyn2-May-09 6:26 
GeneralRe: variables changing back to null Pin
DaveyM692-May-09 6:38
professionalDaveyM692-May-09 6:38 
GeneralRe: variables changing back to null Pin
Pete O'Hanlon2-May-09 10:36
mvePete O'Hanlon2-May-09 10:36 
AnswerRe: variables changing back to null Pin
DaveyM692-May-09 6:39
professionalDaveyM692-May-09 6:39 
QuestionSend RTF instead of HTML in outlook Pin
lastpunisher2-May-09 3:47
lastpunisher2-May-09 3:47 
QuestionHow to retrieve full path of file or image from imagelist Pin
Aljaz1112-May-09 3:09
Aljaz1112-May-09 3:09 
I am adding with open.file images to imagelist. here is the code
OpenFileDialog open = new OpenFileDialog();

                open.Filter = "Image Files(*.jpg; *.jpeg; *.gif; *.bmp)|*.jpg; *.jpeg; *.gif; *.bmp";

                if (open.ShowDialog() == DialogResult.OK)
                {

                    Bitmap slika = new Bitmap(open.FileName);

                    FileInfo fi = new FileInfo(open.FileName);


                    imena[i] = fi.Name;
                    poti[i] = fi.FullName;

                    


                    this.imageList1.Images.Add(Image.FromFile(open.FileName));

                    i++;
}


As u see i am saving paths of files in array poti...but i have problems when i delete files from listview and imagelist..i is still continueing ++ and new images added to imagelist and listview have wrong path..because i am calling them with poti[index]..

So i would like to put this part of filling array of paths poti[index] to this part of code..but i don't how how to retrieve full path of image just from imagelist..
for (int j = 0; j < this.imageList1.Images.Count; j++)
            {

                ListViewItem item = new ListViewItem();

               

                item.ImageIndex = j;



                this.listView1.Items.Add(item);



            }


Or do you have any better idea.. because after deleting images..indexes of paths from poti[index] are mixed..
QuestionListView Binding - ObservableCollection [modified] Pin
b4ip2-May-09 3:04
b4ip2-May-09 3:04 
AnswerRe: ListView Binding - ObservableCollection Pin
Henry Minute2-May-09 5:01
Henry Minute2-May-09 5:01 
QuestionBindingNavigator save button does not save info to table Pin
Vloops2-May-09 2:44
Vloops2-May-09 2:44 
AnswerRe: BindingNavigator save button does not save info to table Pin
Mycroft Holmes2-May-09 3:11
professionalMycroft Holmes2-May-09 3:11 
GeneralRe: BindingNavigator save button does not save info to table Pin
Vloops2-May-09 4:11
Vloops2-May-09 4:11 
GeneralRe: BindingNavigator save button does not save info to table Pin
DaveyM692-May-09 6:43
professionalDaveyM692-May-09 6:43 
GeneralRe: BindingNavigator save button does not save info to table Pin
Vloops2-May-09 6:46
Vloops2-May-09 6:46 
GeneralRe: BindingNavigator save button does not save info to table Pin
DaveyM692-May-09 6:50
professionalDaveyM692-May-09 6:50 
GeneralRe: BindingNavigator save button does not save info to table Pin
Vloops2-May-09 6:55
Vloops2-May-09 6:55 
GeneralRe: BindingNavigator save button does not save info to table Pin
Mycroft Holmes2-May-09 14:30
professionalMycroft Holmes2-May-09 14:30 
QuestionTemplate Engine for C# website? Pin
Member 3653372-May-09 2:41
Member 3653372-May-09 2:41 
AnswerRe: Template Engine for C# website? Pin
Mycroft Holmes2-May-09 3:07
professionalMycroft Holmes2-May-09 3:07 
GeneralRe: Template Engine for C# website? Pin
Member 3653372-May-09 3:34
Member 3653372-May-09 3:34 
GeneralRe: Template Engine for C# website? Pin
Pete O'Hanlon2-May-09 10:37
mvePete O'Hanlon2-May-09 10:37 
GeneralRe: Template Engine for C# website? Pin
Mycroft Holmes2-May-09 14:32
professionalMycroft Holmes2-May-09 14:32 
Questiontextbox Pin
sasan562-May-09 2:28
sasan562-May-09 2:28 
AnswerRe: textbox Pin
Luc Pattyn2-May-09 3:55
sitebuilderLuc Pattyn2-May-09 3: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.