Click here to Skip to main content
15,907,149 members
Home / Discussions / C#
   

C#

 
GeneralRe: .NET Remoting Channels (Custom) Pin
Heath Stewart21-Apr-04 3:35
protectorHeath Stewart21-Apr-04 3:35 
GeneralRe: .NET Remoting Channels (Custom) Pin
Aisha Ikram21-Apr-04 19:05
Aisha Ikram21-Apr-04 19:05 
GeneralRe: .NET Remoting Channels (Custom) Pin
Heath Stewart22-Apr-04 2:25
protectorHeath Stewart22-Apr-04 2:25 
GeneralRe: .NET Remoting Channels (Custom) Pin
Heath Stewart21-Apr-04 3:37
protectorHeath Stewart21-Apr-04 3:37 
GeneralRe: .NET Remoting Channels (Custom) Pin
Aisha Ikram21-Apr-04 19:08
Aisha Ikram21-Apr-04 19:08 
GeneralRe: .NET Remoting Channels (Custom) Pin
Heath Stewart22-Apr-04 2:26
protectorHeath Stewart22-Apr-04 2:26 
GeneralProgress bar of a dll Pin
Anonymous21-Apr-04 0:33
Anonymous21-Apr-04 0:33 
GeneralRe: Progress bar of a dll Pin
Heath Stewart21-Apr-04 3:43
protectorHeath Stewart21-Apr-04 3:43 
If I understand it correctly, you've got a black box that you want to change. Without the source, this really isn't possible. What you're asking to do is get notification of the progress of the operation that the DLL performs on the file. Unless that DLL exposes some events or a callback, you're sunk.

If it exposes a progress callback or events, then you can simply initialize your ProgressBar with the information and with every notification of another unit of progress, just use ProgressBar.PerformStep() (which increments the Value by the Step amount).

The problem you'll run into, though, is threading. You should - if possible - invoke that DLL function/method in a separate thread and be sure to use ProgressBar.InvokeRequired and ProgressBar.Invoke (both inherited from the Control class). If you try to change the control from a separate thread other than the one on which the control was created, you'll run into "undefined" problems (i.e., the control not displaying, methods not doing anything, and other oddities).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Progress bar of a dll Pin
Heath Stewart21-Apr-04 3:44
protectorHeath Stewart21-Apr-04 3:44 
GeneralListview Problem Pin
Reinier van de Wetering20-Apr-04 23:25
Reinier van de Wetering20-Apr-04 23:25 
GeneralRe: Listview Problem Pin
Jon G21-Apr-04 1:44
Jon G21-Apr-04 1:44 
GeneralRe: Listview Problem Pin
Heath Stewart21-Apr-04 3:49
protectorHeath Stewart21-Apr-04 3:49 
QuestionWaitForASingleObject(handle , Timeout) Time out for waiting function in C#? Pin
78720-Apr-04 23:03
78720-Apr-04 23:03 
AnswerRe: WaitForASingleObject(handle , Timeout) Time out for waiting function in C#? Pin
Mike Dimmick21-Apr-04 2:55
Mike Dimmick21-Apr-04 2:55 
Generaldeployment application in VS.Net. Help please Pin
thaiduong20-Apr-04 22:32
thaiduong20-Apr-04 22:32 
GeneralRe: deployment application in VS.Net. Help please Pin
Heath Stewart21-Apr-04 3:51
protectorHeath Stewart21-Apr-04 3:51 
GeneralFolderBrowseDialog problems Pin
WillemM20-Apr-04 21:50
WillemM20-Apr-04 21:50 
GeneralRe: FolderBrowseDialog problems Pin
Anonymous20-Apr-04 22:17
Anonymous20-Apr-04 22:17 
GeneralRe: FolderBrowseDialog problems Pin
WillemM20-Apr-04 22:24
WillemM20-Apr-04 22:24 
GeneralRe: FolderBrowseDialog problems Pin
Anonymous20-Apr-04 22:53
Anonymous20-Apr-04 22:53 
GeneralRe: FolderBrowseDialog problems Pin
Stefan Troschuetz20-Apr-04 23:34
Stefan Troschuetz20-Apr-04 23:34 
GeneralRe: FolderBrowseDialog problems Pin
WillemM20-Apr-04 23:37
WillemM20-Apr-04 23:37 
GeneralRe: FolderBrowseDialog problems Pin
Heath Stewart21-Apr-04 3:59
protectorHeath Stewart21-Apr-04 3:59 
GeneralRe: FolderBrowseDialog problems Pin
Stefan Troschuetz21-Apr-04 5:18
Stefan Troschuetz21-Apr-04 5:18 
GeneralRe: FolderBrowseDialog problems Pin
Heath Stewart21-Apr-04 6:50
protectorHeath Stewart21-Apr-04 6:50 

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.