Click here to Skip to main content
15,913,722 members
Home / Discussions / C#
   

C#

 
GeneralRe: MouseWheel events without focus Pin
Heath Stewart20-Aug-04 12:38
protectorHeath Stewart20-Aug-04 12:38 
GeneralRe: MouseWheel events without focus Pin
cnurse20-Aug-04 22:48
cnurse20-Aug-04 22:48 
GeneralRe: MouseWheel events without focus Pin
Heath Stewart23-Aug-04 7:12
protectorHeath Stewart23-Aug-04 7:12 
GeneralOpening a window in full screen mode Pin
Umair Ahmad khan20-Aug-04 1:15
Umair Ahmad khan20-Aug-04 1:15 
GeneralRe: Opening a window in full screen mode Pin
Gary Thom20-Aug-04 3:18
Gary Thom20-Aug-04 3:18 
GeneralRe: Opening a window in full screen mode Pin
Werdna20-Aug-04 13:12
Werdna20-Aug-04 13:12 
GeneralRe: Opening a window in full screen mode Pin
Nemanja Trifunovic20-Aug-04 3:32
Nemanja Trifunovic20-Aug-04 3:32 
Generalfilling the data table problem Pin
steve_rm20-Aug-04 0:46
steve_rm20-Aug-04 0:46 
Hello,

I have problem with filling the data table. The error is in the code below.

[code]
private void frmStudent_Load(object sender, System.EventArgs e)
{
//Setup the connection string, data adapter, and commanbuilder.
//Fill the data table
OleDbConnection m_cnADONetConnection = new OleDbConnection();
OleDbDataAdapter m_daDataAdapter = new OleDbDataAdapter();
DataTable m_dtStudents = new DataTable();

m_cnADONetConnection.ConnectionString =
@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\IBS Library System\LibrarySystem.mdb;Persist Security Info=False";

m_daDataAdapter = new OleDbDataAdapter("Select * student",m_cnADONetConnection);
OleDbCommandBuilder m_cbCommandBuilder = new OleDbCommandBuilder(m_daDataAdapter);

m_daDataAdapter.Fill(m_dtStudents);//Error - An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll

m_cnADONetConnection.Open();
}

[/code]

I would be happy if anyone knows how to solve this problem.

Many thanks in advance

Steve
GeneralRe: filling the data table problem Pin
kim3er20-Aug-04 2:44
kim3er20-Aug-04 2:44 
GeneralRe: filling the data table problem Pin
steve_rm20-Aug-04 3:26
steve_rm20-Aug-04 3:26 
GeneralIcon in Toolbox Pin
The Bug20-Aug-04 0:37
The Bug20-Aug-04 0:37 
GeneralRe: Icon in Toolbox Pin
Nick Parker20-Aug-04 8:02
protectorNick Parker20-Aug-04 8:02 
GeneralProblem verifying a signed XML document Pin
pelos20-Aug-04 0:06
pelos20-Aug-04 0:06 
GeneralGenerating Product Key... Pin
IrishSonic19-Aug-04 22:54
IrishSonic19-Aug-04 22:54 
GeneralRe: Generating Product Key... Pin
Aaron Eldreth20-Aug-04 3:31
Aaron Eldreth20-Aug-04 3:31 
GeneralRe: Generating Product Key... Pin
Brian Delahunty20-Aug-04 5:32
Brian Delahunty20-Aug-04 5:32 
GeneralRe: Generating Product Key... Pin
Anonymous21-Aug-04 15:31
Anonymous21-Aug-04 15:31 
QuestionHow to customize SaveFileDialog (?_?) Pin
sachinkalse19-Aug-04 22:09
sachinkalse19-Aug-04 22:09 
GeneralPosition in a StreamReader Pin
jochenz19-Aug-04 21:42
jochenz19-Aug-04 21:42 
GeneralRe: Position in a StreamReader Pin
Werdna20-Aug-04 13:18
Werdna20-Aug-04 13:18 
GeneralRe: Position in a StreamReader Pin
jochenz20-Aug-04 22:07
jochenz20-Aug-04 22:07 
GeneralEnterprise level database operatibility Pin
Salil Khedkar19-Aug-04 21:35
Salil Khedkar19-Aug-04 21:35 
QuestionWhat is the code that I can open the CD driver by? Pin
mhmo19-Aug-04 19:59
mhmo19-Aug-04 19:59 
AnswerRe: What is the code that I can open the CD driver by? Pin
Stefan Troschuetz20-Aug-04 2:50
Stefan Troschuetz20-Aug-04 2:50 
Generalfine tune form's paint event handler Pin
CNU19-Aug-04 19:21
CNU19-Aug-04 19:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.