|
Hi, Martin,
thanks a lot. It does work.
However, I met another problem.
when I click the button to stop the loop, the firt click does not work, that means I have to click two times, after that, then it work perfect.
further I found that I have to click the form window first then I can handle this window, or else I can not. I tried to use Activate() and Focus(), neither works, Could you please give me one hint for that?
thanks a lot.
|
|
|
|
|
well, you must have some condition inside your loop, you have to "and" that condition with a boolean flag which is set when the cancel button is clicked.
eg
bool cancel = false;<br />
<br />
while(yourCondition && !cancel)<br />
{<br />
}
Then your cancel button would just set that cancel variable to true. You will need to do your loop within another thread in order to keep the form responsive.
|
|
|
|
|
when my program login server how to choose the right server(CHINA TELECOM or China Netcom ...) and how to choose the nearest server?
|
|
|
|
|
I am using SqlCommandBuilder to update data in DataSet to DB and I got a problem is:
DataSet includes 2 tables : 1 is Master and the other is Detail
1. When user adds new row in DataTable => This record must be insert into Master table first, and then it will be inserted
into Detail Table.
2. When user delete data in DataTable => This record must be deleted in Detail Table first, and then it will be deleted
in Master Table.
User can add new, edit or delete data in DataTables until they click Save button => Update data in DB.
Please help me how can I do this with SqlCommandBuilder.
Thanks a lot.
pvphuc
|
|
|
|
|
Hi all!
I want information on , how to integrate resumegrabber software with .net OR is there any way to merge database of resumegrabber with sql server database.
Regards,
Amol G.
|
|
|
|
|
In C#.net windows application
in design view i am just placing the datagridview control
in form load event i am dynamically defining the columns and then adding rows so every time there is an extra row is coming and one column is image column so extra row displaying the image "x".
In order to avoid this extra row what should I do
Please help me
Praveen Kumar Palla
|
|
|
|
|
Set the AllowUsersToAddRows property of the DataGridView to False
Hope it helps.
There are 10 kinds of people: those who understand binary and those who don't
|
|
|
|
|
Andrei
Thank you very much
It is very useful to me.
|
|
|
|
|
|
The link works for me. What is your problem?
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
2 things:
1. Pay attention to rule 7 on forum usage.
2. You only posted your original question 90 mins ago. Please be more patient!
Paul Marfleet
|
|
|
|
|
pmarfleet wrote: 1. Pay attention to rule 7 on forum usage.
And rule 3, and...
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
I think I understand your problem. This is in the C# forum, the link takes us to the ASP.NET forum. You've found the 'cross post' bug. To prevent this bug from happening, stick with your original posts, in the original forums and give the people answering your questions a little more help/information than you are doing.
People will spend less time on your numerous posts if you start to cross post / duplicate posts / just post links to other posts you've already made.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
It's here usual practice. She will post in one forum and do advertise that in all other forums.. Interesting right ?
|
|
|
|
|
N a v a n e e t h wrote: Interesting right
wrong!
|
|
|
|
|
I just wish she'd buy a bloody book.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
heloo.... i want to hide the base class method using new operator.
i tried this code.but it was not working.here base class method is calling.
plz help me soon.
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication23
{
class Program:user
{
public new void print()
{
Console.WriteLine("hello how are you?");
}
static void Main(string[] args)
{
user u = new Program();
u.print();
Console.ReadLine();
}
}
class user
{
public void print()
{
Console.WriteLine("hellohello");
}
}
}
sravani.p
|
|
|
|
|
Hey, the 'new' keyword is to explicitly hide the base class members
But, if you want to use it, you have to call the method from the derived class. In this case you surely need to create a reference of the derived class other than a original base class reference.
Since you have already created the Program object to a user reference, all you need to do is to perform a cast:
(Program)u.print();
regards
Someone was born greatness;
Someone achieved greatness;
Someone let the greatness thrust upon him;
|
|
|
|
|
Try this [^] article.
Hope it helps.
There are 10 kinds of people: those who understand binary and those who don't
|
|
|
|
|
sravani.p wrote: i tried this code.but it was not working.here base class method is calling.
It's working just fine. You have a reference to user , so when you use the print method, the method in the user class is used.
If you want the method in the Program class to be used when you have a Program instance references by a reference to user, you have to use a virtual method instead of using the new modifier.
---
single minded; short sighted; long gone;
|
|
|
|
|
thanks for ur answer,i tried but its not working....
sravani p
|
|
|
|
|
Hi, Is there any way of Disabling System Sounds (during the lifetime of my Application) which we hear when we Show Messageboxes like Critical, Exclamation, Information, Error etc. I dont want all these as long as my App is Running.
Any Thoughts??
Thanks..
|
|
|
|
|
Hi,
I guess you will have to use follwing in your application.
[DllImport("User32.dll", ExactSpelling=true)]
private static extern bool MessageBeep(uint type);
play what ever sound you want to play.
Regards ,
Nishu
|
|
|
|
|
Thanks Nisssshhhhhhuuuu
But I want that there should be no sounds played even when My App shows an Error, Exclamation, Info MessageBox.
|
|
|
|
|
Does anybody know if there are any support for ssh or ssl on the pocket pc's, especially for windows mobile 5 on .net for the ppc?
Luis
|
|
|
|