User Profile

Collapse

Profile Sidebar

Collapse
Jetean
Jetean
Last Activity: Apr 26 '09, 05:29 AM
Joined: Feb 11 '08
Location: M'sia
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Jetean
    replied to Form.ShowDialog
    It is still the same. I tried both before I posted this. Have you tried At Form2:
    create new timer (System.Timer) and performed counting and output with Console.Writeli ne, then close Form2 (Open Form2 from Form 1 either with Form2.ShowDialo g or Show()), the Timer event is still working even Form2 is disposed! (I thought object after disposed should be collected by GC and vanishded since it already out of scope?)

    Now if replace...
    See more | Go to post

    Leave a comment:


  • Jetean
    started a topic Form.ShowDialog

    Form.ShowDialog

    Hi:
    I search through this forums and google around about this Form.ShowDialog ():
    I'm unable to make the event at Child Form stop running and It looks like the child Form is still "Alive":

    Here:
    At Form1
    Code:
            private void button1_Click(object sender, EventArgs e)
            {
    
                Form2 frm2 =new form2();
                frm2.ShowDialog();
    ...
    See more | Go to post

  • Jetean
    started a topic Multiple connection to multiple servers

    Multiple connection to multiple servers

    Hi:
    How to make connections to multiple different Socket Servers Asyncronously?

    What I looking at is to have a program (C#) that log into different servers. I know to to code 1 client to 1 server. I would like to create a class that I can re use (well because with class I can create multiple object), Does anybody code it before?

    Thanks
    See more | Go to post

  • Jetean
    replied to List<T> Extension Method in C#2.0
    I test your code. There are errors. "Type Expected" when I point the Cursor to key word "This".

    thanks...
    See more | Go to post

    Leave a comment:


  • Jetean
    replied to List<T> Extension Method in C#2.0
    vekipeki:
    I'm sorry. What I meant is I saw the Extension method, but in Framework 3.0 or 3.5. (you can check at MSDN under List<T> Extended Method).

    My Question : Can I use Framework 3.0 or Framework 3.5 with C#2.0? Or I have to upgrade to C#3.0 in order to use the Extension?
    See more | Go to post

    Leave a comment:


  • Jetean
    started a topic List<T> Extension Method in C#2.0

    List<T> Extension Method in C#2.0

    Hi:
    I was wondering how to use this Extension method ?

    Example double average = myGenericIntege rList.Average() ;

    This only available in Extension Method (I think with Framework3.0 or 3.5, but with C#3.0???)


    Thanks
    See more | Go to post

  • Jetean
    replied to Syntax Error in INSERT INTO statement
    Actually You don't need to assign the update or insert commnad. I read it some where in MSDN. I can't recall where.

    My code work (C#), my problem occured with the connection string and the actual database (debug or release).

    Try this: Create your DataAdapter and Command Builder earlier in your code before you fill the Dataset. Go and Check where is the Database located. You might look at the wrong database (depending...
    See more | Go to post

    Leave a comment:


  • Jetean
    replied to Syntax Error in INSERT INTO statement
    Hi InsertAlias:
    In fact I had these 3 line of Code

    1. da.InsertComman d = bldr.GetInsertC ommand();
    2. da.UpdateComman d = bldr.GetUpdateC ommand();
    3. da.DeleteComman d = bldr.GetDeleteC ommand();

    I google the ConnectionStrin gSettings,



    I'm still try to understand this...
    See more | Go to post

    Leave a comment:


  • Jetean
    replied to Syntax Error in INSERT INTO statement
    Ok. ConnectionStrin gSettings met = ConfigurationMa nager.Connectio nStrings["Met"];
    I'm not able to insert and update the Database. Thinking if the OLEDBCommandBui lder is having problem. I rewrite my connectionStrin g, Well I had my problem solved, which raised another question mark for me, that is Why is ConnectionStrin gSettings not working?
    See more | Go to post

    Leave a comment:


  • Jetean
    replied to Syntax Error in INSERT INTO statement
    ACTUAL errors: As the Title

    Syntax Error In Insert into Statement
    .


    Funny?

    The app.Configurati on was generated when I created it. Am I missing something?

    I try using this

    Properties.Sett ings.Default.Me tConnectionStri ng;

    Well It work also.

    So, what is my problem?

    Funny....?
    See more | Go to post

    Leave a comment:


  • Jetean
    replied to Syntax Error in INSERT INTO statement
    Code:
    
                OleDbDataAdapter da = new OleDbDataAdapter("Select * From DataTable", connection);
    
                
                OleDbCommandBuilder bldr = new OleDbCommandBuilder(da);
    
                da.Fill(mDataset, "DataTable");
               
                
                dr = mDataset.Tables["DataTable"].NewRow();
                dr["No_1"] = "55";
    ...
    See more | Go to post

    Leave a comment:


  • Jetean
    replied to Syntax Error in INSERT INTO statement
    Hi Platter:
    I "found out" where is my error came from.
    If I changed "ConnectionStri ngSettings met = ConfigurationMa nager.Connectio nStrings["Met"];"

    to this: string connectionStrin g= path of the database, instead of the above. The Syntax error just disappeared

    Code:
    [LIST=1][*]             OleDbCommandBuilder kk = new OleDbCommandBuilder(dAdapter);[*]          //   kk.GetInsertCommand();[*][/]
    ...
    See more | Go to post

    Leave a comment:


  • Jetean
    replied to Syntax Error in INSERT INTO statement
    What do you meant by "But you never do anything with the values. Those functions return an OleDBCommand that you then assign to the UpdateCommand and InsertCommand properties."

    I'm new to this, I google around the web, I could not get any satisfactory answer to my headache...

    Can you provide me some code or example on what you said?

    Thanks...
    See more | Go to post

    Leave a comment:


  • Jetean
    started a topic Syntax Error in INSERT INTO statement

    Syntax Error in INSERT INTO statement

    Code:
     private void button4_Click(object sender, EventArgs e)
            {
              
                ConnectionStringSettings met = ConfigurationManager.ConnectionStrings["Met"];
                OleDbConnection connection = new OleDbConnection(met.ConnectionString);
    
                OleDbCommand cmd = connection.CreateCommand();
                cmd.CommandType = CommandType.Text;
                cmd.CommandText = "Select
    ...
    See more | Go to post

  • Jetean
    replied to multi client to server in C#
    mldisibio:
    I'm looking at Asynchronous TCP Server. I'm not quite sure how to implement it. With many Clients sending data back to Server, Will one Client Keep Connected to the server preventing access from other Clients?
    See more | Go to post

    Leave a comment:


  • Jetean
    replied to multi client to server in C#
    One more condition is that The Server has to continously scan for any new connection and new incoming request..
    See more | Go to post

    Leave a comment:


  • Jetean
    replied to multi client to server in C#
    OK. I'm using Socket. The application is to serve multiple PCs within the same office. 1 server and multiple clients. I think i can handle the client side but I'm not sure about the Server side program. How to do it?
    See more | Go to post

    Leave a comment:


  • Jetean
    replied to multi client to server in C#
    Hi:

    Are you suggesting to have multiple server running on multiple thread?

    Is this viable?

    Thanks
    See more | Go to post

    Leave a comment:


  • Jetean
    started a topic multi client to server in C#

    multi client to server in C#

    Hi guys:
    This topic might sound very familiar to some of you, can some one shed some light or point me to some web link for some sample code or good guide?

    I'm able to code for a simple client to server ( one to one) but not this multi client scenario.

    The application that i want to establish is simple:

    clientx.1--------------> send a request to server for a job
    clientx.2-------------->...
    See more | Go to post

  • Jetean
    replied to Hide and Show of Form in C#
    in .NET
    How to do this ? I got error using your code
    Form1 form1;

    Initialize(Form 1 form1)
    {
    this.form1 = form1;
    }...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...