Search:
Type: Posts; User: sachintha81
Search:
Search took 0.04 seconds.
-
September 1st, 2011, 09:26 PM
Thank you ArJay.
Actually I was suggested the exact same thing by a poster in some other forum, and it worked just perfect for me.
The only glitch here is that it still lets spaces in as the...
-
August 30th, 2011, 07:46 PM
I have a WPF C# program where I attempt to delete certain characters from a text box at TextChanged event. Say, for instance, the dollar sign. Here is the code I use.
private void...
-
Mate, a correction:
I think you can not set the middle 4 parameters to be NULL, as it returns an empty current_mode variable. Looks like it is stated in MSDN too that they cannot be NULL. I had to...
-
Thank you olivthill2, that was most helpful!
-
Okay so I found the solution to the second part of my problem (not defined problem). I had set the wrong SDK version, so first corrected it in Start Menu > All Programs > Microsoft Windows SDK 7.1 >...
-
olivthill2, thanks for the response.
Is that all I have to do? Do I not need to check already existing configuration and so on?
By the way, I encounter another problem trying to use this code....
-
In my C++ Win32 program I want to set the current Display Settings to "Extend" mode. I Googled and found out that SetDisplayConfig() is the way to go forward in Windows 7 (I'm on Windows 7) but now I...
-
I have done pretty much all my programming using C# and very much a newbie to C++. However now I have to convert to C++ and is finding it a bit difficult. For example, I wrote a pretty simple program...
-
Hi All
I'm wondering if there is a way to know, using a C# program, among my COM ports which are connected to BlueTooth devices?
For example, let us assume that of my ports 1 through 9, the COM...
-
All the registered IIS MIME types in IIS 7 + Windows Vista are registered in the following config file.
C:\Windows\System32\inetsrv\config\applicationHost.config
I was wondering where I can...
-
I'm trying to set a MIME type for a certain file extension (.jdf) using MimeMapClass in C#.
Following is the code I use which works fine.
// directory is a virtual directory, say...
-
Yes I could do that, but apparently there is a function that actually does pretty much the same.
Environment.ExpandEnvironmentVariables()
For example, if I use the following in Vista,
...
-
I did try all the enum values before coming here actually. As stated in my previous reply, there is no Environment.SpecialFolder.CommonDesktopDirectory in .NET 2.0 unfortunately. I have to use either...
-
Thanks Danny.
I'm using .NET 2.0 framework and in it there is no such enum as Environment.SpecialFolder.CommonDesktopDirectory. I hear they've added the feature in .NET 4.0 though.
-
That returns the current user's desktop folder path.
-
The following registry key contains many system default folder locations.
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
The value for the path of the...
-
I'm using the following code (which I found on the net) to register an exe as a Windows Firewall Exception using C# code.
Type type = Type.GetTypeFromProgID("HNetCfg.FwAuthorizedApplication");...
-
Arjay, thanks for the reply.
Actually I'm a bit confused with this. When I add the [Active DS IIS Namespace Provide] COM object, it places two items inside my References section. They are namely,...
-
I am working on a Setup program which creates a .msi file. There is a CustomAction program associated with it which is written in C#. There are three COM object references made in this CustomAction...
-
What I meant was, there is the likely scenario of user having had his driver letters changed at installation time. So if I were to hardcode the path and run the setup on such a computer it'll ruin...
-
I am required to create a Desktop shortcut to a specific folder from within my C# program. I have two requirements.
1) On the Desktop of Current User
2) On the All Users Desktop
Following is...
-
April 28th, 2010, 09:08 PM
Chris, actually I found out that "FirewallAPI.dll" can in fact be used in XP and older OS as well. It is "hnetcfg.dll" that causes the problem in Vista.
But yeah, your method is also great...
-
April 20th, 2010, 11:21 PM
Thanks Chris.
Yes you can check the OS version that way, but the problem is not that. To this program to work the NetFwTypeLib object is needed. However, in Vista environment it resides in...
-
April 20th, 2010, 09:24 PM
Thanks a lot.
It works fine. However, I am encountering a problem that needs to be solved. That is, the "NetFwTypeLib" object resides in hnetcfg.dll in XP while it is inside the FirewallAPI.dll in...
-
April 20th, 2010, 04:10 AM
I have a service (say BS.exe) written using C# of which the installer is created using Wix and C# (which means it has a Custom Action program associated with the Wix installer program as well). Now,...
|
Click Here to Expand Forum to Full Width
|