Click here to Skip to main content
15,886,786 members
Home / Discussions / C#
   

C#

 
GeneralDataBindings Pin
yyf2-Sep-03 10:27
yyf2-Sep-03 10:27 
GeneralRe: DataBindings Pin
Ista2-Sep-03 16:56
Ista2-Sep-03 16:56 
GeneralAuthenticating to a web site Pin
roberthanacek2-Sep-03 10:24
roberthanacek2-Sep-03 10:24 
GeneralRe: Authenticating to a web site Pin
leppie2-Sep-03 12:09
leppie2-Sep-03 12:09 
GeneralSingleCall Objects not Disposing Pin
0siris2-Sep-03 8:03
0siris2-Sep-03 8:03 
GeneralOverride the asterisk and row arrow in datagrid Pin
Ista2-Sep-03 7:02
Ista2-Sep-03 7:02 
General(Rich) Text Box and cursor position Pin
Frank Olorin Rizzi2-Sep-03 5:59
Frank Olorin Rizzi2-Sep-03 5:59 
GeneralRe: (Rich) Text Box and cursor position Pin
Frank Olorin Rizzi2-Sep-03 6:07
Frank Olorin Rizzi2-Sep-03 6:07 
Well, so far here's what I found... if anyone has any better idea, feel free to post Smile | :)

<br />
//In the handler for the mouse-click on the rich text box...<br />
//where e is the System.Windows.Forms.MouseEventArgs parameter...<br />
<br />
int ndex = this.rBox_MarkedUp.GetCharIndexFromPosition(<br />
  new System.Drawing.Point(e.X, e.Y));<br />
int line = this.rBox_MarkedUp.GetLineFromCharIndex(ndex);<br />


ndex is now the 0-based index of the char clicked
and
line is the number of the line (0-based as well).

We now return to the usual stream of questions Smile | :)

Thanks,
F.O.R.
GeneralRe: (Rich) Text Box and cursor position Pin
.gonad2-Sep-03 6:47
.gonad2-Sep-03 6:47 
QuestionCan you use functions like sprintf in c# Pin
IrishSonic2-Sep-03 5:59
IrishSonic2-Sep-03 5:59 
AnswerRe: Can you use functions like sprintf in c# Pin
flipdoubt2-Sep-03 7:04
flipdoubt2-Sep-03 7:04 
AnswerRe: Can you use functions like sprintf in c# Pin
leppie2-Sep-03 12:14
leppie2-Sep-03 12:14 
GeneralThanks, will check it out. Pin
IrishSonic2-Sep-03 22:06
IrishSonic2-Sep-03 22:06 
GeneralOffice Xp Task Panel Pin
Sanjay Rastogi2-Sep-03 3:15
Sanjay Rastogi2-Sep-03 3:15 
GeneralSingleCall and Threads Forever Pin
Member 4744652-Sep-03 2:32
Member 4744652-Sep-03 2:32 
GeneralWin32 API Wrapper Pin
vikramlinux1-Sep-03 23:34
vikramlinux1-Sep-03 23:34 
GeneralRe: Win32 API Wrapper Pin
J. Dunlap2-Sep-03 9:20
J. Dunlap2-Sep-03 9:20 
GeneralTrouble with 'set' accessor Pin
mikeirwin1-Sep-03 20:01
mikeirwin1-Sep-03 20:01 
GeneralRe: Trouble with 'set' accessor Pin
Ista2-Sep-03 7:01
Ista2-Sep-03 7:01 
GeneralRe: Trouble with 'set' accessor Pin
mikeirwin2-Sep-03 9:21
mikeirwin2-Sep-03 9:21 
GeneralWriting and reading binary data Pin
padcom131-Sep-03 14:53
padcom131-Sep-03 14:53 
GeneralRe: Writing and reading binary data Pin
James T. Johnson1-Sep-03 16:57
James T. Johnson1-Sep-03 16:57 
GeneralRe: Writing and reading binary data Pin
James T. Johnson1-Sep-03 17:08
James T. Johnson1-Sep-03 17:08 
GeneralRe: Writing and reading binary data Pin
padcom132-Sep-03 5:01
padcom132-Sep-03 5:01 
GeneralRe: Writing and reading binary data Pin
Eric Gunnerson (msft)2-Sep-03 9:48
Eric Gunnerson (msft)2-Sep-03 9:48 

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.