Load pictureboxes dynamically when UDP Packets receives
<p>I want to load pictureboxes dynamically on a panel when a udp packet receive but it gives cross thread exception the code is used is given below</p>

<pre><code>public static void recvPacket(IAsyncResult ar)
{
        UdpClient dev = (UdpClient)((UdpState)(ar.AsyncState)).u;
        IPEndPoint sen = (IPEndPoint)((UdpState)(ar.AsyncState)).e;
        byte[] cipher_buffer = dev.EndReceive(ar, ref sen);
    getconnectors();
}

public void getconnectors()
{
    //code to load picturebox on panel
}
</code></pre>
