Click here to Skip to main content
15,899,026 members
Home / Discussions / C#
   

C#

 
GeneralGrid problem Pin
babeng3-Nov-04 0:17
babeng3-Nov-04 0:17 
GeneralRe: Grid problem Pin
Alex Korchemniy3-Nov-04 7:58
Alex Korchemniy3-Nov-04 7:58 
GeneralRe: Grid problem Pin
Huseyin Altindag4-Nov-04 1:28
Huseyin Altindag4-Nov-04 1:28 
Generaldatagrid problem Pin
babeng3-Nov-04 0:14
babeng3-Nov-04 0:14 
GeneralMDI headscratcher Pin
m0nkeybot2-Nov-04 23:35
m0nkeybot2-Nov-04 23:35 
GeneralDate Time Picker Control Pin
manoj_kr742-Nov-04 23:31
manoj_kr742-Nov-04 23:31 
GeneralRe: Date Time Picker Control Pin
Alex Korchemniy3-Nov-04 7:50
Alex Korchemniy3-Nov-04 7:50 
Generalclass problem!! Pin
xiaowenjie2-Nov-04 21:56
xiaowenjie2-Nov-04 21:56 
hi, i've got this window form. i need to pass this value string d into another class to do some dbconnection..
<br />
public class Form1 : System.Windows.Forms.Form<br />
{<br />
	<br />
public string d = "20"; <br />
.<br />
.<br />
.<br />
.<br />
<br />
private void testing()<br />
{<br />
<br />
dbConnection dbcon = new dbConnection();<br />
dbcon.Connection()<br />
<br />
}<br />
}//end of class Form1<br />
<br />
public class dbConnection <br />
{<br />
public OleDbConnection conn;<br />
public string SQL ; <br />
public OleDbCommand cmd;<br />
public OleDbDataAdapter adpt;   <br />
public DataSet ds; <br />
<br />
public dbConnection()<br />
{<br />
<br />
conn = new System.Data.OleDb.OleDbConnection();<br />
conn.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;" +<br />
"Data source = "+Application.StartupPath +@"\db.mdb";<br />
		<br />
}<br />
<br />
public void Connection()<br />
{<br />
<br />
Form1 ccF = new Form1();<br />
	<br />
SQL = "SELECT * FROM Table WHERE ID <='" + (ccF.d)  + "'"; <br />
cmd = new System.Data.OleDb.OleDbCommand (SQL, conn);<br />
adpt = new System.Data.OleDb.OleDbDataAdapter(cmd);   <br />
ds = new System.Data.DataSet(); <br />
adpt.Fill(ds,"Table ");<br />
<br />
}<br />
<br />
}//end of class dbConnection<br />


my problem is that it can't read ccF.d.. sorry im kinda bad in using class..

Chris
GeneralRe: class problem!! Pin
Stefan Troschuetz2-Nov-04 22:33
Stefan Troschuetz2-Nov-04 22:33 
GeneralRe: class problem!! Pin
Ketty Avashia3-Nov-04 8:16
Ketty Avashia3-Nov-04 8:16 
GeneralDistibute My Exe Pin
amalatsliit2-Nov-04 19:21
amalatsliit2-Nov-04 19:21 
GeneralRe: Distibute My Exe Pin
Alex Korchemniy3-Nov-04 7:42
Alex Korchemniy3-Nov-04 7:42 
GeneralAdo.net Client Application may not trap SQL Server Error Messages When a Stored Procedure is Used in the SqlDataAdapter Pin
Sanjay Rastogi2-Nov-04 19:04
Sanjay Rastogi2-Nov-04 19:04 
GeneralRe: Ado.net Client Application may not trap SQL Server Error Messages When a Stored Procedure is Used in the SqlDataAdapter Pin
Dave Kreskowiak3-Nov-04 3:43
mveDave Kreskowiak3-Nov-04 3:43 
GeneralProgrammatically Adding Items Pin
eDip2-Nov-04 18:45
eDip2-Nov-04 18:45 
GeneralRe: Programmatically Adding Items Pin
Ketty Avashia3-Nov-04 8:21
Ketty Avashia3-Nov-04 8:21 
GeneralUrgent: How to pass C# variable to HTML code Pin
Jug-Head2-Nov-04 12:39
Jug-Head2-Nov-04 12:39 
GeneralRe: Urgent: How to pass C# variable to HTML code Pin
Colin Angus Mackay2-Nov-04 23:37
Colin Angus Mackay2-Nov-04 23:37 
GeneralRe: Urgent: How to pass C# variable to HTML code Pin
Stefan Troschuetz3-Nov-04 0:09
Stefan Troschuetz3-Nov-04 0:09 
GeneralQuestion about music Pin
tom_dx2-Nov-04 11:55
tom_dx2-Nov-04 11:55 
GeneralRe: Question about music Pin
Dave Kreskowiak3-Nov-04 3:39
mveDave Kreskowiak3-Nov-04 3:39 
GeneralRe: Question about music Pin
tom_dx3-Nov-04 12:17
tom_dx3-Nov-04 12:17 
GeneralNetwork synchronization of serialized files Pin
jeweladdict2-Nov-04 11:38
jeweladdict2-Nov-04 11:38 
GeneralHelp simple string passing :( Pin
BambooMoon2-Nov-04 10:18
BambooMoon2-Nov-04 10:18 
GeneralRe: Help simple string passing :( Pin
tom_dx2-Nov-04 11:57
tom_dx2-Nov-04 11:57 

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.