Click here to Skip to main content
15,558,352 members
Home / Discussions / C#
   

C#

 
QuestionProblem to display relational data in dataGridView in Entity Framework. Pin
hdv21213-Oct-09 10:39
hdv21213-Oct-09 10:39 
Questionzoom like as autocad without quality Pin
dotork13-Oct-09 9:44
dotork13-Oct-09 9:44 
AnswerRe: zoom like as autocad without quality Pin
Dave Kreskowiak13-Oct-09 19:16
mveDave Kreskowiak13-Oct-09 19:16 
QuestionListView Scrolling Pin
Zaegra13-Oct-09 8:32
Zaegra13-Oct-09 8:32 
AnswerRe: ListView Scrolling Pin
Ian Shlasko13-Oct-09 9:08
Ian Shlasko13-Oct-09 9:08 
QuestionRe: ListView Scrolling [modified] Pin
Zaegra13-Oct-09 9:12
Zaegra13-Oct-09 9:12 
AnswerRe: ListView Scrolling Pin
Ian Shlasko13-Oct-09 11:16
Ian Shlasko13-Oct-09 11:16 
AnswerRe: ListView Scrolling Pin
Luc Pattyn13-Oct-09 14:55
sitebuilderLuc Pattyn13-Oct-09 14:55 
Hi,

For mousewheel actions, there is a MouseWheel event.

However there probably are other ways to cause a scroll which you also would like to get (for consistency if nothing else), such as clicking in the scroll bar parts, using the arrow keys, maybe performing a find on the content, etc.

Therefore I would be inclined to use the Paint event: just add a handler to Paint, and compare TopIndex to its previous value. You will get some redundant events (e.g. when uncovering part of the Form), but that would be OK I guess.
BTW: I said "add a handler", not "override OnPaint", as you still want the original painting to occur.

Smile | :)

Luc Pattyn

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages

Local announcement (Antwerp region): Lange Wapper? Neen!


Questionserial port communication with multithreading Pin
Member 647306613-Oct-09 6:26
Member 647306613-Oct-09 6:26 
AnswerRe: serial port communication with multithreading Pin
Luc Pattyn13-Oct-09 6:54
sitebuilderLuc Pattyn13-Oct-09 6:54 
GeneralRe: serial port communication with multithreading Pin
Md. Marufuzzaman13-Oct-09 7:02
professionalMd. Marufuzzaman13-Oct-09 7:02 
GeneralRe: serial port communication with multithreading Pin
Member 647306614-Oct-09 6:51
Member 647306614-Oct-09 6:51 
GeneralRe: serial port communication with multithreading Pin
Luc Pattyn14-Oct-09 7:00
sitebuilderLuc Pattyn14-Oct-09 7:00 
GeneralRe: serial port communication with multithreading Pin
Member 647306614-Oct-09 11:55
Member 647306614-Oct-09 11:55 
GeneralRe: serial port communication with multithreading Pin
Luc Pattyn14-Oct-09 12:15
sitebuilderLuc Pattyn14-Oct-09 12:15 
QuestionMaskedTextBox mask problem Pin
EnkelIk13-Oct-09 6:22
EnkelIk13-Oct-09 6:22 
AnswerRe: MaskedTextBox mask problem Pin
dan!sh 13-Oct-09 6:33
professional dan!sh 13-Oct-09 6:33 
AnswerRe: MaskedTextBox mask problem Pin
Alan N13-Oct-09 6:57
Alan N13-Oct-09 6:57 
GeneralRe: MaskedTextBox mask problem Pin
EnkelIk13-Oct-09 21:51
EnkelIk13-Oct-09 21:51 
QuestionCodeproject forum ... ? Pin
devboycpp13-Oct-09 6:18
devboycpp13-Oct-09 6:18 
AnswerRe: Codeproject forum ... ? Pin
Md. Marufuzzaman13-Oct-09 6:53
professionalMd. Marufuzzaman13-Oct-09 6:53 
GeneralRe: Codeproject forum ... ? Pin
Kevin Marois13-Oct-09 7:42
professionalKevin Marois13-Oct-09 7:42 
AnswerRe: Codeproject forum ... ? Pin
Abhijit Jana13-Oct-09 8:18
professionalAbhijit Jana13-Oct-09 8:18 
Questiongenrate data is not display in report viewer Pin
vivek_s_IT13-Oct-09 3:41
vivek_s_IT13-Oct-09 3:41 
AnswerRe: genrate data is not display in report viewer Pin
Searril13-Oct-09 4:20
Searril13-Oct-09 4: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.