Click here to Skip to main content
15,924,507 members
Home / Discussions / C#
   

C#

 
GeneralRe: Writing Dataset to XML corrupts XML file Pin
Reanalyse2-Dec-05 21:16
Reanalyse2-Dec-05 21:16 
QuestionPlease i want to know how to control Windows Audio in C# Pin
Kariem Soudy1-Dec-05 13:27
Kariem Soudy1-Dec-05 13:27 
AnswerRe: Please i want to know how to control Windows Audio in C# Pin
Christian Graus1-Dec-05 14:47
protectorChristian Graus1-Dec-05 14:47 
QuestionADO.NET: DataSet, DataGridView Pin
budidharma1-Dec-05 12:46
budidharma1-Dec-05 12:46 
AnswerRe: ADO.NET: DataSet, DataGridView Pin
Jared Parsons1-Dec-05 13:54
Jared Parsons1-Dec-05 13:54 
GeneralRe: ADO.NET: DataSet, DataGridView Pin
budidharma1-Dec-05 14:03
budidharma1-Dec-05 14:03 
GeneralRe: ADO.NET: DataSet, DataGridView Pin
Jared Parsons1-Dec-05 14:17
Jared Parsons1-Dec-05 14:17 
GeneralRe: ADO.NET: DataSet, DataGridView Pin
budidharma1-Dec-05 15:16
budidharma1-Dec-05 15:16 
Sure. I'm using VS 2005 rc3. The code was autogenerated by the IDE.
Here's the entire two files, most was autogenerated, excluding the stuff I posted in that first post.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using System.Data.OleDb;

namespace PTAnalyzer
{
public partial class PTAnalyzer : Form
{
// DATA ACCESS CODE
public OleDbConnection conn;
public OleDbDataAdapter dAdapter;
public DataSet dSet;
public string conString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=..\\..\\ptrack6.mdb";

public PTAnalyzer()
{
InitializeComponent();

// DATA ACCESS INITIALIZATION
try
{
conn = new OleDbConnection(conString);
dAdapter = new OleDbDataAdapter("SELECT * FROM game WHERE player_id = 11", conn);
dAdapter.Fill(dataSetPT, "game");
}
catch (Exception ex)
{
MessageBox.Show("Error : " + ex.Message);
} //try-catch

}
}
}


namespace PTAnalyzer
{
partial class PTAnalyzer
{
///
/// Required designer variable.
///

private System.ComponentModel.IContainer components = null;

///
/// Clean up any resources being used.
///

/// <param name="disposing" />true if managed resources should be disposed; otherwise, false.
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}

#region Windows Form Designer generated code

///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///

private void InitializeComponent()
{
this.dataSetPT = new System.Data.DataSet();
this.dataGridViewResults = new System.Windows.Forms.DataGridView();
((System.ComponentModel.ISupportInitialize)(this.dataSetPT)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dataGridViewResults)).BeginInit();
this.SuspendLayout();
//
// dataSetPT
//
this.dataSetPT.DataSetName = "PTDataSet";
//
// dataGridViewResults
//
this.dataGridViewResults.AutoGenerateColumns = false;
this.dataGridViewResults.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridViewResults.DataSource = this.dataSetPT;
this.dataGridViewResults.Location = new System.Drawing.Point(12, 47);
this.dataGridViewResults.Name = "dataGridViewResults";
this.dataGridViewResults.Size = new System.Drawing.Size(654, 325);
this.dataGridViewResults.TabIndex = 0;
//
// PTAnalyzer
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(678, 384);
this.Controls.Add(this.dataGridViewResults);
this.Name = "PTAnalyzer";
this.Text = "PT Analyzer";
((System.ComponentModel.ISupportInitialize)(this.dataSetPT)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dataGridViewResults)).EndInit();
this.ResumeLayout(false);

}

#endregion

private System.Data.DataSet dataSetPT;
private System.Windows.Forms.DataGridView dataGridViewResults;
}
}
GeneralRe: ADO.NET: DataSet, DataGridView Pin
budidharma1-Dec-05 15:24
budidharma1-Dec-05 15:24 
GeneralRe: ADO.NET: DataSet, DataGridView Pin
budidharma1-Dec-05 17:06
budidharma1-Dec-05 17:06 
QuestionHelp in Windows Services Via C# Pin
Kariem Soudy1-Dec-05 12:44
Kariem Soudy1-Dec-05 12:44 
AnswerRe: Help in Windows Services Via C# Pin
KaptinKrunch1-Dec-05 18:02
KaptinKrunch1-Dec-05 18:02 
QuestionReferencing form from user control Pin
Dave Hurt1-Dec-05 10:58
Dave Hurt1-Dec-05 10:58 
AnswerRe: Referencing form from user control Pin
Joshua Quick1-Dec-05 12:02
Joshua Quick1-Dec-05 12:02 
GeneralRe: Referencing form from user control Pin
Dave Hurt2-Dec-05 3:49
Dave Hurt2-Dec-05 3:49 
GeneralRe: Referencing form from user control Pin
Joshua Quick2-Dec-05 7:29
Joshua Quick2-Dec-05 7:29 
QuestionFiguring out Installation Location Pin
timothymfox1-Dec-05 10:22
timothymfox1-Dec-05 10:22 
AnswerRe: Figuring out Installation Location Pin
Jared Parsons1-Dec-05 10:31
Jared Parsons1-Dec-05 10:31 
Questiontrouble in loading large xml file Pin
zhujp981-Dec-05 8:18
zhujp981-Dec-05 8:18 
AnswerRe: trouble in loading large xml file Pin
Rob Philpott1-Dec-05 9:10
Rob Philpott1-Dec-05 9:10 
QuestionTips for creating a custom message inbox Pin
mihansen1-Dec-05 7:45
mihansen1-Dec-05 7:45 
QuestionSleep or Wait functions in ASP.NET Pin
TheMajorRager1-Dec-05 7:02
TheMajorRager1-Dec-05 7:02 
AnswerRe: Sleep or Wait functions in ASP.NET Pin
Jared Parsons1-Dec-05 7:46
Jared Parsons1-Dec-05 7:46 
AnswerRe: Sleep or Wait functions in ASP.NET Pin
Colin Angus Mackay1-Dec-05 8:28
Colin Angus Mackay1-Dec-05 8:28 
AnswerRe: Sleep or Wait functions in ASP.NET Pin
Dave Kreskowiak1-Dec-05 10:54
mveDave Kreskowiak1-Dec-05 10:54 

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.