c# - can we access form controls from an external assembly (dll assembly not within the project)? -
i have access label control of running form referenceed assembly change label text dynamically.my application scans files of selected folder.i have show name of file in progress.
can access form controls external assembly (dll assembly not within project)?
your dll trigger event e.g. fileprocessing whch has information passed (current filename etc) c# application subscribe , way dll doesn't have know application using it, , application can update label each time event raised...here's overview of events c# on msdn
edit
try code project article "the simplest c# events example imaginable". says it's designed copy/pasted new project should able quick working example see concept. in regards situation, metronome file system scanner , instead of "tick events", you've have fileprocess/filescan events. listener example c# ui application. way c# app waiting file scanner raise events @ point can use information passed (an example in link) update label
Comments
Post a Comment