Click here to Skip to main content
15,891,864 members
Home / Discussions / C#
   

C#

 
GeneralRe: listviews losing background color Pin
gantww13-Jun-06 15:48
gantww13-Jun-06 15:48 
GeneralRe: listviews losing background color Pin
gantww13-Jun-06 15:54
gantww13-Jun-06 15:54 
GeneralRe: listviews losing background color Pin
surshbabuk13-Jun-06 18:03
surshbabuk13-Jun-06 18:03 
GeneralRe: listviews losing background color Pin
acezrwild81714-Jun-06 2:21
acezrwild81714-Jun-06 2:21 
GeneralRe: listviews losing background color Pin
Dustin Metzgar14-Jun-06 2:34
Dustin Metzgar14-Jun-06 2:34 
GeneralRe: listviews losing background color Pin
acezrwild81714-Jun-06 8:13
acezrwild81714-Jun-06 8:13 
QuestionDll Question Pin
teejayem13-Jun-06 14:28
teejayem13-Jun-06 14:28 
AnswerRe: Dll Question Pin
urbane.tiger13-Jun-06 16:28
urbane.tiger13-Jun-06 16:28 
either pass the textbox as an argument, or make a method in the mainform app available as a delegate to the DLL which it can invoke when it reads the data. Define the delegate in the dllClass which I assume is referenced in your mainform a'la, also define one of these as a property with get/set accessors

"public delegate void _TextProcessor(string _theText);"
public _TextProcessor TextProcessor { get { return theTextProcessor } set { theTextProcessor = value } }

in you mainform write a method that conforms to the delegates "template" and assign it to the exposed property:
private void myTextProcessor(string _text)
{
this.textBox.Text = _text;
this.theBox.Invalidate();
}
dllClass.TextProcessor = myTextProcessor;"

replace your comment in the dllClass with something like "theTextProcessor(sr.ReadLine());"





GeneralRe: Dll Question Pin
teejayem14-Jun-06 14:12
teejayem14-Jun-06 14:12 
GeneralRe: Dll Question Pin
teejayem14-Jun-06 15:15
teejayem14-Jun-06 15:15 
GeneralRe: Dll Question Pin
urbane.tiger15-Jun-06 20:13
urbane.tiger15-Jun-06 20:13 
GeneralRe: Dll Question Pin
teejayem16-Jun-06 6:50
teejayem16-Jun-06 6:50 
AnswerRe: Dll Question Pin
Filip van der Meeren13-Jun-06 23:46
Filip van der Meeren13-Jun-06 23:46 
Questionreports Pin
kjosh13-Jun-06 11:44
kjosh13-Jun-06 11:44 
JokePlug Pin
Nicholas Butler13-Jun-06 13:25
sitebuilderNicholas Butler13-Jun-06 13:25 
QuestionAccess form objects from a class Pin
Ramjet113-Jun-06 11:25
Ramjet113-Jun-06 11:25 
AnswerRe: Access form objects from a class Pin
Member 9613-Jun-06 12:12
Member 9613-Jun-06 12:12 
AnswerRe: Access form objects from a class Pin
urbane.tiger13-Jun-06 17:00
urbane.tiger13-Jun-06 17:00 
QuestionSystem.String and Thread Safety Pin
Alexander Wiseman13-Jun-06 11:05
Alexander Wiseman13-Jun-06 11:05 
AnswerRe: System.String and Thread Safety Pin
User 665813-Jun-06 11:17
User 665813-Jun-06 11:17 
GeneralRe: System.String and Thread Safety Pin
Alexander Wiseman13-Jun-06 11:28
Alexander Wiseman13-Jun-06 11:28 
GeneralRe: System.String and Thread Safety Pin
Leslie Sanford13-Jun-06 11:40
Leslie Sanford13-Jun-06 11:40 
GeneralRe: System.String and Thread Safety [modified] Pin
Alexander Wiseman13-Jun-06 11:46
Alexander Wiseman13-Jun-06 11:46 
GeneralRe: System.String and Thread Safety [modified] Pin
Leslie Sanford13-Jun-06 11:58
Leslie Sanford13-Jun-06 11:58 
AnswerRe: System.String and Thread Safety [modified] Pin
Leslie Sanford13-Jun-06 11:44
Leslie Sanford13-Jun-06 11:44 

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.