Click here to Skip to main content
15,890,282 members
Home / Discussions / C#
   

C#

 
QuestionHow to get file path Using Process id Pin
Joe Rozario6-Oct-09 17:28
Joe Rozario6-Oct-09 17:28 
AnswerRe: How to get file path Using Process id Pin
Christian Graus6-Oct-09 18:03
protectorChristian Graus6-Oct-09 18:03 
GeneralRe: How to get file path Using Process id Pin
Joe Rozario6-Oct-09 18:12
Joe Rozario6-Oct-09 18:12 
GeneralRe: How to get file path Using Process id Pin
Christian Graus6-Oct-09 18:17
protectorChristian Graus6-Oct-09 18:17 
GeneralRe: How to get file path Using Process id Pin
Joe Rozario6-Oct-09 18:28
Joe Rozario6-Oct-09 18:28 
GeneralRe: How to get file path Using Process id Pin
Christian Graus6-Oct-09 18:38
protectorChristian Graus6-Oct-09 18:38 
GeneralRe: How to get file path Using Process id Pin
Joe Rozario6-Oct-09 19:03
Joe Rozario6-Oct-09 19:03 
QuestionC# DataAdapter.Fill is ending load code? Pin
snayler06-Oct-09 15:40
snayler06-Oct-09 15:40 
gday all,

im having a problem with a C# application im developing.

the code is as follows.

...



namespace Keystore

{

public partial class FindKey : Form

{

public FindKey()

{

InitializeComponent();

}



DataSet ds;

System.Data.SqlClient.SqlDataAdapter da;

DatabaseHelper dataHelper = new DatabaseHelper();

DataRow dRow;



private void FindKey_Load(object sender, EventArgs e)

{

string sql = "SELECT * FROM Key";

string name = "AllKeys";

da = dataHelper.getAdapter(sql, name);

ds = dataHelper.getDataSet();



refreshList(1);

fillcboProvider();

fillcboProduct();



}



...



...



namespace Keystore

{



class DatabaseHelper

{

System.Data.SqlClient.SqlConnection con;

DataSet ds;

System.Data.SqlClient.SqlDataAdapter da;



public DatabaseHelper()

{

con = new System.Data.SqlClient.SqlConnection();

con.ConnectionString = "Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\KeyStore.mdf;Integrated Security=True;User Instance=True";

ds = new DataSet();

}



public System.Data.SqlClient.SqlDataAdapter getAdapter(String sql, String name)

{

da = new System.Data.SqlClient.SqlDataAdapter(sql, con);

da.Fill(ds, name); *** Code 'finishes' the load after here ***

return da;

}



...


The code seems to be ending the "load" phase at the marked line (marked with ***)

theres no error message, the program doesn't hang or anything... It just seems to be stopping the load there and displaying my form without any data in it.

Has anyone had this problem before? Can anyone help me fix it?

Also, can anyone tell me if the MSDN forums are down? i can't get to them for some reason...

Cheers in advance!
AnswerRe: C# DataAdapter.Fill is ending load code? Pin
Paulo Zemek6-Oct-09 16:15
mvaPaulo Zemek6-Oct-09 16:15 
GeneralRe: C# DataAdapter.Fill is ending load code? Pin
snayler06-Oct-09 16:34
snayler06-Oct-09 16:34 
GeneralRe: C# DataAdapter.Fill is ending load code? Pin
Paulo Zemek7-Oct-09 15:12
mvaPaulo Zemek7-Oct-09 15:12 
QuestionDevelop IT helpdesk Pin
mirianakoi6-Oct-09 14:18
mirianakoi6-Oct-09 14:18 
AnswerRe: Develop IT helpdesk Pin
EliottA6-Oct-09 14:26
EliottA6-Oct-09 14:26 
GeneralRe: Develop IT helpdesk Pin
mirianakoi6-Oct-09 17:15
mirianakoi6-Oct-09 17:15 
AnswerRepost !!! Pin
Christian Graus6-Oct-09 14:38
protectorChristian Graus6-Oct-09 14:38 
GeneralRe: Repost !!! Pin
EliottA6-Oct-09 14:50
EliottA6-Oct-09 14:50 
GeneralRe: Repost !!! Pin
Christian Graus6-Oct-09 14:55
protectorChristian Graus6-Oct-09 14:55 
GeneralRe: Repost !!! Pin
mirianakoi6-Oct-09 17:33
mirianakoi6-Oct-09 17:33 
GeneralRe: Repost !!! Pin
Christian Graus6-Oct-09 18:10
protectorChristian Graus6-Oct-09 18:10 
GeneralRe: Repost !!! Pin
mirianakoi6-Oct-09 17:17
mirianakoi6-Oct-09 17:17 
GeneralRe: Repost !!! Pin
Christian Graus6-Oct-09 17:21
protectorChristian Graus6-Oct-09 17:21 
AnswerRe: Develop IT helpdesk Pin
Christian Graus6-Oct-09 15:08
protectorChristian Graus6-Oct-09 15:08 
AnswerRe: Develop IT helpdesk Pin
AndieDu6-Oct-09 17:50
AndieDu6-Oct-09 17:50 
AnswerRe: Develop IT helpdesk Pin
Dave Kreskowiak6-Oct-09 17:53
mveDave Kreskowiak6-Oct-09 17:53 
GeneralRe: Develop IT helpdesk Pin
Christian Graus6-Oct-09 18:02
protectorChristian Graus6-Oct-09 18:02 

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.