Just a thought. What do you think about a sticky thread where we can assemble typical mistakes people make when start programming in .Net?
For example, literally every day a new person appears here having difficulties with:
then some other man with vb6 background who uses Val(TextBox1.TexT).
Another person starts using default form instances and is happy because it's actually working:
Code:
Form2.TextBox1.Text = "Hello!"
Another man comes with more serious problem showing this:
Code:
Dim sqlquery As String = "SELECT password FROM users WHERE username=" & txtName.Text
Yet another new member is having troubles with the 'Cross thread operation is not valid' when he attempts to access a usercontrol member from another thread, etc
What do you think, will this forum benefit from having such a thread? If so, then what other topics can you suggest to add?
UPDATE
I'll be posting a list of topics to include. The topics so far are:
You're doing it wrong if:
(explanations fill follow later)
... you're using the Int function with a textbox to obtain a numeric value;
... you're using the Val function;
... you're using form's names to refer to their instances (Form1, Form2, etc);
... you're constructing your SQL query right from TextBox values;
... you're directly accessing form's controls from a different thread;
... you're wondering if "2" + "2" results in "22" and not 4;
... you're using the Shell command;
Please, feel free to add/discuss.