|
tonymathewt wrote: But how can you say that a window service is not supposed to have a user interface while Norton Antivirus does have one.
If you examine what Norton Antivirus actually does, I am quite sure that you will find that it's not the service that has the user interface, but a regular program that monitors the service.
---
Year happy = new Year(2007);
|
|
|
|
|
Thankyou Guffa. Any idea how to write a regular program that monitors the service say like Norton Antivirus. I want my application to come up while the system is booted up. Could you give me a simple example like an application that displays a messagebox.
-- modified at 21:57 Thursday 18th January, 2007
|
|
|
|
|
You can use the System.ServiceProcess.ServiceController class to monitor a service. In the documentation you will find several examples.
Put a shortcut to your program in the Startup folder in the Start menu to make it start when you log in. There is also somewhere in the registry that you can add a key for the same effect.
---
Year happy = new Year(2007);
|
|
|
|
|
Hi,
When I say, "sn" at cmd prompt, its giving me all the options as it is working nice. But when I say that "sn -k D:\Aleem\AleemDSO.snk" at command prompt its giving me error as "Failed to generate a strong name key pair -- The keyset is not defined." what may be the error from my side.
Due to power fluctation my system has been stopped without proper shutting down. Is this may be the reason or any thing else. Before that it was working fine. Thank you.
Regards,
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Do you have write permissions in that directory?
|
|
|
|
|
Hey,
I'm using a property grid control to display some user options for my applications. So, basically I have a big Settings class with all the properties associated with the property grid control and then the user can just change them.
However there's a help frame in the property grid control and I'd like to be able to display some help text in there for each property : pretty much as Visual Studio does.
Can someone help please?
Thanks
Allad
PS : if you know of an easy and prettier class for options dialogs in C#, I'm all ears.
----
Navigator - Your best alternative to Windows Explorer
|
|
|
|
|
You can use the DescriptionAttribute[^] class to set the text of the "help frame" of a property grid. In addition, you can use the CategoryAttribute[^] class to group related properties within the grid.
-Phil
|
|
|
|
|
thanks a lot. It's working perfectly. Is it some kind of hack? It doesn't look like usual C# syntax.
Anyway, It is exactly what I'm looking for.
----
Navigator - Your best alternative to Windows Explorer
|
|
|
|
|
Nope, no hacks required. It was designed to look that way. It's C# attribute[^] syntax. .NET allows you to attach additional bits of "metadata" to .NET objects (assemblies, classes, methods, and properties). Other .NET objects (such as the PropertyGrid) can then extract that data for their own purposes (such as displaying descriptions of properties).
-Phil
|
|
|
|
|
Wow. Thumbs Up man. you got to be some kind of C# guru to know all that stuff.
Thanks a lot for your time. Now I may sleep with a better conscience.(I don't really like using hack stuff when I can help it).
Regards,
Allad
----
Navigator - Your best alternative to Windows Explorer
|
|
|
|
|
I want to make a power point slide using this assembly Microsoft.Office.Interop.Graph I see many objects and details in this Graph Object
where can I see examples or description about this object to use it in my program
Idrees
La ilaha illAllah
|
|
|
|
|
|
Hello All
we have a system only accept pdf files with 1.4 version, and so we have to develop a utility to verify a pdf version of a gived pdf file before saving the pdf file into that system.
Currently, we need a pdf library which it could open a pdf file and get the pdf version information. if the library include version conversion function will be a big help for us.
Thanks
Jacob
|
|
|
|
|
Hi!
The PDF-Version is listed in the header of the PDF-File. You could just open a stream, read in the first couple of bytes and then compare the version signature with what you want to make sure and that's it.
Would be like 7 lines of code and not library needed.
Regards,
Stevie
Greetings,
Stephan Eberle
hawke@deltacity.org
|
|
|
|
|
Hello Stephan
Thanks you very much!
as you said, the first line of the pdf file kept the pdf version info.
%PDF-1.5, means the version of the pdf file is 1.5.
%PDF-1.4, means the version of the pdf file is 1.4.
Jacob
|
|
|
|
|
You're welcome!
Greetings,
Stephan Eberle
hawke@deltacity.org
|
|
|
|
|
I have to make shared AddIn Setup each time according to make the code and test it. There is another method to avoid setup process each time.
Please help me. Its urgent
Thanks
Arun Kr
Arun Kr
|
|
|
|
|
Hi, All
Who have experience with used gcServer on .NET 2.0. Please share experience.
|
|
|
|
|
Hi all,
I have created a Windows Service in visual Studio 2005 beta version.In this service,I want to import a dll called CamtoJ2k.dll.
[DllImport("CamToJ2K.DLL", CharSet = CharSet.Unicode)]<br />
<br />
static extern bool CamToJ2K(string sourcePath, string destinationPath, int qFactor);
I also copied this dll in bin\debug folder.
When i ran the service ,i got an error that unable find the dll.
Exception:System.DllNotFoundException: Unable to load DLL 'CamToJ2K.DLL': The specified module could not be found. (Exception from HRESULT: 0x8007007E)Plz tell me about
1.how to import dll in service
2.do i need to add any reference to this dll(i tried this but couldnt able to add )
Thanks in Advance..
cheers
sangeet
cheers
sangeet
|
|
|
|
|
Are you sure your service is being run from the bin\debug folder? Also, does your CamToJ2K.dll have any dependencies that might also need to be copied to that location?
-Phil
|
|
|
|
|
Hi,
I made a .net assembly which in which I put an activeX control called DSOFramer. I have converted this in a windows control library and compiled it and installed it in GAC.
This library contains the code to display and edit the office documents similar to DSOFramer control. This same code when tried with DSO Framer and windows application it is displaying the documents. After this,
I tried to put this control on a web form, by using
/* <object id="DSO1" classid="
"DSOControl1.dll#DSOControl1.FramerControl""
width="800" height="300" style="font-size:12;">
<param name="FileUploadURL"
="" value="http://localhost/ServerFileUpload/UploadFile.aspx" />
<param name="MaxSessionUpload"
value="10646" />
*/ tag as above.
But here its not displaying any word or excel file. Could anybody please tell me whats wrong with this and how should I achieve my target. Please tell me if you know. Please.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Hello All,
I'm working on a project where I'll have multiple controls on a Windows form that may get updated when messages are received on a socket being listened on by a worker thread or the controls might get updated from the main thread.
The way I currently understand it is I need to set the controls properties using a delagate if control.InvokeRequired is true.
How could this be done without having to have a delagate method for each control on the form? There are many of them and they all could be updated from the worker thread.
All advice is appreciated.
Thanks.
|
|
|
|
|
Try reading up on the SynchronizationContext class. This article[^] might be a good start.
|
|
|
|
|
Sir/Madam
I am Final Year Engineering student. I want to get information about connection of computers at different cites.
Actually if I want to computerize a department of any company which have its offices at several cities then what steps I should follow.
Means how I can connect that no of computers in appropriate manner to get desired output.
I want to make it just like railway reservation system through in which if I enter data at same time then database must be able to prioritize data in sequence to enter in database.
Which database & platform or language I should use to code this kind of project.
Thank You
Ashish Porwal
|
|
|
|
|
hi
nice idea
actually this all system is on Intranet so u have to know more about INTRANET
SP
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
|
|
|
|