Click here to Skip to main content
15,881,715 members
Home / Discussions / C#
   

C#

 
QuestionProblem to display relational data in dataGridView in Entity Framework. Pin
hdv21213-Oct-09 9:39
hdv21213-Oct-09 9:39 
Questionzoom like as autocad without quality Pin
dotork13-Oct-09 8:44
dotork13-Oct-09 8:44 
AnswerRe: zoom like as autocad without quality Pin
Dave Kreskowiak13-Oct-09 18:16
mveDave Kreskowiak13-Oct-09 18:16 
QuestionListView Scrolling Pin
Zaegra13-Oct-09 7:32
Zaegra13-Oct-09 7:32 
AnswerRe: ListView Scrolling Pin
Ian Shlasko13-Oct-09 8:08
Ian Shlasko13-Oct-09 8:08 
QuestionRe: ListView Scrolling [modified] Pin
Zaegra13-Oct-09 8:12
Zaegra13-Oct-09 8:12 
AnswerRe: ListView Scrolling Pin
Ian Shlasko13-Oct-09 10:16
Ian Shlasko13-Oct-09 10:16 
AnswerRe: ListView Scrolling Pin
Luc Pattyn13-Oct-09 13:55
sitebuilderLuc Pattyn13-Oct-09 13: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 5:26
Member 647306613-Oct-09 5:26 
AnswerRe: serial port communication with multithreading Pin
Luc Pattyn13-Oct-09 5:54
sitebuilderLuc Pattyn13-Oct-09 5:54 
GeneralRe: serial port communication with multithreading Pin
Md. Marufuzzaman13-Oct-09 6:02
professionalMd. Marufuzzaman13-Oct-09 6:02 
GeneralRe: serial port communication with multithreading Pin
Member 647306614-Oct-09 5:51
Member 647306614-Oct-09 5:51 
GeneralRe: serial port communication with multithreading Pin
Luc Pattyn14-Oct-09 6:00
sitebuilderLuc Pattyn14-Oct-09 6:00 
GeneralRe: serial port communication with multithreading Pin
Member 647306614-Oct-09 10:55
Member 647306614-Oct-09 10:55 
GeneralRe: serial port communication with multithreading Pin
Luc Pattyn14-Oct-09 11:15
sitebuilderLuc Pattyn14-Oct-09 11:15 
QuestionMaskedTextBox mask problem Pin
EnkelIk13-Oct-09 5:22
EnkelIk13-Oct-09 5:22 
AnswerRe: MaskedTextBox mask problem Pin
dan!sh 13-Oct-09 5:33
professional dan!sh 13-Oct-09 5:33 
AnswerRe: MaskedTextBox mask problem Pin
Alan N13-Oct-09 5:57
Alan N13-Oct-09 5:57 
GeneralRe: MaskedTextBox mask problem Pin
EnkelIk13-Oct-09 20:51
EnkelIk13-Oct-09 20:51 
QuestionCodeproject forum ... ? Pin
devboycpp13-Oct-09 5:18
devboycpp13-Oct-09 5:18 
AnswerRe: Codeproject forum ... ? Pin
Md. Marufuzzaman13-Oct-09 5:53
professionalMd. Marufuzzaman13-Oct-09 5:53 
GeneralRe: Codeproject forum ... ? Pin
Kevin Marois13-Oct-09 6:42
professionalKevin Marois13-Oct-09 6:42 
AnswerRe: Codeproject forum ... ? Pin
Abhijit Jana13-Oct-09 7:18
professionalAbhijit Jana13-Oct-09 7:18 
Questiongenrate data is not display in report viewer Pin
vivek_s_IT13-Oct-09 2:41
vivek_s_IT13-Oct-09 2:41 
AnswerRe: genrate data is not display in report viewer Pin
Searril13-Oct-09 3:20
Searril13-Oct-09 3: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.