@Sven Groot: So, I work with industrial automation and I use a supervisory software. This software allows to use the ActiveX to connect with SQL Database. I would like to do a activeX in C Sharp using Visual Studio, in this ActiveX I would like to do a query in SQL database with filter for date (for example). I'm studying a lot of books about Visual Studio and CSharp but I don't know How can I do to create the activeX in Visual Studio. I was studying ADO.NET class because has a things about database connection.