changing images in picturebox of windows form using c#
<p>I am trying to change images in the picture box of windows form according to some conditions.But some how it is not showing any picture.</p>

<p>i placed a black picturebox control in the form and trying to give the path using c# like this...</p>

<pre><code>    public void ApplyImage(string strParam)
    {
        if (strParam == "Exit")
        {
            PB.Image = Daemon.Properties.Resources.Exit;
        }
        if (strParam == "Lock")
        {
            PB.Image = Daemon.Properties.Resources.Lock;
        }
    }
</code></pre>

<p>am i missing something ???</p>
