is there a faster way than the picturebox c #?

1

I'm trying to improve the performance of the images since when I open a child form, the images of this at the beginning appear with what was the parent form behind and afterwards and if the image is put that goes, that is the typical behavior when the application is slow.

This is the code that I put to the image that is most used.

private void games_Click(object sender, EventArgs e)
{
    panel1.Visible = false;
    if (gl == null)
    {
        gl = new exilum_gam.galeria();
        gl.MdiParent = this;
        gl.FormClosed += new FormClosedEventHandler(cerrar);
        gl.ShowDialog();
    }
    else
    {
        gl.Activate();
    }
}

I would like to know if there is a better way to display images than the picturebox or that the behavior of the picturebox showing what was behind it and after it loads the image well is not noticed.

    
asked by Wildin Mota 23.04.2017 в 01:44
source

0 answers