windows forms refresh, update???
-
Hi To all I`m very new to the programming and got stuck. So i`ve been trying to write a program using Windows Form which include several different panels on. User can choose between which one is visible. on each form there are few pictureboxes and my problem is ..... when you swich between them in the runtime it`s not smooth enough :( user can see loadning frames of these picture boxes for few miliseconds this is really annoying. Is there any easy way of loading it in the background and show it after its ready or something ??? I started reading about threads etc but at the moment its quite difficult, i will be gratefull if someone could explain it with an example Thanks in advance Dims
-
Hi To all I`m very new to the programming and got stuck. So i`ve been trying to write a program using Windows Form which include several different panels on. User can choose between which one is visible. on each form there are few pictureboxes and my problem is ..... when you swich between them in the runtime it`s not smooth enough :( user can see loadning frames of these picture boxes for few miliseconds this is really annoying. Is there any easy way of loading it in the background and show it after its ready or something ??? I started reading about threads etc but at the moment its quite difficult, i will be gratefull if someone could explain it with an example Thanks in advance Dims
-
You could call
pictureBox1.SuspendLayout();
, load your image into the PictureBox, then callpictureBox1.ResumeLayout(true);
to update the layout.Between the idea And the reality Between the motion And the act Falls the Shadow
-
right i`ll try that but i forgot to tell you that on the form is background 800x600 bitmap so maybe that is the reason that is so slow.
-
You could call
pictureBox1.SuspendLayout();
, load your image into the PictureBox, then callpictureBox1.ResumeLayout(true);
to update the layout.Between the idea And the reality Between the motion And the act Falls the Shadow
It`s not working for me, what i`ve noticed is that all the panel as the user switches between do same thing whether there are only labels or pictureBoxes so i`m assuming that there`s the problem with bitmap on the background of the form. panels they are all set up as transparent. any ideas??
-
Hi To all I`m very new to the programming and got stuck. So i`ve been trying to write a program using Windows Form which include several different panels on. User can choose between which one is visible. on each form there are few pictureboxes and my problem is ..... when you swich between them in the runtime it`s not smooth enough :( user can see loadning frames of these picture boxes for few miliseconds this is really annoying. Is there any easy way of loading it in the background and show it after its ready or something ??? I started reading about threads etc but at the moment its quite difficult, i will be gratefull if someone could explain it with an example Thanks in advance Dims
Hi, if your app is slow, try and figure out why and fix it. Are your images way too large and getting downscaled all the time? are you using some fancy transparancy stuff? And did you look into double-buffering? you might try and set DoubleBuffered true. That does not really solve performance problems, it does hide some of its visual effects though. :)
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.