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

C#

 
Questiongetting id of row Pin
tauras8125-Jun-07 1:26
tauras8125-Jun-07 1:26 
AnswerRe: getting id of row Pin
Sathesh Sakthivel25-Jun-07 1:32
Sathesh Sakthivel25-Jun-07 1:32 
AnswerRe: getting id of row Pin
Revathij25-Jun-07 1:59
Revathij25-Jun-07 1:59 
QuestionHow to view a RPT file in my application Pin
i.rabek25-Jun-07 1:26
i.rabek25-Jun-07 1:26 
Questiongetting id of row Pin
tauras8125-Jun-07 1:23
tauras8125-Jun-07 1:23 
AnswerRe: getting id of row Pin
kubben25-Jun-07 2:07
kubben25-Jun-07 2:07 
QuestionCatch Dr.Watson Window Pin
realmontanakid25-Jun-07 1:13
realmontanakid25-Jun-07 1:13 
Questioncan u figure y dis xception is comin Pin
samreengr825-Jun-07 1:01
samreengr825-Jun-07 1:01 
Im implementing undo option in ma image processing application for that I have made an array of 20 bitmaps
b4 every action I use the code to record the bitmap in array

<br />
if (bmpUNDOLEVEL[ucount] != null)//array of bitmaps<br />
              bmpUNDOLEVEL[ucount] = null;<br />
             bmpUNDOLEVEL[ucount] = new Bitmap(origBitmap);<br />
                 ucount++;<br />
             if (ucount == 20)<br />
             ShiftUndoLevel();<br />

in undo button Im using
<br />
 private void undoBtn_Click(object sender, EventArgs e)<br />
        {<br />
            if (ucount < 1)<br />
            {<br />
          origBitmap = null;<br />
                origBitmap=new Bitmap( bmpUNDOLEVEL[0]);<br />
                  panel3.Invalidate();//this function draw orig bitmap on panel <br />
                 ucount = 0;<br />
            }<br />
            else<br />
            {<br />
              origBitmap = null;<br />
               origBitmap =new Bitmap( bmpUNDOLEVEL[ucount - 1]);// Im getting an exception here "Parameter is not valid."its when ucount is 18.....<br />
              <br />
                 panel3.Invalidate();//this function draw orig bitmap on panel and <br />
                ucount--;<br />
            }<br />
            if (ucount == 0)<br />
                undoBtn.Enabled = false;<br />
        }<br />

shiftundlevel shift the bitmaps once all 20 indexes of array is full;
public void ShiftUndoLevel()
{
ucount--;
bmpUNDOLEVEL[0].Dispose();
for (int i = 0; i < 19; i++)
bmpUNDOLEVEL[i] = bmpUNDOLEVEL[i + 1];
}
}

Can u figure out why is dis xception comin..........Confused | :confused:
AnswerRe: can u figure y dis xception is comin Pin
Luc Pattyn25-Jun-07 1:24
sitebuilderLuc Pattyn25-Jun-07 1:24 
GeneralRe: can u figure y dis xception is comin Pin
samreengr825-Jun-07 1:38
samreengr825-Jun-07 1:38 
AnswerRe: can u figure y dis xception is comin Pin
Pete O'Hanlon25-Jun-07 1:39
mvePete O'Hanlon25-Jun-07 1:39 
QuestionC# - Display forms Dynamically Pin
robbie.t25-Jun-07 0:42
robbie.t25-Jun-07 0:42 
AnswerRe: C# - Display forms Dynamically Pin
giddy_guitarist27-Jun-07 4:44
giddy_guitarist27-Jun-07 4:44 
QuestionC# - Display forms Dynamically Pin
robbie.t25-Jun-07 0:41
robbie.t25-Jun-07 0:41 
AnswerRe: C# - Display forms Dynamically Pin
Christian Graus25-Jun-07 0:56
protectorChristian Graus25-Jun-07 0:56 
GeneralRe: C# - Display forms Dynamically Pin
robbie.t25-Jun-07 1:02
robbie.t25-Jun-07 1:02 
GeneralRe: C# - Display forms Dynamically Pin
Urs Enzler25-Jun-07 1:36
Urs Enzler25-Jun-07 1:36 
GeneralRe: C# - Display forms Dynamically Pin
robbie.t25-Jun-07 2:10
robbie.t25-Jun-07 2:10 
GeneralRe: C# - Display forms Dynamically Pin
Urs Enzler25-Jun-07 2:14
Urs Enzler25-Jun-07 2:14 
GeneralRe: C# - Display forms Dynamically Pin
robbie.t25-Jun-07 2:26
robbie.t25-Jun-07 2:26 
GeneralRe: C# - Display forms Dynamically Pin
Urs Enzler25-Jun-07 2:38
Urs Enzler25-Jun-07 2:38 
GeneralRe: C# - Display forms Dynamically Pin
robbie.t25-Jun-07 2:54
robbie.t25-Jun-07 2:54 
GeneralRe: C# - Display forms Dynamically Pin
Urs Enzler25-Jun-07 2:59
Urs Enzler25-Jun-07 2:59 
GeneralRe: C# - Display forms Dynamically Pin
robbie.t25-Jun-07 3:04
robbie.t25-Jun-07 3:04 
QuestionHow to keep the Window in WorkArea Pin
MarkPhB25-Jun-07 0:39
MarkPhB25-Jun-07 0:39 

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.