Click here to Skip to main content
15,909,332 members
Home / Discussions / C#
   

C#

 
QuestionChange Windows service to run under LocalSystem account from a user account (API) Pin
kulile14-Nov-06 5:11
kulile14-Nov-06 5:11 
QuestionOpening web page in a new tab Pin
Mertli Ozgur Nevres14-Nov-06 4:41
Mertli Ozgur Nevres14-Nov-06 4:41 
AnswerRe: Opening web page in a new tab Pin
Anthony Mushrow14-Nov-06 4:47
professionalAnthony Mushrow14-Nov-06 4:47 
AnswerRe: Opening web page in a new tab Pin
Eduard Keilholz14-Nov-06 4:53
Eduard Keilholz14-Nov-06 4:53 
GeneralRe: Opening web page in a new tab Pin
Mertli Ozgur Nevres14-Nov-06 5:00
Mertli Ozgur Nevres14-Nov-06 5:00 
AnswerRe: Opening web page in a new tab Pin
ednrgc14-Nov-06 5:19
ednrgc14-Nov-06 5:19 
AnswerRe: Opening web page in a new tab Pin
User 665814-Nov-06 5:59
User 665814-Nov-06 5:59 
QuestionProblem with ListBox selectedValueChange event Pin
digitalhand14-Nov-06 4:07
digitalhand14-Nov-06 4:07 
AnswerRe: Problem with ListBox selectedValueChange event Pin
ednrgc14-Nov-06 5:14
ednrgc14-Nov-06 5:14 
GeneralRe: Problem with ListBox selectedValueChange event Pin
digitalhand14-Nov-06 9:49
digitalhand14-Nov-06 9:49 
Questionviews Pin
sadafsagheer14-Nov-06 3:44
sadafsagheer14-Nov-06 3:44 
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 

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.