Click here to Skip to main content
15,891,951 members
Home / Discussions / C#
   

C#

 
AnswerRe: How many iamges can ImageList contain? Pin
Martin#28-Jun-07 19:54
Martin#28-Jun-07 19:54 
AnswerRe: How many iamges can ImageList contain? Pin
Vikram A Punathambekar28-Jun-07 21:24
Vikram A Punathambekar28-Jun-07 21:24 
Questionpriority on background threads Pin
urbane.tiger28-Jun-07 16:23
urbane.tiger28-Jun-07 16:23 
AnswerRe: priority on background threads Pin
Jimmanuel29-Jun-07 0:58
Jimmanuel29-Jun-07 0:58 
GeneralRe: priority on background threads Pin
urbane.tiger4-Jul-07 21:31
urbane.tiger4-Jul-07 21:31 
QuestionC# How to display a PDF file from Windows app? Pin
mperazac28-Jun-07 16:04
mperazac28-Jun-07 16:04 
AnswerRe: C# How to display a PDF file from Windows app? Pin
Vikram A Punathambekar28-Jun-07 17:53
Vikram A Punathambekar28-Jun-07 17:53 
AnswerRe: C# How to display a PDF file from Windows app? Pin
Albu Marius28-Jun-07 21:53
Albu Marius28-Jun-07 21:53 
AnswerRe: C# How to display a PDF file from Windows app? Pin
Giorgi Dalakishvili28-Jun-07 23:40
mentorGiorgi Dalakishvili28-Jun-07 23:40 
GeneralRe: C# How to display a PDF file from Windows app? Pin
mperazac29-Jun-07 7:39
mperazac29-Jun-07 7:39 
GeneralRe: C# How to display a PDF file from Windows app? Pin
Giorgi Dalakishvili1-Jul-07 20:29
mentorGiorgi Dalakishvili1-Jul-07 20:29 
QuestionImage Processing Pin
james_dixon_200828-Jun-07 11:12
james_dixon_200828-Jun-07 11:12 
AnswerRe: Image Processing Pin
Luc Pattyn28-Jun-07 11:28
sitebuilderLuc Pattyn28-Jun-07 11:28 
GeneralRe: Image Processing Pin
james_dixon_200828-Jun-07 11:44
james_dixon_200828-Jun-07 11:44 
GeneralRe: Image Processing Pin
Christian Graus28-Jun-07 11:47
protectorChristian Graus28-Jun-07 11:47 
GeneralRe: Image Processing Pin
james_dixon_200828-Jun-07 12:08
james_dixon_200828-Jun-07 12:08 
GeneralRe: Image Processing Pin
Luc Pattyn28-Jun-07 12:33
sitebuilderLuc Pattyn28-Jun-07 12:33 
AnswerRe: Image Processing Pin
Amar Chaudhary28-Jun-07 12:30
Amar Chaudhary28-Jun-07 12:30 
AnswerRe: Image Processing Pin
gumi_r@msn.com29-Jun-07 4:37
gumi_r@msn.com29-Jun-07 4:37 
QuestionScrollProperties.Value needs to be set twice? Pin
PhilDanger28-Jun-07 11:12
PhilDanger28-Jun-07 11:12 
AnswerRe: ScrollProperties.Value needs to be set twice? Pin
Luc Pattyn28-Jun-07 11:35
sitebuilderLuc Pattyn28-Jun-07 11:35 
AnswerRe: ScrollProperties.Value needs to be set twice? Pin
Mark Greenwood28-Jun-07 11:36
Mark Greenwood28-Jun-07 11:36 
AnswerRe: ScrollProperties.Value needs to be set twice? Pin
PhilDanger29-Jun-07 10:16
PhilDanger29-Jun-07 10:16 
I've been able to reproduce the problem in a more simple environment. I have a Form that has one panel inside of it. Pressing "L" makes panel expand by 10 pixels each time, and programatically sets the scroll bar position if it is visible, and prints out the value.

This code produces output:
---
0
5

---

the first time you click L, and 5 every time after.

private void Form1_KeyUp(object sender, KeyEventArgs e)
{
    if (e.KeyCode == Keys.L)
    {
        this.panel1.Width += 10;
        if (this.HScroll)
        {

            this.HorizontalScroll.Value = 5;
            Console.WriteLine(this.HorizontalScroll.Value);
            this.HorizontalScroll.Value = 5;
            Console.WriteLine(this.HorizontalScroll.Value);
        }
    }

}


Still looking for a fix to avoid this hackeration, and would appreciate it if someone could run similar code on their box.

Thanks,

Phil
AnswerRe: ScrollProperties.Value needs to be set twice? Pin
yurets__5-Jul-10 3:39
yurets__5-Jul-10 3:39 
QuestionSQL 2005 Connection Problem Pin
Muhammad Nauman Yousuf28-Jun-07 9:29
Muhammad Nauman Yousuf28-Jun-07 9:29 

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.