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...
User Profile
Collapse
-
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();
-
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 -
I test your code. There are errors. "Type Expected" when I point the Cursor to key word "This".
thanks...Leave a comment:
-
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?Leave a comment:
-
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 -
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...Leave a comment:
-
Hi InsertAlias:
In fact I had these 3 line of Code
- da.InsertComman d = bldr.GetInsertC ommand();
- da.UpdateComman d = bldr.GetUpdateC ommand();
- da.DeleteComman d = bldr.GetDeleteC ommand();
I google the ConnectionStrin gSettings,
I'm still try to understand this...Leave a comment:
-
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?Leave a comment:
-
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....?Leave a comment:
-
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";
Leave a comment:
-
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();[*][/]
Leave a comment:
-
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...Leave a comment:
-
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
-
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?Leave a comment:
-
One more condition is that The Server has to continously scan for any new connection and new incoming request..Leave a comment:
-
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?Leave a comment:
-
Hi:
Are you suggesting to have multiple server running on multiple thread?
Is this viable?
ThanksLeave a comment:
-
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-------------->... -
How to do this ? I got error using your code
Form1 form1;
Initialize(Form 1 form1)
{
this.form1 = form1;
}...Leave a comment:
No activity results to display
Show More
Leave a comment: