python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to add System.Windows.Forms to C# project in VS 2019
I'm getting "The type or namespace name 'Forms' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)" from "using System.Windows.Forms;". Vario...
Nathan Dehnel
Votes: 0
Answers: 0
Partial specialization of typedef
I want to have a type which is either a typedef or a class. Thus, something like this
template< typename T > class A { };
template< typename T > using X< T, true > = T;
template< ...

tommsch
Votes: 0
Answers: 1
'ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.' - C#
The code:
private void btnSave_Click(object sender, EventArgs e)
{
using (con = new SqlConnection(connectionString))
{
SqlCommand c...

Richard Johnson
Votes: 0
Answers: 1
C++: using-statement of forward-declared class generates error C2371
//A.h
class A;
//A.cpp
#include A.h
class MyA {};
using A = MyA; // error C2371 'A' : redefinition; different basic types
https://ideone.com/Aifxy2
A lot of legacy code uses the class name A.
I wan...

RainingChain
Votes: 0
Answers: 1