Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Windows Form Apps and images in picture box wont refresh ?

$
0
0

Hi all

i have made a Winforms app that is data driven and connectes to an ssms database.

i have stored the relative paths in the database and used that in the program to make the images appear when a combobox item is selected. one particular page contains the combobox in question.

my problem is this, the app works fine, however the file that contains the images has been modified, i have modified the size of pictures in that file, however the app DOESNT SHOW the changed images??? it still shows the original ones???

how do i refresh it???   i dont know if this helps but here is the relevant code

         private void cmbCselect_SelectionChangeCommitted(object sender, EventArgs e)
        {
              try
            {
                String folder = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + @"" + PR.Rows[cmbCselect.SelectedIndex]["IMAGE"];
                pBoxRocks.Load(folder);


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>