User Profile

Collapse

Profile Sidebar

Collapse
tbarto
tbarto
Last Activity: Mar 13 '08, 03:45 PM
Joined: Feb 20 '07
Location: Krakow - Poland
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • tbarto
    started a topic How to Get Default system dialogs text in C#
    in .NET

    How to Get Default system dialogs text in C#

    Hello,

    For some time I have been working on an application where a part of the solutuion is a class that is able to find all the system dialogs ( eg. openFileDialog ) that are currently open.
    Dependently on the system regional settings, the captions of such dialogs differ (e.g "Open" for en-En and "Otwieranie " for pl-Pl ).
    I neet do know what is the exact caption for the current system. To be more...
    See more | Go to post

  • tbarto
    started a topic AccessibleObjectFromWindow...
    in .NET

    AccessibleObjectFromWindow...

    Hi

    I would appreciate if somebody could help me with that problem. I have the following code:

    Code:
            
    
    [DllImport("oleacc.dll", PreserveSig = false)]
    [return: MarshalAs(UnmanagedType.Interface)]
    public static extern object AccessibleObjectFromWindow(IntPtr hwnd, uint dwId, ref Guid riid);
    
    Guid uid = new Guid("618736e0-3c3d-11cf-810c-00aa00389b71");
    ...
    See more | Go to post

  • tbarto
    replied to How to find out if a check box is checked...
    in .NET
    I have found some differences in types on object returend by AccessibleObjec tFromWindow. What I mean is that when working on Win XP, the type of the object is System._ComObje ct , but as I tried on Win 2000 the type was System.Runtime. Remoting.Proxie s._TransparentP roxy . Obviously, I was unable to cast that type to IAccessible, which caused an exception. Does anybody have any idea about those differences?

    Thanks
    See more | Go to post

    Leave a comment:


  • tbarto
    replied to How to find out if a check box is checked...
    in .NET
    PropertyGrid

    I was just wondering. Perhaps any of You Guys knows a way to get access to the PropertyGrid component? The problem is that I am unable to find an info about that. E.g:

    http://msdn.microsoft.com/library/de...divcontrol.asp

    Under the link above there is an info about many UI components, unfortunately nothing about PropertyGrid :-(...
    See more | Go to post

    Leave a comment:


  • tbarto
    replied to How to find out if a check box is checked...
    in .NET
    Sorry,

    My fault. Amitjul - everything works exactly as in Your code.

    Thanks...
    See more | Go to post

    Leave a comment:


  • tbarto
    replied to How to find out if a check box is checked...
    in .NET
    Hi

    When running the code i get 0 when a checkbox is unchecked and 16 when it is checked. The values are not exactly the same as in Your code, however I am able to determine if a checkbox is checked or not.

    Thanks a lot!!!...
    See more | Go to post

    Leave a comment:


  • tbarto
    replied to How to find out if a check box is checked...
    in .NET
    Hi Amitjul

    Here is probably a solution You've been looking for. You may use:

    System.Windows. Forms.SendKeys. SendWait(keys);

    method in the follwing way:

    Code:
    		
    
    [DllImport("user32.dll")]
    [return: MarshalAs(UnmanagedType.Bool)]
    private static extern bool SetForegroundWindow(IntPtr hWnd);
    
    
    IntPtr _handle;  //handle to the destination control
    ...
    See more | Go to post

    Leave a comment:


  • tbarto
    replied to How to find out if a check box is checked...
    in .NET
    Thanks for the info You've provided. I will try work on that, unfortunately next week, because tomorrow my vacation days start :-)
    Thanks one more time for Your help...
    See more | Go to post

    Leave a comment:


  • tbarto
    replied to How to find out if a check box is checked...
    in .NET
    No, definitely not that one :-)...
    See more | Go to post

    Leave a comment:


  • tbarto
    replied to How to find out if a check box is checked...
    in .NET
    Hi

    This is what I've been trying to figure out. I have found that:

    Code:
    Guid g = new Guid("618736e0-3c3d-11cf-810c-00aa00389b71");
    when googling, but I do not exactly understand the "618736e0-3c3d-11cf-810c-00aa00389b71" identifier. I have tried to change that identifier and run the code, but it caused an exception. Since I am not experienced in working with "Guid" I did not find...
    See more | Go to post

    Leave a comment:


  • tbarto
    replied to How to find out if a check box is checked...
    in .NET
    Gentleman

    I have found how to get access to an UI component with AccessibleOblec tFromWindow, however it still does not work for me:

    Code:
     
    private const int OBJID_WINDOW = 0;
    
    [DllImport("oleacc.dll", PreserveSig = false)]
    [return: MarshalAs(UnmanagedType.Interface)]
    public static extern object AccessibleObjectFromWindow(IntPtr hwnd, uint dwId, ref Guid riid);
    
    Guid
    ...
    See more | Go to post

    Leave a comment:


  • tbarto
    replied to How to find out if a check box is checked...
    in .NET
    Hi amitjul

    As far as now I haven't found the solution. I've been working on some other issues. If I am able to get the solution, I will post it here.

    Regards...
    See more | Go to post

    Leave a comment:


  • tbarto
    started a topic How to find out if a check box is checked...
    in .NET

    How to find out if a check box is checked...

    Hi everybody

    For some time I have been working on an UI testing application. The application under test was developed in C#, and my application has been developed in C# as well. I do not have a source code of the application under test, so I use Win API messages and methods. I faced the following problem:

    The application under test contains a check box:

    Class: WindowsForms10. BUTTON
    Text: "Some...
    See more | Go to post

  • tbarto
    started a topic Getting Access to PropertyGrid
    in C

    Getting Access to PropertyGrid

    Hello

    I need to get access to the content of PropertyGrid component that is a part of an application developed in C#. I need to do that from an external application, under windows API. The problem is, that I'm unable to find a description of that component at MSDN ( structures, messages, macros... ) Here is a link where I've been trying to find an info:

    http://msdn.microsoft. com/library/default.asp?url =/library/en-us/shellcc/platform/commctls/indivcontrol.as p...
    See more | Go to post

  • tbarto
    replied to Getting number of columns in ListView
    in C
    I have found a solution, but just FYI if somebody experiences a similar problem. It is necessary to use LVM_GETCOLUMN message and LPLVCOLUMN structure. Then You need to use SendMessage with LVM_GETCOLUMN and a ref to LPLVCOLUMN. Go "right" through the list and increment a counter of columns until SendMessage returns - 1....
    See more | Go to post

    Leave a comment:


  • tbarto
    replied to Combobox items displayed in label!
    in C
    Are You saying that after You CHECK the button, the conversion is performed? You may use some Event Handler:


    Code:
    this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
    
    private void radioButton1_CheckedChanged(object sender, EventArgs e)
    {
    	if(radioButton1.Checked)
    	{
    			   
    	string stringResult;
    	tring str1 = label1.Text;
    ...
    See more | Go to post

    Leave a comment:


  • tbarto
    started a topic Getting number of columns in ListView
    in C

    Getting number of columns in ListView

    Hi

    For some time I've been working on an application that may be able to find a specified item in ListView ( WinAPI ). It is possible to get some item using e.g LVM_GETITEM message and LVITEM structure. My question is: Do You know any way to get a number of columns in a ListView? Is there any specified message?

    Thank You
    See more | Go to post

  • tbarto
    replied to How to send email in Asp.Net/C#.Net
    in .NET
    Hi

    Since I am a new at this forum, please forgive me all the mistakes. Thank You for Your advices. I will follow them in the future.
    Sorry, I am not able to edit my previous post anymore....
    See more | Go to post

    Leave a comment:


  • tbarto
    replied to How to send email in Asp.Net/C#.Net
    in .NET
    Hi, You can try to do that in the following way:
    Code:
        public class Emailer
        {
            #region Variables
    
            private string _smtpServer;
            private string _userName;
            private string _password;
            private ArrayList _recipients;
    
            #endregion
    
            #region Constructors
    
            public Emailer()
            {
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...