Click here to Skip to main content
15,899,026 members
Home / Discussions / C#
   

C#

 
GeneralAllowing/Disallowing Controls in the ToolBox Pin
Qarash23-Jun-03 2:52
Qarash23-Jun-03 2:52 
GeneralAdjusting Context Menu Positions Pin
venkatasundaram23-Jun-03 2:10
venkatasundaram23-Jun-03 2:10 
GeneralRe: Adjusting Context Menu Positions Pin
Kannan Kalyanaraman23-Jun-03 2:30
Kannan Kalyanaraman23-Jun-03 2:30 
GeneralCalling simple DOS Commands from C# Pin
STW23-Jun-03 0:00
STW23-Jun-03 0:00 
GeneralRe: Calling simple DOS Commands from C# Pin
Rocky Moore23-Jun-03 0:58
Rocky Moore23-Jun-03 0:58 
GeneralRe: Calling simple DOS Commands from C# Pin
STW23-Jun-03 5:57
STW23-Jun-03 5:57 
GeneralRichTextBox colouring Pin
S O S22-Jun-03 21:47
S O S22-Jun-03 21:47 
GeneralRe: RichTextBox colouring Pin
dynamic23-Jun-03 8:18
dynamic23-Jun-03 8:18 
here ya go this should get you started off :
VB:
<font color="blue">Private</font> void button4_Click(<font color="blue">Object</font> sender, System.EventArgs e)
        {
            richTextBox1.SelectionStart=richTextBox1.Text.Length;
            richTextBox1.SelectionColor=Color.Blue;
            richTextBox1.SelectionFont=new Font("Tahoma",10,FontStyle.Bold);
            richTextBox1.SelectedText="testing blue bold\n";
            <font color="DarkGreen">// now lets change from bold blue to normal red.</font>
            richTextBox1.SelectionStart=richTextBox1.Text.Length;
            richTextBox1.SelectionColor=Color.Red;
            richTextBox1.SelectionFont=new Font("Verdana",10,FontStyle.Regular);
            richTextBox1.SelectedText="now testing in red\n";
            
        }



hope that helps a little Smile | :)




<font color="blue">Private void</font> ExpectingTwins(<font color="blue">string</font> twins)
    {    
    <font color="blue">switch</font>(twins)
    {
    <font color="blue">Case</font> ("twins on the way"):
        MessageBox.Show("for mr and mrs dynamic","twins on the way");
    <font color="blue">break</font>;
    }
    }




GeneralRe: RichTextBox colouring Pin
S O S23-Jun-03 10:40
S O S23-Jun-03 10:40 
Questionhow to raise a mouse event in axWebBrowsser control Pin
benzite22-Jun-03 20:54
benzite22-Jun-03 20:54 
GeneralC# vs. C++ Pin
untwisted22-Jun-03 19:09
untwisted22-Jun-03 19:09 
GeneralRe: C# vs. C++ Pin
J. Dunlap22-Jun-03 20:13
J. Dunlap22-Jun-03 20:13 
GeneralRe: C# vs. C++ Pin
untwisted22-Jun-03 20:20
untwisted22-Jun-03 20:20 
GeneralRe: C# vs. C++ Pin
J. Dunlap22-Jun-03 21:03
J. Dunlap22-Jun-03 21:03 
GeneralRe: C# vs. C++ Pin
untwisted22-Jun-03 21:08
untwisted22-Jun-03 21:08 
GeneralRe: C# vs. C++ Pin
Rocky Moore22-Jun-03 23:47
Rocky Moore22-Jun-03 23:47 
GeneralRe: C# vs. C++ Pin
TigerNinja_23-Jun-03 10:14
TigerNinja_23-Jun-03 10:14 
GeneralRe: C# vs. C++ Pin
Rocky Moore23-Jun-03 22:48
Rocky Moore23-Jun-03 22:48 
Generalinserting into database. Pin
Asim N.22-Jun-03 18:17
Asim N.22-Jun-03 18:17 
GeneralConfiguration file Pin
puppiesLover22-Jun-03 13:24
puppiesLover22-Jun-03 13:24 
GeneralProgram Flow Pin
puppiesLover22-Jun-03 11:09
puppiesLover22-Jun-03 11:09 
GeneralRe: Program Flow Pin
Jon Newman23-Jun-03 4:42
Jon Newman23-Jun-03 4:42 
Generalcreating a single EXE from multiple projects Pin
mikechambers22-Jun-03 6:20
mikechambers22-Jun-03 6:20 
GeneralRe: creating a single EXE from multiple projects Pin
leppie22-Jun-03 11:16
leppie22-Jun-03 11:16 
GeneralRe: creating a single EXE from multiple projects Pin
mikechambers22-Jun-03 11:39
mikechambers22-Jun-03 11:39 

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.