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

C#

 
GeneralRe: DataGridView(Win app) disable selecting Pin
Judah Gabriel Himango5-Sep-07 4:33
sponsorJudah Gabriel Himango5-Sep-07 4:33 
GeneralRe: DataGridView(Win app) disable selecting Pin
Stevo Z5-Sep-07 4:40
Stevo Z5-Sep-07 4:40 
GeneralRe: DataGridView(Win app) disable selecting Pin
Judah Gabriel Himango5-Sep-07 4:52
sponsorJudah Gabriel Himango5-Sep-07 4:52 
GeneralRe: DataGridView(Win app) disable selecting Pin
Stevo Z5-Sep-07 7:16
Stevo Z5-Sep-07 7:16 
GeneralRe: DataGridView(Win app) disable selecting Pin
Judah Gabriel Himango5-Sep-07 4:35
sponsorJudah Gabriel Himango5-Sep-07 4:35 
QuestionRichTextBox Pin
mihksoft5-Sep-07 3:02
mihksoft5-Sep-07 3:02 
AnswerRe: RichTextBox Pin
JoeSharp5-Sep-07 3:34
JoeSharp5-Sep-07 3:34 
AnswerRe: RichTextBox Pin
Skippums5-Sep-07 3:40
Skippums5-Sep-07 3:40 
using System.Runtime.InteropServices;

[DllImport("user32.dll")]
public external uint SendMessage(IntPtr hwnd, uint command, int arg1, int arg2)


public class Example : Form {
...
private RichTextBox rtb = new RichTextBox();

// EM_POSFROMCHAR = 0xD6
uint pos = SendMessage(rtb.Handle, EM_POSFROMCHAR, 0, rtb.SelectionStart);
...
}

I think this method returns an int of the form (x << 16) + y, but you should look it up to be sure. I have not written this in the compiler and am only going from memory, so you need to check to make sure that this works, but the idea is the same. Anyway, I thought that rtb's have a method called "GetCharPos" or something like that... Hope this helps.

Jeff
QuestionDataGridView Pin
Assaf825-Sep-07 2:51
Assaf825-Sep-07 2:51 
AnswerRe: DataGridView Pin
Urs Enzler5-Sep-07 3:00
Urs Enzler5-Sep-07 3:00 
GeneralRe: DataGridView Pin
Assaf825-Sep-07 4:50
Assaf825-Sep-07 4:50 
GeneralRe: DataGridView Pin
Urs Enzler5-Sep-07 4:55
Urs Enzler5-Sep-07 4:55 
GeneralRe: DataGridView Pin
Assaf825-Sep-07 9:53
Assaf825-Sep-07 9:53 
GeneralRe: DataGridView Pin
Urs Enzler5-Sep-07 20:14
Urs Enzler5-Sep-07 20:14 
QuestionIntel UPnP SDK Pin
MicealG5-Sep-07 2:41
MicealG5-Sep-07 2:41 
QuestionWord Addins Pin
som84835-Sep-07 2:20
som84835-Sep-07 2:20 
QuestionAbstract, interface, Confusion Pin
Vodstok5-Sep-07 2:19
Vodstok5-Sep-07 2:19 
AnswerRe: Abstract, interface, Confusion Pin
Urs Enzler5-Sep-07 2:56
Urs Enzler5-Sep-07 2:56 
GeneralRe: Abstract, interface, Confusion Pin
Vodstok5-Sep-07 3:19
Vodstok5-Sep-07 3:19 
GeneralRe: Abstract, interface, Confusion [modified] Pin
Urs Enzler5-Sep-07 3:25
Urs Enzler5-Sep-07 3:25 
GeneralRe: Abstract, interface, Confusion Pin
Larantz5-Sep-07 9:05
Larantz5-Sep-07 9:05 
Questionuse math.h in C# Pin
max_dev2006@yahoo.com5-Sep-07 1:35
max_dev2006@yahoo.com5-Sep-07 1:35 
AnswerRe: use math.h in C# Pin
Nouman Bhatti5-Sep-07 1:38
Nouman Bhatti5-Sep-07 1:38 
GeneralRe: use math.h in C# Pin
max_dev2006@yahoo.com5-Sep-07 19:25
max_dev2006@yahoo.com5-Sep-07 19:25 
AnswerRe: use math.h in C# Pin
blackjack21505-Sep-07 1:47
blackjack21505-Sep-07 1: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.