Click here to Skip to main content
15,894,015 members
Home / Discussions / C#
   

C#

 
QuestionSFTP using Sharp SSH Pin
SG21072-Jan-11 20:02
SG21072-Jan-11 20:02 
AnswerRe: SFTP using Sharp SSH Pin
OriginalGriff2-Jan-11 21:04
mveOriginalGriff2-Jan-11 21:04 
AnswerRe: SFTP using Sharp SSH Pin
Bernhard Hiller2-Jan-11 21:17
Bernhard Hiller2-Jan-11 21:17 
QuestionChanging Console font Pin
Mc_Topaz2-Jan-11 11:28
Mc_Topaz2-Jan-11 11:28 
AnswerRe: Changing Console font Pin
PIEBALDconsult2-Jan-11 15:19
mvePIEBALDconsult2-Jan-11 15:19 
AnswerRe: Changing Console font Pin
DaveyM692-Jan-11 18:03
professionalDaveyM692-Jan-11 18:03 
GeneralRe: Changing Console font Pin
Mc_Topaz2-Jan-11 22:16
Mc_Topaz2-Jan-11 22:16 
QuestionCan't set Label.Text Pin
Pelgar2-Jan-11 6:57
Pelgar2-Jan-11 6:57 
I've been working with C# for about 6 months. This is the first time that a little searching has not resolved a problem for me. I'm trying to change the text of a label and update a progress bar in a loop that does some graphic calculations. The progress bar is working fine but the label text does not change until the loop has completed.

int nImgCnt = m_Parent.m_ImageList.Count - 1;
int nStatBarAdd = 1000 / nImgCnt;

for (int nIdx = 0; nIdx <= nImgCnt; nIdx++)
{   //FInd Min rectangle that will contain largest image
   lblProg.Text = "Calculating minimum image size. Image " + (nIdx+1).ToString() + " of " + (nImgCnt + 1).ToString();
   lblProg.Focus();        //Tried this just to see if it would work
   lblProg.Invalidate();   //Tried this just to see if it would work
   CurRC = getImageMinSize(m_Parent.m_ImageList[nIdx]);
    if (CurRC.Width > MinRC.Width)
    {
        MinRC.Width = CurRC.Width;
        MinRC.X = CurRC.X;
    }
    if (CurRC.Height > MinRC.Height)
    {
        MinRC.Height = CurRC.Height;
        MinRC.Y = CurRC.Y;
    }
    prgBr.Value += nStatBarAdd;

}


If anyone can help me out with this I will really appreciate it!
AnswerRe: Can't set Label.Text Pin
Luc Pattyn2-Jan-11 7:07
sitebuilderLuc Pattyn2-Jan-11 7:07 
GeneralRe: Can't set Label.Text [modified] Pin
Pelgar2-Jan-11 7:13
Pelgar2-Jan-11 7:13 
GeneralRe: Can't set Label.Text Pin
Luc Pattyn2-Jan-11 9:01
sitebuilderLuc Pattyn2-Jan-11 9:01 
GeneralRe: Can't set Label.Text Pin
Jeff Connelly3-Jan-11 4:40
Jeff Connelly3-Jan-11 4:40 
GeneralRe: Can't set Label.Text Pin
Luc Pattyn3-Jan-11 5:32
sitebuilderLuc Pattyn3-Jan-11 5:32 
QuestionA nice idea or not? Pin
venomation2-Jan-11 5:01
venomation2-Jan-11 5:01 
AnswerRe: A nice idea or not? Pin
OriginalGriff2-Jan-11 5:24
mveOriginalGriff2-Jan-11 5:24 
AnswerRe: A nice idea or not? (compensated) Pin
OriginalGriff2-Jan-11 5:25
mveOriginalGriff2-Jan-11 5:25 
GeneralRe: A nice idea or not? (compensated) Pin
venomation2-Jan-11 6:00
venomation2-Jan-11 6:00 
GeneralRe: A nice idea or not? (compensated) Pin
PIEBALDconsult2-Jan-11 7:12
mvePIEBALDconsult2-Jan-11 7:12 
GeneralRe: A nice idea or not? (compensated) Pin
jschell2-Jan-11 9:07
jschell2-Jan-11 9:07 
GeneralRe: A nice idea or not? (compensated) Pin
OriginalGriff2-Jan-11 9:11
mveOriginalGriff2-Jan-11 9:11 
GeneralRe: A nice idea or not? (compensated) Pin
jschell3-Jan-11 9:54
jschell3-Jan-11 9:54 
AnswerRe: A nice idea or not? Pin
PIEBALDconsult2-Jan-11 6:59
mvePIEBALDconsult2-Jan-11 6:59 
AnswerRe: A nice idea or not? Pin
Pete O'Hanlon2-Jan-11 10:07
mvePete O'Hanlon2-Jan-11 10:07 
AnswerRe: A nice idea or not? Pin
#realJSOP3-Jan-11 0:47
mve#realJSOP3-Jan-11 0:47 
QuestionI want to check length of bytes Pin
Honeyboy_201-Jan-11 4:08
Honeyboy_201-Jan-11 4:08 

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.