Now you mention it I realise I have been a bit stupid. I don't need to copy the empty folders when I deploy the app. I will just add an initialisation function to my app and create them if they don't exists. Thanks for the pointer.
Paulo Mitchell
Posts
-
Creating subfolders on target device -
Creating subfolders on target deviceI have an app running on a PDA which makes use of a number of subfolders. After my initial build and deploy I just created these folders manually on the device. Now I am looking to deploy the app onto more devices and want to have these folders created for me. Is there some way that I can do this as part of the initial deploy?
-
SHDeviceLockAndPrompt problemsWM 6.0 Pocket PC C# Visual Studio 2008 I have been trying to get the above command to work in order that I can allow the user to lock the device and stick it in his pocket between jobs without it bumping around and entering spurious data. The instructions seem quite striahtforward and I have followed them. Declare as ...... [DllImport("aygshell.dll")] public extern static IntPtr SHDeviceLockAndPrompt(); and call it with.... IntPtr hresult=SHDeviceLockAndPrompt(); When I run the code I get a 0 return but nothing happens. I have signed the app and I don't get any errors or prompts on the PDA when executing. I can use the lock functionality on the PDA directly and it is fine. I have no passwords set up. I have a few questions: 1. Does anybody have any idea what I may be doing wrong 2. Does anybody know what should happen. I added a button to one of the forms (launched by another form) in my app and used the on_click event to make the function call. I am trying to picture what should happen to the UI. 3. Assuming that I can't get this to work, does anybody have any suggestions as to how I can disable/enable the app quickly and easliy by the user. I realise that the user could just put the forms into the background and click the WM Lock button but I really need a single click solution. Thanks
-
Navigating the DataGridI would like to be able to scroll down a DataGrid control in c# .net cf (3.5) and take an acion every time a new row is highlighted. Using the stylus and the OnClick Event is fine but I would like to be able to scroll using the Navigation button (or even the Jog Wheel). Neither of these will fire an OnClick event. I can capture the Navigation Button's Up and Down events and keep a running tally of my index but would like a more elegant solution which would work with the stylus, the Navigation Button and the Jog Wheel. I am sure that there must be some way of detecting that a row has been highlighted / selected. Can anyone help.
-
DataGrid SelectedIndexChanged method not avaiolable in Compact FrameworkThis question was originally posted in the c# forum in error. I have an application running on a PDA (Windows Mobile 6.1)that currently uses the OnClick Event of a DataGrid to perform some functionality. I would like to have the same functionality run when the current row of my DataGrid is highlighted (by the user scrolling to it using the navigation button instead of tapping on it with the stylus). The method to use would seem to be OnSelectedIndexChanged but this does not seem to be available in the Compact Framework (3.5). The OnGotFocus doesn't seem to be suitable either (I guesss that this is because it applies to the DataGrid itself and not the row). Can anyone suggest how I can get this to work. Note that I only want the event to fire when the user moves to the row and not when the grid is being populated. Thanks
-
dataGrid SelectedIndexChanged Method not available in Compact FrameworkThe problem is that I will not be clicking on the grid so the onClick event won't fire. I will just be using the button thing at the bottom of the PDA ro scroll down the list. I was looking for an event that would fire when the row was highlighted. The SelectedIndexChanged looked like the one for me but that doesn't seem to be available in the Compact Framework. I will post this again on the Mobile Development board and make my question a bit clearer. Thanks for your reply anyway.
-
dataGrid SelectedIndexChanged Method not available in Compact FrameworkI have an application running on a PDA that currently uses the OnClick Event of a DataGrid to perfortm some functionality. I would like to have the same functionality run when the current row of my DataGrid is highlighted (by the user scrolling ro it instead of clicking on it). The method to use would seem to be OnSelectedIndexChanged but this does not seem to be available in the Compact Framework (3.5). I The OnGotFocus doesn't seem to be suitable either (I guesss that this is because it applies to the DataGrid itself and not the row). Can anyone suggest how I can get this to work. Note that I only want the event to fire when the user moves to the row and not when the grid is populated. Thanks