|
What happens if you create a method on the mdi-parent that opens the edit form? By using this technique the two forms are opened the same way. If you still get the same behavior the problem must be related to how you have set up the two forms.
|
|
|
|
|
Christian Wikander wrote: What happens if you create a method on the mdi-parent that opens the edit form?
but i dont want to open the edit form from mdi-parent form..i want to opent the form from that view form and i coded like..
up.MdiParent = this.MdiParent;
up.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
up.Show();
so please help
|
|
|
|
|
Well, you need to start experimenting to find the source of the error. Then you can judge if you should try to solve it or try to find another acceptable solution. Just sitting there waiting for answers will get you nowhere.
Another thing you can try is to comment out the line where you set FormBorderStyle.
|
|
|
|
|
Christian Wikander wrote: Just sitting there waiting for answers will get you nowhere.
thanx for suggestion....and telling me the truth
|
|
|
|
|
i agree with this.
create your midi forms on the midi parent... always.
if you want to create/call from another midi child, create an event on the midi child, something like "CreateMidiChild", and when the event is triggered the midi parent which will be subscribed to this event can create the new child for you.
|
|
|
|
|
thanxxx...my problem is solved now
|
|
|
|
|
Hi
I have one user defined service pack in this service pack was good running in windows XP os but in windows vista its not running why?pplease tell me how to solve this problem!!
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
What on earth is your question ? What do you mean by service pack ? What do you mean by 'not running' ? Is this even a C# question ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi thanks to your replay!!
Service pack means its one exe file its also generate Microsoft visual studio.in this Exe was executing in XP but in vista its not ..this is my problem!!
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
OK, first of all, when you build an exe, it's NOT called a service pack.
Second, if it doesn't run in vista, you need to work out at what point it fails, and then you can work out why.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi wen i ran that application ..its showing one dialog msg.actually this was partially developed C++.
Debug Error!
Program: C:\program files\driv\j21.4.2\bin\javaw.exe
Module :\citi\apps\EDCJNI.dll
File:
Run-Time Check Failure #0-The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer with a different calling conversion.
what kind of error this!!please tell me how to solve it!!?
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
Read this[^] to understand how I found answers here[^].
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
I am using client server architecture. I want to stop or start some process which is running on Client Machine.
How can I do this?
Regards,
sjs4u
|
|
|
|
|
Server should send messages to client. Client should listen on some port for the messages. Client can interpret the messages and start/stop respective processes. Alternatively, you can use remoting, AFAIK.
|
|
|
|
|
hi
how can i load 1,000,000 records to access in the fastest way ?
i'll try:
int End = dsView.Tables["BarcodTbl"].Rows.Count;
int i;
for (i = 0; i < End; i++)
{
Cmd.CommandText = "INSERT INTO BarcodTbl(Code,Barcode,numH) VALUES('" + dsView.Tables["BarcodTbl"].Rows[i][0].ToString() + "','" + dsView.Tables["BarcodTbl"].Rows[i][1].ToString() + "','" + dsView.Tables["BarcodTbl"].Rows[i][2].ToString() + "')";
Cmd.ExecuteNonQuery();
}
but it take over 20 minutes
thanks
|
|
|
|
|
I am not sure, but try creating insert statements inside the loop and execute it after the loop finishes. So you are opening only one connection and doing bulk insert.
|
|
|
|
|
thanks for the help
can i get any sample code for this ?
|
|
|
|
|
E_Gold wrote: can i get any sample code for this ?
StringBuilder sb = new StringBuilder();
for (i = 0; i < End; i++)
{
sb.Append("INSERT INTO BarcodTbl(Code,Barcode,numH) VALUES('" + dsView.Tables["BarcodTbl"].Rows[i][0].ToString() + "','" + dsView.Tables["BarcodTbl"].Rows[i][1].ToString() + "','" + dsView.Tables["BarcodTbl"].Rows[i][2].ToString() + "')");
}
Cmd.CommandText = sb.ToString();
Cmd.ExecuteNonQuery();
|
|
|
|
|
The Sample Code is not working, whay ?
|
|
|
|
|
Do it once, then copy the Access file. If you have to insert a million records into Access regularly, then something is seriously wrong with your design.
|
|
|
|
|
I think this is impossible to solve. Access is not built to handle this amount of data. You might get it to work slightly slower, but don't expect miracles.
The solution suggested using bulk adding will use loads of memory. If you plan to use it, watch the memory usage, or split it up in chunks of 10 000 rows or something.
|
|
|
|
|
In your example the command gets parsed for each row; use a parameterized command.
Before the loop, set the command and add the parameters.
Inside the loop, set the values of the parameters and execute the command.
This way the command is only parsed once.
I also wonder why you use for rather than foreach .
|
|
|
|
|
Hi,
I am new to crystal reports ...I want to pass a string value to a field
in a report...
and a data bounded value to another field
Please tell me how to do this
Thank You
*** Why EXPERTS behave like a fool ***
|
|
|
|
|
Hi All,
I want to develop ludo board game application with following feature.
It will be a multi user application where user can play from his desktop.
One server multiple user architecture
User can play from his home,cafe or under proxy server(college campus)
whenever user do his part it should be reflected to every user desktop.
Game rules and procedure must be exists on server for security.
Wht is it?
Smart client application
Dot Net Remoting
Web Services
Pl give your comments/suggestions /example
Thanks for everything.
|
|
|
|
|
The answer to this question would be huge. There are quite a few articles available on how to make client server applications for chat etc. Maybe you should consider doing some research on your own before asking?
|
|
|
|