Click here to Skip to main content
15,881,248 members
Home / Discussions / C#
   

C#

 
QuestionIMultiValueConverter and IValueConverter Interface lagging (slowness) Pin
cpquest1-Feb-14 2:33
cpquest1-Feb-14 2:33 
AnswerRe: IMultiValueConverter and IValueConverter Interface lagging (slowness) Pin
Eddy Vluggen1-Feb-14 7:00
professionalEddy Vluggen1-Feb-14 7:00 
GeneralRe: IMultiValueConverter and IValueConverter Interface lagging (slowness) Pin
cpquest2-Feb-14 16:31
cpquest2-Feb-14 16:31 
GeneralRe: IMultiValueConverter and IValueConverter Interface lagging (slowness) Pin
Eddy Vluggen2-Feb-14 22:38
professionalEddy Vluggen2-Feb-14 22:38 
AnswerRe: IMultiValueConverter and IValueConverter Interface lagging (slowness) Pin
Pete O'Hanlon2-Feb-14 23:50
mvePete O'Hanlon2-Feb-14 23:50 
QuestionConsuming sqlcompact connection with using statement Pin
teknolog1231-Feb-14 2:21
teknolog1231-Feb-14 2:21 
AnswerRe: Consuming sqlcompact connection with using statement Pin
Eddy Vluggen1-Feb-14 6:52
professionalEddy Vluggen1-Feb-14 6:52 
GeneralRe: Consuming sqlcompact connection with using statement Pin
teknolog1231-Feb-14 23:56
teknolog1231-Feb-14 23:56 
thanks let me explain more. I just want to dispose sqceConnection, sqlceCommand, SqlCeCommandBuilder and sqlceAdapter as soon as I finish processing the data. for example does the below code dispose the objects in that manner? I think no but wanna make sure. (note: I didn't use sqladapter and commnadbuilder below to keep the code short on purpose)

public SqlCeConnection sqlSetCon()
        {
            SqlCeConnection sqlCon = new SqlCeConnection();   
            sqlCon.ConnectionString = Properties.Settings.Default.sqlConnStr;
            sqlCon.Open();
            return sqlCon;            
        }
        public DataTable returnDataTable(string selectString)
        {
            SqlCeDataAdapter sqlAdaptor = new SqlCeDataAdapter(selectString, sqlSetCon());
            SqlCeCommandBuilder sqlKomut = new SqlCeCommandBuilder(sqlAdaptor);
            DataTable dtTablo = new DataTable();
            sqlAdaptor.Fill(dtTablo);
            return dtTablo;
        }

        private void processList()
        {
           //does this using block dispose everything?
            using (DataTable dt = returnDataTable("Select * From Customers Order By Surname"))
            {
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    this.lblSurname.Text = dt.Rows[i]["surname"].ToString();
                }
            }
        }


modified 2-Feb-14 6:38am.

GeneralRe: Consuming sqlcompact connection with using statement Pin
Eddy Vluggen2-Feb-14 8:59
professionalEddy Vluggen2-Feb-14 8:59 
GeneralRe: Consuming sqlcompact connection with using statement Pin
teknolog1234-Feb-14 3:17
teknolog1234-Feb-14 3:17 
GeneralRe: Consuming sqlcompact connection with using statement Pin
Eddy Vluggen4-Feb-14 9:09
professionalEddy Vluggen4-Feb-14 9:09 
QuestionVS2012 Pin
Sandhya Bandar1-Feb-14 0:17
Sandhya Bandar1-Feb-14 0:17 
AnswerRe: VS2012 Pin
OriginalGriff1-Feb-14 0:45
mveOriginalGriff1-Feb-14 0:45 
GeneralRe: VS2012 Pin
Sandhya Bandar1-Feb-14 0:59
Sandhya Bandar1-Feb-14 0:59 
GeneralRe: VS2012 Pin
OriginalGriff1-Feb-14 1:07
mveOriginalGriff1-Feb-14 1:07 
AnswerRe: VS2012 Pin
BillWoodruff1-Feb-14 0:53
professionalBillWoodruff1-Feb-14 0:53 
GeneralRe: VS2012 Pin
Sandhya Bandar1-Feb-14 0:57
Sandhya Bandar1-Feb-14 0:57 
QuestionSqlDependency process... Pin
byerkan31-Jan-14 23:53
byerkan31-Jan-14 23:53 
AnswerRe: SqlDependency process... Pin
Eddy Vluggen1-Feb-14 6:45
professionalEddy Vluggen1-Feb-14 6:45 
QuestionHow to export extjs chart into pdf? Pin
Janu Kya Kar Rahi ho31-Jan-14 18:53
Janu Kya Kar Rahi ho31-Jan-14 18:53 
QuestionRe: How to export extjs chart into pdf? Pin
Richard MacCutchan31-Jan-14 22:16
mveRichard MacCutchan31-Jan-14 22:16 
QuestionHow do I keep a player from override another player's move by reclicking a button Pin
Member 1045350931-Jan-14 9:29
Member 1045350931-Jan-14 9:29 
AnswerRe: How do I keep a player from override another player's move by reclicking a button Pin
Dave Kreskowiak31-Jan-14 13:45
mveDave Kreskowiak31-Jan-14 13:45 
AnswerRe: How do I keep a player from override another player's move by reclicking a button Pin
agent_kruger31-Jan-14 23:13
professionalagent_kruger31-Jan-14 23:13 
JokeRe: How do I keep a player from override another player's move by reclicking a button Pin
Eddy Vluggen1-Feb-14 8:17
professionalEddy Vluggen1-Feb-14 8:17 

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.