Note that there are some explanatory texts on larger screens.

plurals
  1. POArgumentException at Application.Run after bringing panel to front or changing visibility
    primarykey
    data
    text
    <p>For some reason an ArgumentException saying 'Parameter is not valid.' at Application.Run gets thrown when executing either this:</p> <pre><code>private void utilsTabBtn_Click(object sender, EventArgs e) { utilitiesPanel.BringToFront(); } </code></pre> <p>or this:</p> <pre><code>private void utilsTabBtn_Click(object sender, EventArgs e) { utilitiesPanel.Visible = true; accountcreatorPanel.Visible = false; aboutPanel.Visible = false; } </code></pre> <p>after executing RequestCaptcha in this code:</p> <pre><code>private void accountcreatorStartBtn_Click(object sender, EventArgs e) { accountcreatorStopBtn.Enabled = true; accountcreatorStartBtn.Enabled = false; recaptchaSolveBox.Enabled = true; recaptchaContinueBtn.Enabled = true; recaptchaRenewBtn.Enabled = true; MinimalID = accIndexOne.Value; CurrentID = MinimalID - 1; MaximalID = accIndexTwo.Value; RequestCaptcha(); recaptchaBox.SizeMode = PictureBoxSizeMode.StretchImage; } </code></pre> <p>where RequestCaptcha is:</p> <pre><code>private void RequestCaptcha() { LatestKey = ((new Random()).Next() * (new Random()).Next()); statusLbl.Text = "Captcha key: " + LatestKey.ToString(); recaptchaBox.Image.Dispose(); using (WebClient w = new WebClient()) { w.DownloadFile(string.Format(RequestURL, LatestKey), Environment.CurrentDirectory + "/latestCaptcha.jpg"); } try { recaptchaBox.Image = Image.FromFile(Environment.CurrentDirectory + "/latestCaptcha.jpg"); } catch (Exception ex) { recaptchaBox.Image = recaptchaBox.ErrorImage; MessageBox.Show(ex.Message, this.Text + " - Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } </code></pre> <p><strong>ALL</strong> controls, with exception to the buttons ending with 'TabBtn' and the panels, are in the panel I'm trying to hide.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload