|
Hi,
The menu item freezes for a few seconds each time it is clicked on. It basically brings up another form i.e. form2. In form2 (load event) data is retrieved from a database.
The menu in form1 freezes for a few seconds until form2 is displayed. Is it possible to avoid the menu to freeze?
Thanks
|
|
|
|
|
The time is being taken up by the database retrieval. One way to get around this problem is to make the database retrieval run on a different thread to the load and then display the data in the main UI when it has finished. Have a look at BackgroundWorker to get an idea as to how this could work.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi all,
I want to send email from a windows application.
I tried some code but of no use....
here's the code that i tried...
MailAddress mailAddressFrom = new MailAddress("xyz@abc.com");
MailAddress mailAddressTo = new MailAddress("pqr@abc.com");
MailMessage message = new MailMessage(mailAddressFrom,mailAddressTo);
message.IsBodyHtml = true;
message.Subject = "HI";
message.Body = "HELLO, HAPPY NEW YEAR";
SmtpClient smtpclient = new SmtpClient();
smtpclient.Host = "localhost";
try
{
smtpclient.Send(message);
}
catch (Exception ke)
{
string strMsg = ke.Message;
MessageBox.Show(ke.Message);
}
i get the exception saying "The operation has timed out"
can anyone tell the correct way?
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
Check your launch and activate permissions for 'Network Services'.
SkyWalker
|
|
|
|
|
Whr do i find these settings?
But if my application is used by some users they will also need to set the above settings...
isn't there any generic way to send emails from a windows application in C# .Net?
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
Maybe you can find a starting point here[^]
SkyWalker
|
|
|
|
|
hi everyone
well I just wanna know how can we get the names of all availabe sql server 2000's available on the single PC or a network.
I'm working in C# 2.0 windows Forms application
Thanks in advance
Rocky
|
|
|
|
|
There is already an article available.
http://www.codeproject.com/cs/database/SubmitSQLInfoEnumerator.asp
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
looks preety helpful thanks...
|
|
|
|
|
Hi All,
Warm New Year Greetings. Can anyone of you tell me how to get the application path during run time in C#. Please do reply.
Regards
Babu
|
|
|
|
|
If u want to get the path of your application, then use the below code:
System.Reflection.Assembly.GetExecutingAssembly().Location
Thanks & Regards,
Venkat
|
|
|
|
|
|
Happy New Year to you, too!
Use Application.ExecutablePath and Application.StartupPath , or use the System.Reflection namespace to get the properties of your assembly: System.Reflection.Assembly.GetExecutingAssembly.Location
SkyWalker
|
|
|
|
|
HI..
How to get the path of the folder or file that the user has clicked in the windows explorer
Thanks & Regards,
Venkat
|
|
|
|
|
Thank you for your kind response.i need to get the path in console application.but in console application Application.ExecutablePath and Application.StartupPath are not working. Is there any other way.
babu
|
|
|
|
|
Of course they are working
You just have to add the System.Windows.Forms reference, then add the using System.Windows.Forms; line to your Program.cs file.
After that, a line of code like this one:
string S = Application.ExecutablePath;
will return the information you need.
SkyWalker
|
|
|
|
|
Hello,
Happy new year!
I think "System.Environment.CurrentDirectory" is what you need.
All the best,
Martin
|
|
|
|
|
Not quite, Martin
It returns the directory from which this process starts. During the running, the current directory may change. Then you need to use the Application.ExecutablePath .
SkyWalker
|
|
|
|
|
Hello!
Mircea Puiu wrote: During the running, the current directory may change
You mean the path where the exe was called changes?
OK, I never took care of that.
But, I mainly use "System.Environment.CurrentDirector" because of it's design time support.
All the other methods I tested return an obscure design path.
All the best,
Martin
|
|
|
|
|
No, no!
The current directory is the same with the executable path when the app starts. You may change the current directory (by using a file dialog for example), and that has nothing to do with the execution path.
SkyWalker
|
|
|
|
|
Ohh,
Ok, I got it now!
I was thinking he needs only the exe path.
Thanks for the info!
All the best,
Martin
|
|
|
|
|
Hello,
I am trying to integrate GoogleCheckout and working on to process order notifications sent by google...
Google sends order notifictaion in XML format as HTTP_RAW_POST_DATA.
I can retrive it in PHP as follows:
if(isset($GLOBALS["HTTP_RAW_POST_DATA"]) && $GLOBALS["HTTP_RAW_POST_DATA"] != "")
{
$msg.="<br>".$GLOBALS["HTTP_RAW_POST_DATA"];
}
Can anybody let me know its equivalent code in asp.net C# 2.0
Thanks in advance for all your help.
Regards,
Suman Singh
|
|
|
|
|
Hello all,
I have two c# dlls and i want to know the difference in text format.
So please refer me some tool available on internet.
The 'Comp' command of DOS prompt gives result at binary level.
I do not want that.I want code level difference.
Thank you.
"Every thing matters in this world but what you think,it matters more.
When thinking changes,the whole world changes."
|
|
|
|
|
|
hi,
how to merge the datagrid header column in windows application using C# ?
|
|
|
|