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...
User Profile
Collapse
-
How to Get Default system dialogs text in C#
-
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");
-
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 -
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 :-(...Leave a comment:
-
Sorry,
My fault. Amitjul - everything works exactly as in Your code.
Thanks...Leave a comment:
-
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!!!...Leave a comment:
-
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
Leave a comment:
-
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...Leave a comment:
-
-
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");
Leave a comment:
-
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
Leave a comment:
-
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...Leave a comment:
-
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... -
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... -
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....Leave a comment:
-
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;
Leave a comment:
-
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 -
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....Leave a comment:
-
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() {
Leave a comment:
No activity results to display
Show More
Leave a comment: