enabling pictures during processing
-
hi, i have a connection dialog and put some labels in there. there's a picturebox in front of each label with an icon signaling that the operation described in the corresponding label has been finished. should look something like:
* connecting
* receiving
* saving
copying
calculating
etc etcthis should tell the user, that the first three activities were finished and the fourth is in progress (it's all a little niftier, but you get the point). now the problem: i have the function, that does all the operations in sequence and activates the pictures appropriately. but they don't show. only after all operations have been finished, all symbols are shown. i've set the pictures (which are of type System.Windows.Forms.PictureBox) to visible=false in the dialog-editor and just turn them on with visible=true during processing. when i enable/disable the corresponding labels, they DO change their state on the fly :wtf: - so there IS some dialog-drawing function active in the background - why doesn't it draw the pictures, when it is able to redraw the labels? :| moreover: i've put the operation-function in a different thread and signaled the eventchange via event/delegate to the dialog but it just doesn't help. any suggestions? thank you boys (and girls?) i rely on you ;) :rose: Edit: if someone wants to check out a minimum-demo-project about my problem he can download and try this
-
hi, i have a connection dialog and put some labels in there. there's a picturebox in front of each label with an icon signaling that the operation described in the corresponding label has been finished. should look something like:
* connecting
* receiving
* saving
copying
calculating
etc etcthis should tell the user, that the first three activities were finished and the fourth is in progress (it's all a little niftier, but you get the point). now the problem: i have the function, that does all the operations in sequence and activates the pictures appropriately. but they don't show. only after all operations have been finished, all symbols are shown. i've set the pictures (which are of type System.Windows.Forms.PictureBox) to visible=false in the dialog-editor and just turn them on with visible=true during processing. when i enable/disable the corresponding labels, they DO change their state on the fly :wtf: - so there IS some dialog-drawing function active in the background - why doesn't it draw the pictures, when it is able to redraw the labels? :| moreover: i've put the operation-function in a different thread and signaled the eventchange via event/delegate to the dialog but it just doesn't help. any suggestions? thank you boys (and girls?) i rely on you ;) :rose: Edit: if someone wants to check out a minimum-demo-project about my problem he can download and try this
-
hi, i have a connection dialog and put some labels in there. there's a picturebox in front of each label with an icon signaling that the operation described in the corresponding label has been finished. should look something like:
* connecting
* receiving
* saving
copying
calculating
etc etcthis should tell the user, that the first three activities were finished and the fourth is in progress (it's all a little niftier, but you get the point). now the problem: i have the function, that does all the operations in sequence and activates the pictures appropriately. but they don't show. only after all operations have been finished, all symbols are shown. i've set the pictures (which are of type System.Windows.Forms.PictureBox) to visible=false in the dialog-editor and just turn them on with visible=true during processing. when i enable/disable the corresponding labels, they DO change their state on the fly :wtf: - so there IS some dialog-drawing function active in the background - why doesn't it draw the pictures, when it is able to redraw the labels? :| moreover: i've put the operation-function in a different thread and signaled the eventchange via event/delegate to the dialog but it just doesn't help. any suggestions? thank you boys (and girls?) i rely on you ;) :rose: Edit: if someone wants to check out a minimum-demo-project about my problem he can download and try this
Hi there Changing the pictures should not be a problem if you have events firing for your "functions". So if there are no events defined for them yet, just create an event for each "function". I did this a while back to show diferent pictures for "Offline, Connecting, Online". Pretty easy stuff once you grasp events. Hope this helps :) READ MSDN
-
Hi there Changing the pictures should not be a problem if you have events firing for your "functions". So if there are no events defined for them yet, just create an event for each "function". I did this a while back to show diferent pictures for "Offline, Connecting, Online". Pretty easy stuff once you grasp events. Hope this helps :) READ MSDN
ok. thx. would be another idea to split the long sequence into seperate functions. but i have to use a lot of variables in all of the parts of this long sequence - so splitting it up would result in a lot of !=null testing of class-members which only have the task to pass data from one private function to another ... :suss: hmm. too much overhead in the code i think... but thx anyway for the idea :) :wq