|
Hi,
I have a Widow service. I am installing the service and related applications using install shield. i have written a service installer class. This works fine when i am installing or Modifying the application using setup file.
It gives problem when i repair the application, since the service is already exist. I have tried to stop installing the service if it exists in the system but still it gives me error "Unsave state...". In service installer class i have override install and uninstall method.
Is there any other way ot handle this.
Please give your suggetions.
Thanks & Regards
Basant
-- modified at 8:13 Tuesday 29th November, 2005
|
|
|
|
|
Hi,
I have a c# windows application with sys tray and a shortcut in desktop. There is no provision for minimizing the application window, so if i close the application i can re-open it from sys tray. Now the problem is that if i click on the shortcut, which is availabe on desktop, the application should open.
I have implement this partially, means i have closed all the process of the application and open a new one. For this i have used GetProcessesByName() function which is not worked in XP & Win 2k. I think it will better if the application already availabe in sys tray will open without killing the process while I clicking on desktop shortcut.
Please give your helpful comments.
Regards,
Basant
-- modified at 8:15 Tuesday 29th November, 2005
|
|
|
|
|
i have seen many about converting string to hex solution but yet to see any solution on converting hex to string.
i have been cracking my brain on converting hex to string. so i am wondering anyone can help me out on this problem.
Thank you
orrjiao
|
|
|
|
|
What do you mean, really? A hexadecimal value is a string representation of a number. A number in itself is not hexadecimal, it's just a number. A numeric base is only relevant when representing a number in string format.
Do you mean that you want to convert a string containing the hexadecimal representation of a number into a number?
---
b { font-weight: normal; }
|
|
|
|
|
i am sorry bout the unclear question i have post up.
yes, i am finding solution on coverting string of hexadecimal to decimal.
so is there any method i could use to slove this problem?
thank you.
orrjiao
|
|
|
|
|
Here is one way to do it:
const string digits = "0123456789ABCDEF";
string hex = "2A";
int num = 0;
for (int i=0; i<hex.length; i++) num = num * 16 + digits.IndexOf(hex[i]);
The code should of course be improved with some error handling, and allowing for lower case characters also.
---
b { font-weight: normal; }
|
|
|
|
|
Image to to Stream of Byte[]?
I have an image in the pictureBox captured from a device .Now i want to convert this PicBox.Image to stream of bytes to save it in the DataBase.Plz help me how to convert this image from pictureBox to stream of bytes.I pretty know how to save it in database but having some problem converting the image to stream of bytes from
PictureBox.
Thnx in Advance!
|
|
|
|
|
Just use the Save method of the Image class.
PicBox.Image.Save(stream, ImageFormat.Jpeg);
---
b { font-weight: normal; }
|
|
|
|
|
hi,
when i change one record or more i want to show changes to DBGrid which
i have opened it before ! can i refresh DBGRID ?
thanks!
|
|
|
|
|
Assuming you are using a DataSet to provide the data to your DataGrid, clear the data set and then fill it again from the data adapter.
|
|
|
|
|
hi,
i want to run an execute file with c# code but
i don't know?
can you help me?
|
|
|
|
|
Hello,
Please have a look at the following code:
Process newProcess = new Process();<br />
ProcessStartInfo info = new ProcessStartInfo("cmd.exe");<br />
newProcess.StartInfo = info;<br />
newProcess.Start();
HTH.
Maqsood Ahmed - MCAD.net
Kolachi Advanced Technologies
http://www.kolachi.net
|
|
|
|
|
hello to everybody.
I have problem with installation on my problem on another computer with differen language.My program is made on c# the windows version is xp en but computer on witch i want to install it is xp italian.So how to install it.I do this procedure copy my program and past it in other computer.If this is not correc what to do.
Thank you
|
|
|
|
|
And what is the problem?
---
b { font-weight: normal; }
|
|
|
|
|
the problem is because i don't know what framework exacly witch version i shoot download.I download some frame work and now give me error when i start it the error is " mscorwks.dll cloud not be loaded" i look for this file and the file was there ???
|
|
|
|
|
Hi buddies,
If more than one thread may enter .NET collections (ArrayList, NameObjectCollectionBase, ...) Add() methods should I enclose the code that calls Add() in a lock statement?
Also can you tell me a general rule to underestand when I SHOULD call some method only inside a lock statement in a multi-threaded app?
Thank you so much,
- Mohammad
---
"Art happens when you least expect it."
|
|
|
|
|
From MSDN documentation on ArrayList:
"Public static members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe."
As Add() is an instance member, it's not guaranteed to be thread safe, so you should use lock.
The documentation should contain thread safety information for all classes.
---
b { font-weight: normal; }
|
|
|
|
|
Yes, thank you Guffa.
---
"Art happens when you least expect it."
|
|
|
|
|
|
Thank you leppie
---
"Art happens when you least expect it."
|
|
|
|
|
Thank yo leppie
---
"Art happens when you least expect it."
|
|
|
|
|
Hi
I have to use Microsoft.ink in c# and , and just draw a image .. for example: just write a letter say egg using ink and save that image as .jpeg file..
How can i do it . Please anyone tell how to do this..
Dhol
|
|
|
|
|
Hi All,
I have a datagrid in an aspx page. From footer i am adding new row to the data grid. How do i make that datagird is scrollable as well as with Fixed Header and Footer? The header and footer should be visisble aslways then only the end user can add new records.
Could you guys please help?
Thanks
Thennarasu
|
|
|
|
|
Hi
I have a Sql Server datebase in our company on a Server.
I want to read the server Time from the clients and i don't want users can change their computer time .
but I don't know how can i do it.please help me
|
|
|
|
|
With SQL Server, you can run the following select statement to get the time:
SELECT GETDATE()
To set the time, read the source code of the NTPClient class from the article SNTP Client in C#.
To prevent users from changing the clock, investigate the "Change the system time" policy for users in your domain/local computers.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|