Click here to Skip to main content
15,901,505 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to allow a user to type only two digits after a decimal point in typed Pin
Christian Graus8-Nov-06 15:06
protectorChristian Graus8-Nov-06 15:06 
QuestionNeed help capturing the context menu Pin
erikkl20008-Nov-06 14:10
erikkl20008-Nov-06 14:10 
QuestionStrange behavior with ArrayList remove [modified] Pin
malharone8-Nov-06 13:50
malharone8-Nov-06 13:50 
AnswerRe: Strange behavior with ArrayList remove Pin
Guffa8-Nov-06 19:26
Guffa8-Nov-06 19:26 
GeneralRe: Strange behavior with ArrayList remove Pin
malharone9-Nov-06 7:21
malharone9-Nov-06 7:21 
Questionenumerate the list of services in C# Pin
ke3p_up8-Nov-06 13:45
ke3p_up8-Nov-06 13:45 
QuestionHow to clear the check mark on checklistbox Pin
VN9808-Nov-06 13:37
VN9808-Nov-06 13:37 
Questionplease help me in this error Pin
arjunsasikumar8-Nov-06 11:06
arjunsasikumar8-Nov-06 11:06 
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.OleDb;

namespace WindowsApplication4
{
public partial class Form1 : Form
{
//private System.Windows.Forms.TextBox textBox1;
private System.Data.DataSet MODEL_1DataSet;
private System.Data.OleDb.OleDbDataAdapter oleDbDataAdapter1;
//private System.Data.OleDb.OleDbCommand selectcommand;
//private System.Data.OleDb.OleDbCommand insertcommand;
//private System.Data.OleDb.OleDbCommand updatecommand;
//private System.Data.OleDb.OleDbCommand deletecommand;
private System.Data.OleDb.OleDbConnection connection1;
//private System.ComponentModel.Container components = null;




public Form1()
{
InitializeComponent();
//using
//(System.Data.OleDb.OleDbConnection connection1 = new System.Data.OleDb.OleDbConnection())
//{
// The insertSQL string contains a SQL statement that
// inserts a new row in the source table.
//OleDbCommand command = new OleDbCommand(insertSQL);

// Set the Connection to the new OleDbConnection.
// command.Connection = connection1;

// Open the connection and execute the insert command.
//try
//{
connection1.Open();
//command.ExecuteNonQuery();
// }
//catch (Exception ex)
//{
// Console.WriteLine(ex.Message);
// }
// The connection is automatically closed when the
// code exits the using block.

}
}
private void Form1_Load(object sender, EventArgs e)
{

oleDbDataAdapter1.SelectCommand.CommandText = "SELECT Frame FROM Element Forces-Frames =" + comboBox1.AllowDrop;
oleDbDataAdapter1.Fill(modeL_1DataSet1);
Display(modeL_1DataSet1);
textBox6.Text += "\r\nsuccessful\r\n";

}
private void Display(DataSet dataset)
{
try
{
DataTable dataTable = dataset.Tables[ 0 ];
if (dataTable.Rows.Count != 0)
{
int record = (int)dataTable.Rows[0][0];
textBox1.Text = (string) dataTable.Rows[0][3];
textBox2.Text = ( string)dataTable.Rows[0][4];
textBox3.Text = (string)dataTable.Rows[0][5];
textBox4.Text = (string)dataTable.Rows[0][6];
}
else

textBox6.Text += "\r\nnot found\r\n";
}
catch (System.Data.OleDb.OleDbException oleexecption)
{
Console.WriteLine(oleexecption.StackTrace);
textBox5.Text += oleexecption.ToString();
}
}



}
}

this is my program i donno watzz wrong in this...
its giving errors
as

Error 1 The namespace 'WindowsApplication4' already contains a definition for '?' 71 53 WindowsApplication4
Error 2 The namespace 'WindowsApplication4' already contains a definition for '?' 71 56 WindowsApplication4
Error 3 The namespace 'WindowsApplication4' already contains a definition for '?' 72 60 WindowsApplication4
Error 4 The namespace 'WindowsApplication4' already contains a definition for '?' 72 63 WindowsApplication4
Error 5 The namespace 'WindowsApplication4' already contains a definition for '?' 73 60 WindowsApplication4
Error 6 The namespace 'WindowsApplication4' already contains a definition for '?' 73 63 WindowsApplication4
Error 7 The namespace 'WindowsApplication4' already contains a definition for '?' 74 59 WindowsApplication4
Error 8 The namespace 'WindowsApplication4' already contains a definition for '?' 74 62 WindowsApplication4
Error 9 The namespace 'WindowsApplication4' already contains a definition for '?' 75 59 WindowsApplication4
Error 10 The namespace 'WindowsApplication4' already contains a definition for '?' C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 75 62 WindowsApplication4
Error 11 Expected class, delegate, enum, interface, or struct C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 55 17 WindowsApplication4
Error 12 Expected class, delegate, enum, interface, or struct C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 64 17 WindowsApplication4
Error 13 Identifier expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 68 55 WindowsApplication4
Error 14 Identifier expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 71 54 WindowsApplication4
Error 15 Identifier expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 71 57 WindowsApplication4
Error 16 Identifier expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 72 61 WindowsApplication4
Error 17 Identifier expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 72 64 WindowsApplication4
Error 18 Identifier expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 73 61 WindowsApplication4
Error 19 Identifier expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 73 64 WindowsApplication4
Error 20 Identifier expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 74 60 WindowsApplication4
Error 21 Identifier expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 74 63 WindowsApplication4
Error 22 Identifier expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 75 60 WindowsApplication4
Error 23 Identifier expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 75 63 WindowsApplication4
Error 24 A namespace does not directly contain members such as fields or methods C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 77 17 WindowsApplication4
Error 25 Type or namespace definition, or end-of-file expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 80 13 WindowsApplication4

AnswerRe: please help me in this error Pin
Nougat H.8-Nov-06 11:39
Nougat H.8-Nov-06 11:39 
GeneralRe: please help me in this error Pin
arjunsasikumar8-Nov-06 19:04
arjunsasikumar8-Nov-06 19:04 
GeneralRe: please help me in this error Pin
arjunsasikumar8-Nov-06 19:06
arjunsasikumar8-Nov-06 19:06 
QuestionList views Pin
numbers1thru98-Nov-06 10:49
numbers1thru98-Nov-06 10:49 
AnswerRe: List views Pin
numbers1thru98-Nov-06 11:29
numbers1thru98-Nov-06 11:29 
QuestionTreeView Pin
numbers1thru98-Nov-06 10:31
numbers1thru98-Nov-06 10:31 
AnswerRe: TreeView Pin
Nougat H.8-Nov-06 11:44
Nougat H.8-Nov-06 11:44 
QuestionHow to detect laptop lid closed? Pin
vortex-58-Nov-06 8:40
vortex-58-Nov-06 8:40 
AnswerRe: How to detect laptop lid closed? Pin
Christian Graus8-Nov-06 8:53
protectorChristian Graus8-Nov-06 8:53 
AnswerRe: How to detect laptop lid closed? Pin
Drew Stainton9-Nov-06 13:55
Drew Stainton9-Nov-06 13:55 
GeneralRe: How to detect laptop lid closed? Pin
vortex-525-Nov-06 13:12
vortex-525-Nov-06 13:12 
Questionadding a dll Pin
barak1604878-Nov-06 8:18
barak1604878-Nov-06 8:18 
AnswerRe: adding a dll Pin
Nougat H.8-Nov-06 11:48
Nougat H.8-Nov-06 11:48 
QuestionIE toolbar Pin
Airtel_nokia8-Nov-06 8:01
Airtel_nokia8-Nov-06 8:01 
AnswerRe: IE toolbar Pin
Amar Chaudhary8-Nov-06 11:12
Amar Chaudhary8-Nov-06 11:12 
Questionhelp needed... Pin
arjunsasikumar8-Nov-06 7:48
arjunsasikumar8-Nov-06 7:48 
Questionadd a calculated record Pin
merac#8-Nov-06 7:32
merac#8-Nov-06 7:32 

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.