Click here to Skip to main content
15,889,992 members
Home / Discussions / C#
   

C#

 
AnswerRe: views Pin
PlayByTheRules14-Nov-06 4:20
PlayByTheRules14-Nov-06 4:20 
GeneralRe: views Pin
ednrgc14-Nov-06 5:17
ednrgc14-Nov-06 5:17 
AnswerRe: views Pin
saqib8214-Nov-06 23:41
saqib8214-Nov-06 23:41 
QuestionWindows Forms Pin
tommypa7514-Nov-06 3:22
tommypa7514-Nov-06 3:22 
AnswerRe: Windows Forms Pin
ejuanpp14-Nov-06 3:41
ejuanpp14-Nov-06 3:41 
AnswerRe: Windows Forms Pin
ednrgc14-Nov-06 5:20
ednrgc14-Nov-06 5:20 
Questiongetting a string from dll & printing it on richtextbox... Pin
IamHuM14-Nov-06 3:18
IamHuM14-Nov-06 3:18 
AnswerRe: getting a string from dll & printing it on richtextbox... Pin
Eduard Keilholz14-Nov-06 4:46
Eduard Keilholz14-Nov-06 4:46 
Erhmpff... this is really back to basic...

Create a solution with two projects
- Executable project (name : ExeProject)
- Class library (name DllClassLibrary)

in the class lib. create a class containing the following function :

public string MyRichText()
{
StringBuilder sbMyText = new StringBuilder();
sbMyText.Append("Text text text and even more text");
return sbMyText.ToString();
}

Then from your executable project, create a reference to the class lib and add a form containing a textbox. Name the textbox for instance txtTextFromDll

In the Load event of your form add the following lines :
DllClassLibrary.ClassName objMyClass = new DllClassLibrary.ClassName();
txtTextFromDll.Text = objMyClass .MyRichText();


you're pretty done there (except for when i miss something)

- - - --[ i love it when a plan comes together ]-- - - -

Questionscreen resolution changed event Pin
freshonlineMax14-Nov-06 2:54
freshonlineMax14-Nov-06 2:54 
AnswerRe: screen resolution changed event Pin
Martin#14-Nov-06 3:27
Martin#14-Nov-06 3:27 
GeneralRe: screen resolution changed event Pin
freshonlineMax14-Nov-06 4:52
freshonlineMax14-Nov-06 4:52 
GeneralRe: screen resolution changed event Pin
Martin#14-Nov-06 5:21
Martin#14-Nov-06 5:21 
QuestionXML Tree View - Please Guide. [modified] Pin
h@s@n14-Nov-06 2:21
h@s@n14-Nov-06 2:21 
AnswerRe: XML Tree View - Please Guide. Pin
Ed.Poore14-Nov-06 2:24
Ed.Poore14-Nov-06 2:24 
GeneralRe: XML Tree View - Please Guide. Pin
h@s@n14-Nov-06 2:34
h@s@n14-Nov-06 2:34 
GeneralRe: XML Tree View - Please Guide. Pin
Ed.Poore14-Nov-06 3:01
Ed.Poore14-Nov-06 3:01 
GeneralRe: XML Tree View - Please Guide. Pin
ejuanpp14-Nov-06 3:24
ejuanpp14-Nov-06 3:24 
QuestionHow to self recall after a time interval Pin
t2o2uk14-Nov-06 2:14
t2o2uk14-Nov-06 2:14 
AnswerRe: How to self recall after a time interval Pin
Martin#14-Nov-06 2:22
Martin#14-Nov-06 2:22 
GeneralRe: How to self recall after a time interval Pin
Martin#14-Nov-06 2:28
Martin#14-Nov-06 2:28 
AnswerRe: How to self recall after a time interval Pin
Guffa14-Nov-06 2:29
Guffa14-Nov-06 2:29 
QuestionBackgroundWorker CancelSync() ?? Pin
Chris_Green14-Nov-06 2:12
Chris_Green14-Nov-06 2:12 
AnswerRe: BackgroundWorker CancelSync() ?? Pin
Judah Gabriel Himango14-Nov-06 8:51
sponsorJudah Gabriel Himango14-Nov-06 8:51 
QuestionEPS file from TChart Pin
haritus14-Nov-06 1:51
haritus14-Nov-06 1:51 
Questionfixed width tootips Pin
Mridang Agarwalla14-Nov-06 1:01
Mridang Agarwalla14-Nov-06 1:01 

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.