Hello everybody, does anybody have any idea of how it's possible to access a specific TreeNode object in a TreeView, given the 'FullPath' property of that node ? Thanks for helping, Pat.
p.f. Goudjo-Ako Bringing our energy together !
Hello everybody, does anybody have any idea of how it's possible to access a specific TreeNode object in a TreeView, given the 'FullPath' property of that node ? Thanks for helping, Pat.
p.f. Goudjo-Ako Bringing our energy together !
It works this way. Thanks for replying ! Pat.
p.f. Goudjo-Ako Bringing our energy together !
Ok, I found it. But it's not directly available in the popmenu displayed after pointing a variable. I did it from the 'Watch' window. Thanks !
p.f. Goudjo-Ako Bringing our energy together !
Thanks for answering. But, there is no option for hexadecimal, so I can't uncheck it. I'm working with Visual Studio 2005.
p.f. Goudjo-Ako Bringing our energy together !
Hi, when I try to evaluate a member in debug mode by pointing on a variable to see its content, the data that is displayed is i hexadecimal. For example, I do the following instruction: int t=-1;
After passing the instruction, I try to see the content of the variable 't' and what I see is '0xffffffff
'. All the data I try to evaluate appear using the same notation. Do you know how I can change that to see them in decimal ? Thanks a lot for attention. Patrick.
p.f. Goudjo-Ako Bringing our energy together !
Hi, I'm struggling with a property grid control. Here is what I do: - I display properties associated to a specific object in the property view. - For each property, I use a specific editor and allows value to be changed in another form. Each property has access to a specific editor which inherits from 'UITypeEditor'. - In the EditValue method of my editor, I call my form using the 'ShowDialog' method. Here is the beginning of my EditValue method: public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { string startingPropertyValue = null; // The value that the property had before we display the modal form. PropertySpec currentPropertySpec = null; if (context != null && context.Instance != null && provider != null) //if (provider != null) { editorService = provider.GetService(typeof(IWindowsFormsEditorService)) as IWindowsFormsEditorService; }
My problem is that I'm not able to retrieve the values selected in my second form and display them for each selected property. Can you help me please ? Thanks. Pat.
p.f. Goudjo-Ako Bringing our energy together !
This is interesting ! It does the same thing than using the Thread.Sleep(time) with a constant check of the handle on the process's main window, but in BETTER and MORE SIMPLE. Thanks !
p.f. Goudjo-Ako Bringing our energy together !
We can also use Thread.Sleep(time);
p.f. Goudjo-Ako Bringing our energy together !
Yeah, you're right ! What about the following little modification of your first code ? bool getHandle = true; int waitingTime = 300; while (getHandle) { if (InterProcCommunication.CurrentProcess.StartTime.Ticks <= (DateTime.Now.Ticks - waitingTime)) { getHandle = true; } else { getHandle = false; }
p.f. Goudjo-Ako Bringing our energy together !
Since you start by intializing GetHandle to false, we'll never enter in the while loop. No ?
p.f. Goudjo-Ako Bringing our energy together !
I'm going to try ur suggestion. There's no stupid idea ! never ! Thanks a lor for helping. I'll be back with comments.
p.f. Goudjo-Ako Bringing our energy together !
Hi, I start a process using the Process.Start method with appropriate arguments. I can see that the process is created. However, when I try to get a handler on the process's main window , I get 0. It seems to be because the process doesn't already have finished drawing itself. How can I resolve this problem ? Thanks !
p.f. Goudjo-Ako Bringing our energy together !
thanks.
p.f. Goudjo-Ako Bringing our energy together !
Yes, I didn't post it. I also tried to use PostMessage instead of SendMessage. But I don't get appropriate results. Any idea ? Thx.
p.f. Goudjo-Ako Bringing our energy together !
I already had: base.WndProc(ref m); Isn't it supposed to do the same thing ? I tried what u asked me, but my c# application doesn't receive any information back. thx.
p.f. Goudjo-Ako Bringing our energy together !
Thanks Mark, I dit it.
p.f. Goudjo-Ako Bringing our energy together !
Hi, I'm struggling with a problem. I want to catch a 'WM_COPYDATA' event that occurs in a C# application. I send a data from a C++ application. The bridge is correctly done I think. So, sometimes it works, usually when my C# application is active. But most of the time, it doesn't work, because when trying to catch the appropriate WM_COPYDATA message in WndProc overrided method of my C# application, the program stays catching a couple of other messages like: WM_WINDOWPOSCHANGED, WM_ACTIVATEAPP, WM_NCACTIVATE, WM_ACTIVATE and so on. Doing so, it almost never catch the WM_COPYDATA message that I sent from my C++ application. Can you help me please ? Thanks. P.S.: I catch messages in my C# application like this: protected override void WndProc(ref Message m) { string g = m.ToString(); if (m.Msg == WM_COPYDATA) { // instructions. } } p.f. Goudjo-Ako Bringing our energy together !
p.f. Goudjo-Ako Bringing our energy together !
Hi, I'm struggling with a problem. I want to catch a 'WM_COPYDATA' event that occurs in a C# application. I send a data from a C++ application. The bridge is correctly done I think. So, sometimes it works, usually when my C# application is active. But most of the time, it doesn't work, because when trying to catch the appropriate WM_COPYDATA message in WndProc overrided method of my C# application, the program stays catching a couple of other messages like: WM_WINDOWPOSCHANGED, WM_ACTIVATEAPP, WM_NCACTIVATE, WM_ACTIVATE and so on. Doing so, it almost never catch the WM_COPYDATA message that I sent from my C++ application. Can you help me please ? Thanks. P.S.: I catch messages in my C# application like this: protected override void WndProc(ref Message m) { string g = m.ToString(); if (m.Msg == WM_COPYDATA) { // instructions. } }
p.f. Goudjo-Ako Bringing our energy together !
Hi, I'm struggling with a problem. I want to catch a 'WM_COPYDATA' event that occurs in a C# application. I send a data from a C++ application. The bridge is correctly done I think. So, sometimes it works, usually when my C# application is active. But most of the time, it doesn't work, because when trying to catch the appropriate WM_COPYDATA message in WndProc overrided method of my C# application, the program stays catching a couple of other messages like: WM_WINDOWPOSCHANGED, WM_ACTIVATEAPP, WM_NCACTIVATE, WM_ACTIVATE and so on. Doing so, it almost never catch the WM_COPYDATA message that I sent from my C++ application. Can you help me please ? Thanks. P.S.: I catch messages in my C# application like this: protected override void WndProc(ref Message m) { string g = m.ToString(); if (m.Msg == WM_COPYDATA) { // instructions. } }
p.f. Goudjo-Ako Bringing our energy together !
Hi, in C# it's possible to get a handle to a process by doing: Process[] p = Process.GetProcesses(); and checking each process in 'p' to find a specific one by its using 'ProcessName' property. Does someone now how to that in C++ to search for a specific process ? Thanks a lot ! Pat.
p.f. Goudjo-Ako Bringing our energy together !