Click here to Skip to main content
15,921,351 members
Home / Discussions / C#
   

C#

 
GeneralRe: Return a specified item from a list box.. Pin
Luc Pattyn13-Aug-10 9:28
sitebuilderLuc Pattyn13-Aug-10 9:28 
GeneralRe: Return a specified item from a list box.. Pin
Ravi Bhavnani13-Aug-10 9:31
professionalRavi Bhavnani13-Aug-10 9:31 
GeneralRe: Return a specified item from a list box.. Pin
Luc Pattyn13-Aug-10 9:34
sitebuilderLuc Pattyn13-Aug-10 9:34 
GeneralRe: Return a specified item from a list box.. Pin
OriginalGriff13-Aug-10 10:10
mveOriginalGriff13-Aug-10 10:10 
GeneralRe: Return a specified item from a list box.. Pin
Luc Pattyn13-Aug-10 10:22
sitebuilderLuc Pattyn13-Aug-10 10:22 
GeneralRe: Return a specified item from a list box.. Pin
OriginalGriff13-Aug-10 10:41
mveOriginalGriff13-Aug-10 10:41 
GeneralRe: Return a specified item from a list box.. Pin
Luc Pattyn13-Aug-10 11:07
sitebuilderLuc Pattyn13-Aug-10 11:07 
QuestionHow to update picturebox with image on from queue on runtime ? ( code attached ) Pin
Yanshof13-Aug-10 4:52
Yanshof13-Aug-10 4:52 
I have some callback method that set on my queue some bitmap.
This callback is called every 3 millisecond.

What i mean is that my queue will be fill up with a new bitmap every 60 Millisecond.

I trying to get the first picture ( this is queue ... ) and show it on pictureBox - but i get some "external error e0434352" and i don't understand why and what this exception error mean.

This external exception appear on the line that i update the image ( this.pictureBox1.Image = Image.FromHbitmap( img ) )

Please someone can help me ? - i really don't have any idea what the problem can be and how to solve it.

private void CallBack( object sender, IntPtr e )
    {
      lock( IncomingBmp )
      {
        IncomingBmp.Enqueue ( e );

        if( IncomingBmp.Count > 10)
        {
          UpdateBitmap( IncomingBmp.Dequeue() );
        }
      }
    }

    private void UpdateBitmap( IntPtr img )
    {
      if( this.pictureBox1.InvokeRequired == true )
      {
        UpdateBitmapCallback p = new UpdateBitmapCallback( UpdateBitmap );
        this.Invoke( p, img );
      }
      else
      {
        Image oldImage = this.pictureBox1.Image;
        this.pictureBox1.Image = Image.FromHbitmap( img );
        if( oldImage != null )
            oldImage.Dispose();      
      }  
    }

AnswerRe: How to update picturebox with image on from queue on runtime ? ( code attached ) Pin
Luc Pattyn13-Aug-10 5:02
sitebuilderLuc Pattyn13-Aug-10 5:02 
Questioncalling Form from another Form and office access database. Pin
marwan_siala13-Aug-10 4:17
marwan_siala13-Aug-10 4:17 
AnswerRe: calling Form from another Form and office access database. Pin
dan!sh 13-Aug-10 4:21
professional dan!sh 13-Aug-10 4:21 
GeneralRe: calling Form from another Form and office access database. Pin
marwan_siala13-Aug-10 4:28
marwan_siala13-Aug-10 4:28 
AnswerRe: calling Form from another Form and office access database. Pin
OriginalGriff13-Aug-10 4:21
mveOriginalGriff13-Aug-10 4:21 
GeneralRe: calling Form from another Form and office access database. Pin
marwan_siala13-Aug-10 4:26
marwan_siala13-Aug-10 4:26 
QuestionData source selection for C# win app Pin
Eduard Keilholz13-Aug-10 3:34
Eduard Keilholz13-Aug-10 3:34 
AnswerRe: Data source selection for C# win app Pin
dan!sh 13-Aug-10 3:56
professional dan!sh 13-Aug-10 3:56 
AnswerRe: Data source selection for C# win app Pin
Dr.Walt Fair, PE13-Aug-10 5:02
professionalDr.Walt Fair, PE13-Aug-10 5:02 
AnswerRe: Data source selection for C# win app Pin
Dan Mos13-Aug-10 7:35
Dan Mos13-Aug-10 7:35 
Questionsplit issue Pin
varsh1213-Aug-10 2:03
varsh1213-Aug-10 2:03 
AnswerRe: split issue Pin
Luc Pattyn13-Aug-10 2:08
sitebuilderLuc Pattyn13-Aug-10 2:08 
AnswerRe: split issue Pin
Ian Shlasko13-Aug-10 2:58
Ian Shlasko13-Aug-10 2:58 
GeneralRe: split issue Pin
Luc Pattyn13-Aug-10 3:38
sitebuilderLuc Pattyn13-Aug-10 3:38 
GeneralRe: split issue Pin
Ian Shlasko13-Aug-10 4:25
Ian Shlasko13-Aug-10 4:25 
QuestionUnmanaged callback, Dispose issue Pin
DaveyM6912-Aug-10 23:04
professionalDaveyM6912-Aug-10 23:04 
AnswerRe: Unmanaged callback, Dispose issue Pin
Luc Pattyn13-Aug-10 1:51
sitebuilderLuc Pattyn13-Aug-10 1:51 

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.