Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Using SQLite Gives Me This Error

$
0
0

Hi I am using SQLite in a project of mine but it gives me the following error "... is a method but is used like a type, this is the code that I have.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Data.SQLite;

namespace TimeZoneDesktopApp
{
    public partial class FormNewImportTextFile : Form
    {
        public FormNewImportTextFile()
        {
            InitializeComponent();
            comboBoxImportData.SelectedIndex = 0;
        }

        private void btnImportSetsBrowse_Click(object sender, EventArgs e)
        {

//function body

        }

        SQLiteConnection sqlc = new SQLiteConnection.CreateFile("database1"); //*** The error occurs on this line

    }
}



Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>