Click here to Skip to main content
15,925,602 members
Home / Discussions / C#
   

C#

 
QuestionRe: How work with images in C# Pin
Nader Elshehabi28-Aug-06 20:59
Nader Elshehabi28-Aug-06 20:59 
QuestionRe: How work with images in C# Pin
signimage30-Aug-06 21:32
signimage30-Aug-06 21:32 
AnswerRe: How work with images in C# Pin
Nader Elshehabi31-Aug-06 1:50
Nader Elshehabi31-Aug-06 1:50 
QuestionOpenning a web site using Default Internet Explorer Pin
emran83428-Aug-06 18:38
emran83428-Aug-06 18:38 
AnswerRe: Openning a web site using Default Internet Explorer Pin
Steve Maier28-Aug-06 18:42
professionalSteve Maier28-Aug-06 18:42 
AnswerRe: Openning a web site using Default Internet Explorer Pin
Nader Elshehabi28-Aug-06 20:01
Nader Elshehabi28-Aug-06 20:01 
GeneralRe: Openning a web site using Default Internet Explorer Pin
emran83429-Aug-06 2:02
emran83429-Aug-06 2:02 
QuestionUsing EM_GETRECT and EM_SETRECT for RTF boxes in C#? Pin
handa2928-Aug-06 17:36
handa2928-Aug-06 17:36 
Hi, folks!

I've made a sub-class of the System.Windows.Forms.RichTextBox called "MyRtfBox". Within my rtf box, I want to add a few properties which allow me to directly access some of the advanced properties of the rtf textbox, such as line count, getting the scrollbar thumb's position, etc. I'm glad to say that I've figured all of that out, EXCEPT for how to get and set the display rectangle using Windows Forms Messages!

I've looked all over the web and can't find any articles anywhere in C# that show how to use these two Messages. The examples I've seen in C++ and VB don't seem to translate well to C#. Does anyone have a clue?

When it's all set and done, I'd like to have a sub-classed RTF box with this public property...

//Taken from the Windows constants list.
private const int EM_GETRECT = 0x00b2;
private const int EM_SETRECT = 0x00b3;

public Rectangle DisplayRect
{
get
{
Rectangle rect = new Rectangle();

//Send a message to Windows somehow!

return rect;
}
set
{
//Send a message to Windows using the given Rectangle parameter.
}
}


Many thanks!!

Anthony
AnswerRe: Using EM_GETRECT and EM_SETRECT for RTF boxes in C#? Pin
handa2928-Aug-06 17:47
handa2928-Aug-06 17:47 
AnswerRe: Using EM_GETRECT and EM_SETRECT for RTF boxes in C#? Pin
mav.northwind29-Aug-06 4:18
mav.northwind29-Aug-06 4:18 
QuestionC# 2.0 BackgroundWorker Pin
kselman28-Aug-06 16:47
kselman28-Aug-06 16:47 
AnswerRe: C# 2.0 BackgroundWorker Pin
Not Active28-Aug-06 17:11
mentorNot Active28-Aug-06 17:11 
AnswerRe: C# 2.0 BackgroundWorker Pin
Bob Nadler28-Aug-06 17:26
Bob Nadler28-Aug-06 17:26 
GeneralRe: C# 2.0 BackgroundWorker Pin
kselman28-Aug-06 18:27
kselman28-Aug-06 18:27 
GeneralRe: C# 2.0 BackgroundWorker Pin
Bob Nadler30-Aug-06 17:57
Bob Nadler30-Aug-06 17:57 
QuestionInsert a word Document into database Pin
kalyanPaladugu28-Aug-06 15:18
kalyanPaladugu28-Aug-06 15:18 
AnswerRe: Insert a word Document into database Pin
Not Active28-Aug-06 16:45
mentorNot Active28-Aug-06 16:45 
GeneralRe: Insert a word Document into database Pin
kalyanPaladugu28-Aug-06 17:05
kalyanPaladugu28-Aug-06 17:05 
GeneralRe: Insert a word Document into database Pin
kalyanPaladugu28-Aug-06 17:40
kalyanPaladugu28-Aug-06 17:40 
GeneralRe: Insert a word Document into database Pin
User 58385228-Aug-06 18:28
User 58385228-Aug-06 18:28 
GeneralRe: Insert a word Document into database Pin
kalyanPaladugu29-Aug-06 1:43
kalyanPaladugu29-Aug-06 1:43 
GeneralInsert a word Document into database Pin
kalyanPaladugu29-Aug-06 1:59
kalyanPaladugu29-Aug-06 1:59 
Questiontransparent form Pin
TAREQ F ABUZUHRI28-Aug-06 13:09
TAREQ F ABUZUHRI28-Aug-06 13:09 
AnswerRe: transparent form Pin
Judah Gabriel Himango28-Aug-06 16:03
sponsorJudah Gabriel Himango28-Aug-06 16:03 
QuestionHow to add code to the default close/exit button on a form? Pin
haz1328-Aug-06 11:47
haz1328-Aug-06 11:47 

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.