|
Could it be that you have .NET 1.0 AND 1.1 on the same machine?
I've experienced some weird effects when I had developed a .NET 1.1 (VS2003) windows service and calling "installutil" from the commandline picked the executable from .NET 1.0.
Try calling installutil with the full path (...\Microsoft.NET\Framework\v1.1.4322\...) and see if it helps.
Regards,
mav
|
|
|
|
|
I would like to know how & where to connect my C# application in order to get the latest & updated currency rates in my C# program.
Jassim Rahma
|
|
|
|
|
|
no..
I never tried any webservice..
can you please brief me on how it work and how to connect
with many thanks...
Jassim Rahma
|
|
|
|
|
Is it possible to add horizontal and vertical scrollbars to a datagrid?
If so, how?
|
|
|
|
|
Hi,
I created a DLL by VC++ and want to register and install it
onto WinXP. I would like to know what choices are available for
achieving it ?
1. Can I get it done by programming with C# ?
If yes, how ?
2. Can I get it done by .msi or .cab ?
If yes, how ?
And I want to know that the general practice for creating the
CLSID for the dll for deploying a software dll. Is the clsID generated
at the developer machine ? or generated
at the target machine ?
Thanks
|
|
|
|
|
Hi!
If you mean you want to register a COM object then the easiest way is to call DllRegisterServer in the DLL.
This can be achieved by calling "regsvr32 TheDll.dll" (using the Process class, for example).
Or, if you want to include the COM dll in a setup, you usually can set the "SelfRegister" flag for the dll to true. In this case, windows installer calls DllRegisterServer in the dll during install.
Regards,
mav
|
|
|
|
|
wat is VOIP ,wat is use ..
plz explain..with example
Never Think That You Have Failed Instead Always Think That u hav Better Chance Next Time...
|
|
|
|
|
|
im trying to change a value in a popup dialog window.
the dialog window is not created by me.
so i need to find the dialog on the screen in run time (similer to the spy++)
then find on it - its textbox - and change the string in it.
does any body know how i can find a window in runtime ??
|
|
|
|
|
You are going to have to use native calls to what you want to do. Just google for FindWindow SetWindowText ...
Alex Korchemniy
|
|
|
|
|
Currently i am facing a problem of resetting focus on DateTimePicker control.
Problem: I enter to DateTimePicker control and change the MM value. Now i traverse to another control and came back to DateTimePicker control then it default set the focus on last activate section; in this case on MM where i wanted it to focus on HH.
My DateTimePicker format is DateTimePickerFormat.Custom and CustomeFormat is "HH:mm:ss".
|
|
|
|
|
Can any one suggest me any topics/sites for shell programming for drag and drop either in C# or vb.net. any samples for that
Nothing
|
|
|
|
|
You can search CP (search box near the top of the page). I know there are a few good articles.
Alex Korchemniy
|
|
|
|
|
I have created a windows installer i VS.NET 2003 to install my application. The application consists of a windows service, a small winforms application and some dll's. The application installs and runs fine but only when I have hardcoded a path I have in a settings file.
What I want to do is get the folder where I install the application and write that to the file when I install the application. Because that is what I want, the default path for this setting should be the folder where the application is installed. So is there any way to get that folder during the installation? I have tried using the Installer class but they alone doesnt seem to be enough. The only folder I can get from there is C:\windows\system32 which happens to be the current folder in the Installer class.
|
|
|
|
|
Check out the MsiGetProductInfo[^] function in the msi.dll .
The INSTALLPROPERTY_INSTALLLOCATION property returnes the installation path.
Sorry that I do not have any samples on how to do it in .NET and C#.
But it should be fairly straight forward using pInvoke.
/cadi
24 hours is not enough
|
|
|
|
|
You could create a class library for the custom action of writing the installation path into your config file.
Inside your InstallerClass you can use reflection to get the location the custom action is executed from (Assembly.GetExecutingAssembly().Location ). This usually would be in the directory your service has been installed to.
Regards,
mav
|
|
|
|
|
I managed to find a solution. I had a custom action in the installation to handle the Installer classes I had in my projects and there is a propery for a custom action called CustomActionData there. By setting the value of that parameter to /installdir="[TARGETDIR]\" I could get the installation directory in my Installer class with this code: this.Context.Parameters["installdir"] . And that was all I needed. Took a while to find all parts of this solution and puzzle it together. I found one part of this solution at a time. Nowhere was it explained all the way.
Thanks everybody for trying to help me!
|
|
|
|
|
sorry im new at this....can someone tell me how to combine two button image.... so i will get a onmouseup and down effect?
|
|
|
|
|
Please clearify. Are you trying to create a two state image button?
If so... you just need to write a simple custom control that override OnPaint and paint accordingly.
Alex Korchemniy
|
|
|
|
|
I would like to ask how can I print the windows form by C#? the print screen method doesnt work as the form to be printed may be masked by other applications
|
|
|
|
|
after u print screen u go to paint and paste......from there u can delete the sides by dragging it to make it smaller
|
|
|
|
|
Perhaps, this[^] little tidbit on MSDN may help...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
The WM_PRINT message is sent to a window to request that it draw itself in the
specified device context.
Alex Korchemniy
|
|
|
|
|
does anybody knows how to get XP key using c#?
|
|
|
|