CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: sachintha81

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Re: WPF (with C#) TextBox Cursor Position Problem

    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...
  2. WPF (with C#) TextBox Cursor Position Problem

    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...
  3. Re: How to set Display Settings to EXTEND mode in Windows 7 using C++?

    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...
  4. Re: How to set Display Settings to EXTEND mode in Windows 7 using C++?

    Thank you olivthill2, that was most helpful!
  5. Re: How to set Display Settings to EXTEND mode in Windows 7 using C++?

    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 >...
  6. Re: How to set Display Settings to EXTEND mode in Windows 7 using C++?

    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....
  7. How to set Display Settings to EXTEND mode in Windows 7 using C++?

    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...
  8. Replies
    1
    Views
    5,921

    Converting to C++ from C#

    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...
  9. How to identify which COM ports are connected to BlueTooth devices?

    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...
  10. Replies
    0
    Views
    3,819

    IIS Configuration File in Windows XP

    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...
  11. Replies
    0
    Views
    1,921

    IIS MIME Settings Inheritance in C#

    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...
  12. Replies
    8
    Views
    5,063

    Re: How to convert Paths?

    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,

    ...
  13. Replies
    8
    Views
    5,063

    Re: How to convert Paths?

    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...
  14. Replies
    8
    Views
    5,063

    Re: How to convert Paths?

    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.
  15. Replies
    8
    Views
    5,063

    Re: How to convert Paths?

    That returns the current user's desktop folder path.
  16. Replies
    8
    Views
    5,063

    How to convert Paths?

    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...
  17. Can the CLSID of Firewall Manager Class be obtained programmatically by C# code?

    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");...
  18. Replies
    3
    Views
    4,053

    Re: DLL Problem

    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,...
  19. Replies
    3
    Views
    4,053

    DLL Problem

    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...
  20. Replies
    3
    Views
    5,516

    Re: Desktop Shortcut to All Users Desktop

    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...
  21. Replies
    3
    Views
    5,516

    Desktop Shortcut to All Users Desktop

    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...
  22. Re: Register an EXE as a Windows Firewall exception using C# code

    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...
  23. Re: Register an EXE as a Windows Firewall exception using C# code

    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...
  24. Re: Register an EXE as a Windows Firewall exception using C# code

    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...
  25. Register an EXE as a Windows Firewall exception using C# code

    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,...
Results 1 to 25 of 48
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured