I have a large windows forms program with a lot of controls. The first window I see when I run it is the Login screen, it only has a combobox, button, textbox and a few labels. When I press the button it loads Form1. Form1, on load automatically creates an instance of Game, which it minimizes and embeds Game into Form1 using this code:  Game.Location = new Point(146, 6); Game.TopLevel = false; Game.Visible = true; Game.BringToFront(); Game.FormBorderStyle = FormBorderStyle.None; Controls.Add(Game);   I get the      "Error creating window handle"   error on this line (for some reason it's not on the window create line):  this.timer.Interval = 10;   Please help, others have said that this is to do with too many windows, but there I've tried deleting windows in project and I get the same error.
We are seeing this error in a Winform application.  Can anyone help on why you would see this error, and more importantly how to fix it or avoid it from happening.   System.ComponentModel.Win32Exception: Error creating window handle.    at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)    at System.Windows.Forms.Control.CreateHandle()    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)    at System.Windows.Forms.Control.CreateControl()    at System.Windows.Forms.Control.OnVisibleChanged(EventArgs e)    at System.Windows.Forms.ButtonBase.OnVisibleChanged(EventArgs e)
Meta sites in "Your Communities" display different reputation geometry package - paperwidth and paperheight aren't accurate recognize this simple example:  \documentclass[]{article} \usepackage[paperwidth=612.0pt, paperheight=792.0pt]{geometry}  \begin{document} Hello World \end{document}   I compiled it with pdflatex. Additionally I wrote this small Java-Programm (using the iText library):  PdfReader reader = new PdfReader("example.pdf"); Rectangle psize = reader.getPageSize(1); System.out.println(psize.getHeight()); System.out.println(psize.getWidth());   The result:  Height: 789.041 Width: 609.714   Why is the paperwidth and paperheight different to the tex? Do individual rays of light lose energy via the inverse square law? Best way to create an system of equations environment? Open CSV File with Different Delimiter Why is a boolean value in JTable showing as true/false instead of a checkbox? Functions Which are non differentiable on a Given Set. Capacitor Voltage Rating How to find the voltage rating of a capacitor after knowing the capacitance value.  Example, For a power supply, If the input voltage is 60V and output is 5V. The input capacitor(C1) value is 100uf and output capacitor value is 1000uf.  What is the voltage rating for both the capacitors and how to find them. Understanding how references and labels work Prove that $\sum^{n}_{r=0}(-1)^r\cdot \large\frac{\binom{n}{r}}{\binom{r+3}{r}} = \frac{3!}{2(n+3)}$ Prove that $\displaystyle \sum^{n}_{r=0}(-1)^r\cdot \large\frac{\binom{n}{r}}{\binom{r+3}{r}} = \frac{3!}{2(n+3)}$   $\bf{My\; Try::}$ We can write $$\frac{\binom{n}{r}}{\binom{r+3}{r}} = \frac{n!}{r!\times (n-r)!}\times \frac{r!\times 3!}{(r+3)!} = \frac{3!\times n!}{(n-r)!\times (r+3)!}$$  So our sum is $$ 3!\sum^{n}_{r=0}(-1)^r\frac{n!}{(n-r)!\times (r+3)!} = \frac{3!}{(n+1)(n+2)(n+3)}\sum^{n}_{r=0}(-1)^r\frac{(n+3)!}{(r+3)!\times (n-r)!}$$  So we get Sum $$ \frac{3!}{(n+1)(n+2)(n+3)}\sum^{n}_{r=0}(-1)^r\binom{n+3}{r+3} = -\frac{3!}{(n+1)(n+2)}\sum^{n}_{r=0}(-1)^{r+3}\binom{n+3}{r+3}$$  $$  = -\frac{3!}{(n+1)(n+2)(n+3)}\left[-\binom{n+3}{3}+\binom{n+3}{4}-\binom{n+3}{5}--.......+(-1)^{n+3}\binom{n+3}{n+3}\right]$$  $$=-\frac{3!}{(n+1)(n+2)(n+3)}\left[\binom{n+3}{0}-\binom{n+3}{1}+\binom{n+3}{2}-\binom{n+3}{3}+\binom{n+3}{4}-\binom{n+3}{5}--.......+(-1)^{n+3}\binom{n+3}{n+3}\right]+\frac{3!}{(n+1)(n+2)(n+3)}\left[\binom{n+3}{0}-\binom{n+3}{1}+\binom{n+3}{2}\right]$$  So we get $$ = \frac{3!}{(n+1)(n+2)(n+3)}\left[1-(n+3)+\frac{(n+3)(n+2)}{2}\right] = \frac{3!}{(n+1)(n+2)}\times \frac{n^2+3n+2}{2} = \frac{3!}{(n+1)(n+2)(n+3)}\times \frac{(n+1)(n+2)}{2} = \frac{3!}{2(n+3)}$$  Can we prove it Using Combinatorial way,bcz above method is very lengthy  If yes then plz explain here  Thanks How do I handle partially correct edits in the Suggested Edits review queue? Contradicting Instructions While going through the suggested edits review queue, one sometimes stumbles upon partially useful edits like . Trying to follow the instructions listed in the descriptions doesn't lead to a conclusive answer. Considering our example:   Approve edits that clearly improve the post ↳ No, not *clearly* Improve Edit when you can make additional improvements to the post ↳ I most definitively can Reject and Edit to replace an ineffective edit with your own substantive changes ↳ It is ineffective in the sense that it made the post worse overall (imho) Reject edits that fail to improve the post or that make it worse ↳ Like the last option: yes Skip if you are not sure and want to go to the next suggested edit ↳ Well, yes. But that is really why I am here, asking this question   Reasoning about the remaining Choices This leaves us with three choices: Improve Edit, Reject and Edit and Reject (the last one slightly modified):  Improve Edit  + Acknowledges that some things in the edit where correct - Learning effect for author might vanish, as the improvement might get overlooked - Can't leave a custom message for edit author (except in comments, which pollutes the thread) - Doesn't trigger the system which &quot;punishes&quot; users who repeatedly have their edits rejected - Rewards the edit author with reputation for a poor edit   Reject and Edit  + Clearly shows the author that there were problems with the edit - Still can't leave a custom message explaining the problems of the original post. - One has to partially redo parts of the edit that have just been rejected, which might feel unjust to the original editor   Reject with a custom note and come back immediately to make a good Edit  + Clearly shows the author that there were problems with the edit + Possibility to leave an explanation as to what was wrong with the edit - One still has to redo parts of the edit that has just been rejected - Seems to be a weird workaround for Reject and Edit   Something else?   Each of the three options come with their distinct advantages/disadvantages making it non trivial to decide which one to pick.  Or does the answer simply depend on the quality of the edit? Like:  Improve Edit for subjectively slightly positive edits Reject and Edit (Or Reject and Edit) for subjectively slightly negative edits I'm getting pretty close to the reputation where I can start to edit others' posts, and I'm wondering what the etiquette for when (and when not) to do so. I figure that I should edit in the following circumstances:  Grammatical or spelling errors. Clarification where the meaning is not changed. For instance if the title does not describe the question very well. Where the user has made a very minor mistake that doesn't justify a full post to clarify. To add related resources or links that will help someone answer the post, or provide context  Before the commenting feature was added, I noticed that some moderators edit posts in order to insert a reply or extension to the post. I feel this isn't good etiquette (but I could be wrong) because I don't know what to do with their changes when I come to re-edit or respond. I also feel that I should be very careful not to change the meaning of any question or answer, even if that meaning is misguided. What other rules would be best practice?  Signatures and fluff are discouraged and are fair game to be removed.  See, for example, this post by  and this post by  and also see .  Also see Jeff Atwood's response in the comments to Constants and compiler optimization in C++ I've read all the advice on const-correctness in C++ and that it is important (in part) because it helps the compiler to optimize your code. What I've never seen is a good explanation on how the compiler uses this information to optimize the code, not even the good books go on explaining what happens behind the curtains.    For example, how does the compiler optimize a method that is declared const vs one that isn't but should be. What happens when you introduce mutable variables? Do they affect these optimizations of const methods? I'm completely new and lost in Ubuntu 12.04, I'm having trouble navigating to my Sublime folder which I know is in my /opt folder. Yet I've tried to no avail to navigate into it via Terminal window. The directory is colored in blue, no idea what this means...but I am able to access the folder using the GUI explorer...?  k@k-Ubuntu:~$ cd /opt k@k-Ubuntu:/opt$ ls Sublime Text 2 k@k-Ubuntu:/opt$ cd Sublime Text 2 bash: cd: Sublime: No such file or directory k@k-Ubuntu:/opt$ cd /Sublime Text 2 bash: cd: /Sublime: No such file or directory How to concatenate items in a list to a single string? Broken URL for data.stackexchange.com help page When using data.stackexchange.com I fail to remember if as [post link] is the correct alias to get the url for the post. Luckily the site has an  link. Unfortunately it is now broken. Can this be fixed? How to prevent updating of a specific package? So, floor is a function that converts a real number to an integer. It rounds down. This makes sense; however, what about complex numbers? I know that depending on the number, it can be split linearly. However, I do not know what $\lfloor i\rfloor$ equals. Is there a clearly defined definition of $\lfloor i\rfloor$? Eigenvalues of a matrix whose square equals its transpose Let $A$ be a $n\times n$ matrix with $A^2=A^t$. Show that every real eigen value of $A$ is either $ 0$ or $1$ Remove all content using pure JS