Click here to Skip to main content
15,905,785 members
Home / Discussions / C#
   

C#

 
AnswerRe: Static constructor PinPopular
DaveyM6930-Jul-09 1:33
professionalDaveyM6930-Jul-09 1:33 
AnswerRe: Static constructor Pin
Daniel Grunwald30-Jul-09 1:49
Daniel Grunwald30-Jul-09 1:49 
GeneralRe: Static constructor Pin
erfgerfgerger30-Jul-09 2:01
erfgerfgerger30-Jul-09 2:01 
GeneralRe: Static constructor Pin
Daniel Grunwald30-Jul-09 2:04
Daniel Grunwald30-Jul-09 2:04 
GeneralRe: Static constructor Pin
erfgerfgerger30-Jul-09 2:07
erfgerfgerger30-Jul-09 2:07 
GeneralRe: Static constructor Pin
PIEBALDconsult30-Jul-09 4:28
mvePIEBALDconsult30-Jul-09 4:28 
QuestionExtreme right click on the scollbar any event? Pin
spalanivel30-Jul-09 0:14
spalanivel30-Jul-09 0:14 
AnswerRe: Extreme right click on the scollbar any event? Pin
Alan N30-Jul-09 3:15
Alan N30-Jul-09 3:15 
Hi,
Right now you are trying to design your program's logic but you don't really know how a scroll bar works. In this situation I would create a small project with one purpose, which would be to display the events from a scroll bar. The knowledge gained from the test project can then then be applied to your main project to help you with your design.

A simple test project would have a main form containing
1) a horizontal scroll bar
2) a multiline textbox.

Create handlers for the scrollbar's Scroll and ValueChanged events, e.g.
private void hScrollBar1_Scroll(object sender, ScrollEventArgs e) {
  this.textBox1.AppendText(String.Format("Scroll Event {0} {1} {2} {3}" + Environment.NewLine, 
    e.ScrollOrientation, e.Type, e.OldValue, e.NewValue));
}

private void hScrollBar1_ValueChanged(object sender, EventArgs e) {
  this.textBox1.AppendText(String.Format("ValueChanged Event {0}" + Environment.NewLine, 
    this.hScrollBar1.Value));
}


What you have now is a test system which displays event information in the text box whenever you move the scrollbox.

This will teach you a lot about scroll bars and will enable you to figure out what you need to do to in your main app. You will probably be suprised to see how many events a scroll bar generates!

Alan.
GeneralRe: Extreme right click on the scollbar any event? Pin
spalanivel30-Jul-09 18:52
spalanivel30-Jul-09 18:52 
QuestionChecking file longer than 1 hour Pin
Mninawa29-Jul-09 23:45
Mninawa29-Jul-09 23:45 
AnswerRe: Checking file longer than 1 hour Pin
Moreno Airoldi29-Jul-09 23:52
Moreno Airoldi29-Jul-09 23:52 
AnswerRe: Checking file longer than 1 hour [modified] Pin
Mirko198030-Jul-09 0:04
Mirko198030-Jul-09 0:04 
AnswerRe: Checking file longer than 1 hour Pin
Luc Pattyn30-Jul-09 0:15
sitebuilderLuc Pattyn30-Jul-09 0:15 
Questionrun application without install dotnet Pin
mjawadkhatri29-Jul-09 23:29
mjawadkhatri29-Jul-09 23:29 
AnswerRe: run application without install dotnet Pin
musefan29-Jul-09 23:46
musefan29-Jul-09 23:46 
GeneralRe: run application without install dotnet Pin
mjawadkhatri29-Jul-09 23:52
mjawadkhatri29-Jul-09 23:52 
GeneralRe: run application without install dotnet Pin
Tom Deketelaere30-Jul-09 0:08
professionalTom Deketelaere30-Jul-09 0:08 
GeneralRe: run application without install dotnet Pin
Kevin McFarlane30-Jul-09 0:12
Kevin McFarlane30-Jul-09 0:12 
GeneralRe: run application without install dotnet Pin
Baeltazor30-Jul-09 18:52
Baeltazor30-Jul-09 18:52 
AnswerRe: run application without install dotnet Pin
Henry Minute30-Jul-09 4:01
Henry Minute30-Jul-09 4:01 
QuestionNested DataGridView Pin
Muammar©29-Jul-09 22:52
Muammar©29-Jul-09 22:52 
AnswerRe: Nested DataGridView Pin
Henry Minute30-Jul-09 3:58
Henry Minute30-Jul-09 3:58 
GeneralRe: Nested DataGridView Pin
Muammar©30-Jul-09 7:28
Muammar©30-Jul-09 7:28 
QuestionExcel app to C# winform Pin
Dimitris Nemtsov29-Jul-09 22:47
Dimitris Nemtsov29-Jul-09 22:47 
AnswerRe: Excel app to C# winform Pin
jasonmp19-Nov-10 4:56
jasonmp19-Nov-10 4:56 

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.