Click here to Skip to main content
16,017,235 members
Home / Discussions / C#
   

C#

 
AnswerRe: Can I use Visual C++ *.lib into C#? Pin
Mohamad Al Husseiny2-Sep-05 3:03
Mohamad Al Husseiny2-Sep-05 3:03 
QuestionUrgent!!!!! Drawing Rectanlges on RichTextBox Pin
AB77711-Sep-05 18:50
AB77711-Sep-05 18:50 
AnswerRe: Urgent!!!!! Drawing Rectanlges on RichTextBox Pin
Christian Graus1-Sep-05 18:56
protectorChristian Graus1-Sep-05 18:56 
GeneralRe: Urgent!!!!! Drawing Rectanlges on RichTextBox Pin
AB77711-Sep-05 22:00
AB77711-Sep-05 22:00 
GeneralRe: Urgent!!!!! Drawing Rectanlges on RichTextBox Pin
Christian Graus2-Sep-05 12:08
protectorChristian Graus2-Sep-05 12:08 
GeneralRe: Urgent!!!!! Drawing Rectanlges on RichTextBox Pin
AB77712-Sep-05 22:13
AB77712-Sep-05 22:13 
NewsRe: Urgent!!!!! Drawing Rectanlges on RichTextBox Pin
Mohamad Al Husseiny2-Sep-05 13:59
Mohamad Al Husseiny2-Sep-05 13:59 
AnswerRe: Urgent!!!!! Drawing Rectanlges on RichTextBox Pin
Mohamad Al Husseiny2-Sep-05 13:35
Mohamad Al Husseiny2-Sep-05 13:35 
You can work around this by draw rectangle in Bitmap and then copy it into clipboar and paste it in Richtext box
some thing like the following code
Bitmap bm=new Bitmap(26,14);
Graphics g= Graphics.FromImage(bm);
g.DrawRectangle(Pens.Red,0,0,25,13);
g.FillRectangle(new SolidBrush(Color.Yellow),1,1,24,12);
Clipboard.SetDataObject(bm,false);
IDataObject rect=Clipboard.GetDataObject();
if(rect.GetDataPresent(DataFormats.Bitmap))
{
    richTextBox1.Paste();
}
bm.Dispose();
g.Dispose();
you have to handle mouse events of richtextbox to create the bitmap and copy and paste it

MCAD

-- modified at 19:36 Friday 2nd September, 2005
QuestionHow 2 Change Screen Resolution Of Multi Monitors! Pin
majidbhutta1-Sep-05 17:20
majidbhutta1-Sep-05 17:20 
AnswerRe: How 2 Change Screen Resolution Of Multi Monitors! Pin
Dario Solera1-Sep-05 21:44
Dario Solera1-Sep-05 21:44 
QuestionHow to open an Excel File using C# Application. Pin
pubududilena1-Sep-05 16:48
pubududilena1-Sep-05 16:48 
AnswerRe: How to open an Excel File using C# Application. Pin
Robert Rohde1-Sep-05 20:00
Robert Rohde1-Sep-05 20:00 
QuestionHow can I darg-drop item to a WebBrowser control ? Pin
Member 19785851-Sep-05 16:03
Member 19785851-Sep-05 16:03 
QuestionVirtual Dispatching Pin
mpastchenko1-Sep-05 15:15
mpastchenko1-Sep-05 15:15 
AnswerRe: Virtual Dispatching Pin
leppie1-Sep-05 18:07
leppie1-Sep-05 18:07 
QuestionDeserialize - comments? Pin
peterchen1-Sep-05 13:34
peterchen1-Sep-05 13:34 
AnswerRe: Deserialize - comments? Pin
leppie1-Sep-05 14:14
leppie1-Sep-05 14:14 
GeneralRe: Deserialize - comments? Pin
peterchen1-Sep-05 20:30
peterchen1-Sep-05 20:30 
GeneralRe: Deserialize - comments? Pin
Mathew Hall2-Sep-05 0:43
Mathew Hall2-Sep-05 0:43 
QuestionC#/.NET coding standards: private members Pin
peterchen1-Sep-05 13:11
peterchen1-Sep-05 13:11 
AnswerRe: C#/.NET coding standards: private members Pin
Christian Graus1-Sep-05 13:58
protectorChristian Graus1-Sep-05 13:58 
GeneralRe: C#/.NET coding standards: private members Pin
Mathew Hall2-Sep-05 1:03
Mathew Hall2-Sep-05 1:03 
GeneralRe: C#/.NET coding standards: private members Pin
Christian Graus4-Sep-05 10:23
protectorChristian Graus4-Sep-05 10:23 
AnswerRe: C#/.NET coding standards: private members Pin
Mathew Hall2-Sep-05 1:07
Mathew Hall2-Sep-05 1:07 
Questiondrag and drop scrolling Pin
xilefxilef1-Sep-05 10:20
xilefxilef1-Sep-05 10:20 

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.