|
thanks dave for your reply , i already use this code but the problem was :
i have parent nodes which have a child nodes and the child nodes have also childes and all data returned from a database .
so to make the performance better , i have when the user select any node to clear all other expanded nodes which was selected before
so i wrote this code
For i As Integer = 0 To TreeView1.Nodes.Count - 1
If (i <> e.Node.Index) Then
TreeView1.Nodes(i).Nodes.Clear()
End If
Next
and it works but not totally correct ,
when i select a parent node and then select another it works and clear all the childes nodes under the selected node ,
but when i select a child node which has sub childes it clear the parent of this node and it's normal because the index here has changed ??? that's the problem !
LA ELAH ELA ALLAH MOHAMED RASOL ALLAH
|
|
|
|
|
You can try creating a function to clear the nodes and call it recursively for child nodes as shown below:
Private Function ClearChildren(objTV As TreeView, strParentNode As String) as Boolean
On Error Goto Hell
Dim i As Long
'Use a reference to the Parent node
With objTV.Nodes(strParentNode)
'Loop through the children
For i = 1 To .Children
'Determine if the child has a sub node
If .Child.Children > 0 Then
'Recurse this method
ClearChildren objTV, .Child
End If
'Clear the node
objTV.Nodes.Remove .Child.Index
Next
End With
'Success
ClearChildren = True
Exit Function
Hell:
End Function
Regards,
Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
Hi,
I have a problem to make a CAB file for my project exe (create in Visual studio 2005, C#) into PocketPc 2003. When i execute a cab on a PDa with pocketpc 2003 I retrive an error: "It's not a valid CAB file for windows CE".
The CAB work perfectly on PDA with windows mobile 5.0.
Why? I can create a CAB file compatible with pocketpc2003?
Thanks a lot.
Alex
|
|
|
|
|
Hi Alex,
Might be possible there is not installed Framwork.
Pavan Pareta
|
|
|
|
|
Hello,
I am developing an Icon Drawing program for Pocke PC, I am using Visual Studio 2008, and VB .NET Compact Framework. Can someone help me do something like this: http://www.talpykla.com/files/3992/Pavizdys.jpg
I want that the pixels look like big squares when drawing, and that there was a grid. Ant that I could save that picture in a normal (16x16 or 32x32) .ico format. Can someone help me?
Thanks in advance!
|
|
|
|
|
Hi all,
I have a little problem in my simple application I'm developing with VS 2005 and C.F. 2.0 in VB.
The sorting code to sort a normal string array do works perfectly in developing environment and also in Emulator, but when I transfer program in real device, I don't obtain the correct sorting of array.
But, there is no error in the program.
The above string array, during the code execution is converted (before sorting)in Single values, as strings rapresents decimal number.
The only hypothesis I have, is that while developmet environment is in English, the real device is Italian language, and then have respectively "dot" and "comma" separator for decimal value.
But I tryed different way to input and manage numeric values but in any cases sorting is not correct on PDA.
Some idea?
Thanks
Marco
|
|
|
|
|
Hi all,
How to develop system for IVR..........any idea.
Regards
|
|
|
|
|
I really do not think it is feasible.
You may refer the link below which explains why:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2858014&SiteID=1
Regards,
Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
After a fresh install of Platform Builder 5.0 on WinXP, i create a new
project, but very strange , "OSDesignView Tab" is not there.
if i sysgen, error occurs, "Invalid parameters passed to Wince.bat".
I then try repair-install PB, reinstall WinXp, all in vain.
i haven't found a sollution yet.
Would anyone give me some clue ?
E-Mail: carr123@163.com
|
|
|
|
|
Hi all, I am trying a quick C# app using that can parse through a Midi file, get the current note as it parses, play the note and update a display to show what note had just been played. I had found some examples that include winmm.dll through interop, but winmm.dll is not included in the .NET CF. I tried to make a cab project and include it in the GAC but it is (obviously) not a valid assembly, I tried to register it using cgacutil.exe but when I click it, it just pops a message box up stating the versions installed, I included it in the app's executing folder, but still could not be found.
So is this possible to do at all? if not can anyone point me in a using an API. I have tried to use SndPlay but that takes a filepath. MessageBeep is... well not gonna work cause there is no freq or duration. Does beep only work on pc pocket 2003??
I have been using WM6 but could use any platform emulator. Also I could try this in C++ but I'm less familiar with it.
Thanks for any ideas / suggestions in advance.
|
|
|
|
|
Hi all,
does http protocol and its authentication remains same?? When it comes to mobile web form(in mobile browsers) and desktop webform(in normal IE/firefox...)
CAN U Give Me Various mobile web Browsers????
thanks,
Prashanth
prashanth,
s/w Engineer
|
|
|
|
|
Hi all,
please suggest me the some authentication types other than(Basic,Access and Digest HTTP authentications)
I need to impliment authentication to my mobile appliation,
I want to know the available methods, that I can use to authenticate a web form in WinCE.
Hope U got me,
I just want to know HTTP Authentication types and suggestions.
thanks,
Prashanth
prashanth,
s/w Engineer,
integramicro systems
modified on Wednesday, April 23, 2008 5:49 AM
|
|
|
|
|
hi all,
how can i get all the contact of Windows mobile ?
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
Hello Rupesh,
Are you talking about Sim contacts or Outlook Contacts?
Incase its SIM contacts; there is a wrapper for SIM API in the OpenNETCF.Phone.Sim Namespace of the SDF (Smart Device Framework), which can be downloaded from the following link:
http://www.opennetcf.com/Products/SmartDeviceFramework/tabid/65/Default.aspx
It should save you a lot of work.
You may also refer the following article from Microsoft for SIM programming:
http://msdn2.microsoft.com/en-us/library/ms839358.aspx
Regards,
Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
hi all,
how can i determine that particular form is open or not ?
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
Mike Calligaro has an excellent blog entry about determining whether your app is in the foreground or not (and what you should do about it):
Power to the Developers part 1[^]
|
|
|
|
|
Hello,
I had written an application to hook 'CreateProcess()' in Windows CE.
But this is only for application level, that is hook is applicable only for current process.
Now in order to hook this API system-wide, i need to load the HookDLL.dll (in which i have written the code for API hooking) to all the processes.
On the internet i found that it can be done using registry.
We need to insert the DLL name at following location
HKEY_LOCAL_MACHINE\SYSTEM\KERNEL
"InjectDLL" = REG_MULTI_SZ : "MyDLL1.DLL","MyDLL2.DLL",
But i am not able to locate 'Kernel' key under the registry of Win CE.
Is there any security issue involved with this?
Thanks in Advance!!
|
|
|
|
|
tony_udz wrote: Is there any security issue involved with this?
You seriously don't know the answer to this question? Think about it. You're trying to inject an arbitrary .DLL with any code you want into every process in the system. Yep! If that doesn't define a huge security risk, I don't know what does.
tony_udz wrote: We need to insert the DLL name at following location
HKEY_LOCAL_MACHINE\SYSTEM\KERNEL
"InjectDLL" = REG_MULTI_SZ : "MyDLL1.DLL","MyDLL2.DLL",
But i am not able to locate 'Kernel' key under the registry of Win CE.
Is there something stopping you from adding the KERNEL key yourself??
|
|
|
|
|
Thanks Dave for your response.
Actually i am naive to this enviornment.
I agree with you that logically ishould be able to put any DLL in all the processes.
I inferred it from the microsoft's blog: -
=======================================================================
Susan Loh [MS] (Moderator):
Q: My app uses the undocumented function PerformCallBack4 on Windows CE 2003. This now fails on Mobile 5. I know it's undocumented, and used at my own risk, but is there an alternative in Mobile 5?
A: No. We are killing that off. We really should discuss why you needed it. MikeThom tells me you were using it to implement DLL injection into another application. There are ways to inject DLLs like that (our tools use them) but I'm not sure how accessible they are to you. Is your program running on PocketPC (which has low security) or Smartphone (which protects a lot of things)? I presume PPC since you probably couldn't PerformCallBack4 on SP anyway?
MikeThom-MS (Expert):
Q: My app uses the undocumented function PerformCallBack4 on Windows CE 2003. This now fails on Mobile 5. I know it's undocumented, and used at my own risk, but is there an alternative in Mobile 5?
A: For security reasons this API was disabled. The only alternative to injecting a DLL would be to use the reg key "InjectDLL". The problem though still is that on a SmartPhone this maybe a secure key that you can not modify. PPC may still have this key open. Look in the Platform builder docs for information.
Susan Loh [MS] (Moderator):
Q: If DLL injection / sub classing controls is becoming impossible, will there be alternative methods (now or in the future) for applications to get access to global keyboard & mouse events?
A: We have been discussing this and basically think there isn't any supported way to do it. For security reasons we don't want to expose that sort of thing (prevent hackers from stealing your password / credit card #). Maybe there's a way to use our IME (input method -something) interface. Otherwise you might have to wait for something better to be added for this scenario.
=======================================================================
Do you think we cant inject DLL using this?
Please let me know if you know any other method to do this.
|
|
|
|
|
tony_udz wrote: Do you think we cant inject DLL using this?
The only way to tell is going to be to try it.
tony_udz wrote: Please let me know if you know any other method to do this.
I don't know of any other ways to do this, and, apparently, Microsoft isn't telling either.
|
|
|
|
|
|
Hey,
Thanks for your reply.
I had gone through this article at Dr. Dobb's forum.
In this code 'PerformCallBack4()' is used to inject DLL in other process.
And as per my research this API is not supported on Win CE >= 5.0 platform.
I have also read a article in which a gentleman claims that 'PerformCallBack4' API can be used in Win CE 5.0 platform all you require is the trusted application.
I have tried it as well but it was not working.Please let me know if you have any idea regarding this.
I found one more method of injecting DLL using registry keys.
HKEY_LOCAL_MACHINE\SYSTEM\KERNEL
"InjectDLL" = REG_MULTI_SZ : "MyDLL1.DLL","MyDLL2.DLL",
The data type is REG_MULTI_SZ or an array of strings, which can list more than one DLL. The name of the DLL can contain the full path and file name, or just the file name.
Here you need to take care of two things:
1) You need to create key and its subkey.
2) Dll you are injecting must be signed as trusted.
Using this approach i can load my DLL to every processes except system processes.still my functionality is not working for the same. I'll work in this issue today and update you if you say.
Thanks again and please correct me if i am wrong anywhere.
modified on Monday, April 28, 2008 11:25 PM
|
|
|
|
|
I have not tried using registry for injecting DLL. I tested today the CeAPISpy application (from mentioned web page) and it worked on WM6 (HTCP6500) (hooked were CreateFile, CreateEvent, OpenEvent). I was not able to create any new process while the application was running though. The source code is more up to date than the article, it provides some work around for lack of proper PerformCallBack4 functionality on Smartphones 2005. You might want to check it out.
|
|
|
|
|
I searched out for the workaround for calling 'PerformCallBack4' API, somebody had tried this function on WinCE 5.0 using the trusted/signature. I also tried the same thing i.e imade my application trusted by getting it privileged certificate but 'PerformCallBack4()' was returning NULL.
|
|
|
|
|
i am trying to load a dataset from XML file, but i am getting an Error.
"OutOfMemoryException"
here is the code
DataSet DSRead = new DataSet();
DSRead.ReadXml("\\Program Files\\Smartdeviceproject1\\output.xml");
i used the same code on windows application and its working fine.
|
|
|
|