|
when your about to do your complex and time costing code, simply add
this.Cursor = Cursor.Busy;
// your code
this.Cursor = Cursor.Default;
|
|
|
|
|
Hi,
Does anyone know where I can find the Community Server DAAB code? I have downloaded the source SDK, and I am looking for examples on how they insert, update, and delete records using Microsoft's DAAB. I have search through the various namespaces, but could find nothing.
Regards,
ma se
|
|
|
|
|
Hi all,
I have to perform logout when the user is idle for certain time. here iam checking the user idle time in the timer. if the time exceeds 1 hour i logged out the my app. and display messagebox "User logged Out" with Ok button.
my problem is after every 1 hour the messagebox displayed over and over(eg. if the user idle for 10 hrs. 10 message box displayed). how to avoid this. is there any way to check whether the user responded to previous messagebox?. if so we have to display the message else we should not the display the message.
Please help
Srini
|
|
|
|
|
if you are using MessageBox.Show then it is a blocking call and you can do something like this
if(clickedok == true)//make clickedok static or class variable.
{
clickedok = false;
MessageBox.Show("User logged out");
clickedok = true;
}
if it is custom dialog box you can set the flag on onclick event.
Regards
Shajeel
|
|
|
|
|
public bool _isNotified = false;
if(!_isNotified)
{
DialogResult msg = MessageBox.Show("User logged out", "Logout Notification", MessageBoxButtons.OK);
_isNotified = (msg == DialogResult.OK);
}
|
|
|
|
|
_'s _are _completely _a _waste _of _time _and _only _serves _to _make _code _unreadable. _Even _worse _is _using _a _member _where _a _local _will _do.
A man said to the universe:
"Sir I exist!"
"However," replied the Universe, "The fact has not created in me A sense of obligation."
-- Stephen Crane
|
|
|
|
|
ok then....
|
|
|
|
|
Normally I wouldn't complain about something so subjective but I had to be in this morning at 6:30am.
A man said to the universe:
"Sir I exist!"
"However," replied the Universe, "The fact has not created in me A sense of obligation."
-- Stephen Crane
|
|
|
|
|
I kinda gathered... Normally your persona is something of a sweeter nature.
|
|
|
|
|
Thanks! thats what i did.
|
|
|
|
|
Hello. I want to get some values with C# from an excel file but I got below error message.
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in WindowsApplication1.exe
Additional information: Old format or invalid type library.
I referenced Microsoft Excel 11.0 Object Library and I use .Net 2003. What might be the problem? My codes are below. Thanks.
Excel.Application excelApp = new Excel.ApplicationClass();
excelApp.Visible = true;
string workbookPath = "D:/a.xls";
Excel.Workbook excelWorkbook = excelApp.Workbooks.Open(workbookPath,
0, false, 5, "", "", false, Excel.XlPlatform.xlWindows, "",
true, false, 0, true, false, false);
|
|
|
|
|
Make sure that you're Main method is marked with the STAThread attribute as all COM Interop requires this.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
Hi,
I got image icons with different formats, .bmp, .png, .ico.
Which format is the best for use in window applications in
term of loading speed, memory consumption, etc ??
Thanks
|
|
|
|
|
how about not cross posting
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
hi
i have a database in sql server 2000 and i want to set password to my database in i want use it in vc# .. how to do ??
thanks ..
|
|
|
|
|
Umm Can you explain this more clearly please?
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
ok
i want to set passeord on my database in sql server 2000
How to set password for Database access in SQL Server 2000 ???
-- modified at 8:26 Monday 17th July, 2006
|
|
|
|
|
Set the database owner to a login that requires a password.
|
|
|
|
|
i have aproblem ......i am trying to create Setup.exe for my project but it needs files to be in resource folder up to 2GB .....
how can i make setup read from more than one cds to copy all files....................
note :the application written using C#
i am waiting your response
Ahmed Youssef Abd Elhavez
Computer Engineer.
MERC, Middle East Radio Communication
SYSTEL, Wireless Technology Provider & Mobile Services
2A Shafik Mansour St. - Zamalek, 11211 Cairo, Egypt, 7th floor.
Tel.: 002-02- 7351222, 002-02- 7355556/9
Fax: 002-02-7359109
http://www.SYSTEL-EGYPT.com
Contacts:
(+2)010-4-615-765
Ahmed.Youssef@Systel.com.eg
|
|
|
|
|
When using Visual Studio I am very doubtful that this can be done, alas if you use something like NSIS or InstallShield, you can specify a limit to make the file sizes, infact I am very sure that you can specify that this will be going on a 700mb cd-rom, make sure the resulted files do not exceed this size, or span across two or more cd's.
2gb of resources, hell boy what you packing?
|
|
|
|
|
Have you tried WIX (Windows Installer XML) toolkit? This one is free and has all the options for creating msi files...
http://sourceforge.net/projects/wix/[^]
I'm not sure if it can setups for multiple CD's, but it's worth looking at, since it allows you to create more flexible setups.
WM.
What about weapons of mass-construction?
|
|
|
|
|
If you can't find a tool to split resources. ( I don't see why it would exist) Then you can alway write your own installer. I am not sure but I would imagine that MSI's have the capability to run scripts and maybe even applications. That could help.
A man said to the universe:
"Sir I exist!"
"However," replied the Universe, "The fact has not created in me A sense of obligation."
-- Stephen Crane
|
|
|
|
|
Hi,
I am trying windows mobile application (pocket pc)using c# .NET and visual studio 2005. The following error coming,
"The type or namespace name 'MD5CryptoServiceProvider' could not be found (are you missing a using directive or an assembly reference?)"
Already i am added using System.Security.Cryptography and
using System.Security.Cryptography.X509Certificates.
Any other referrence missing?,anybody please help me
Thanks
Sarala
|
|
|
|
|
Just double check you spelt things corectly since MD5CSP resides in mscorlib which should be added already. Apart from that I can see no problems.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
Hello everyone,
I want to do some stuff, if the user is not doing something in my application for a time x.
Thank you for your help and time
Martin
|
|
|
|