my apology. i have been asking around but with no result. im starting to think it's not feasible but i have seen other application with this feature. i relli hope to apply this feature? it will definitely make alot of different in terms of user friendly. Any idea for this?
nuttynibbles
Posts
-
How to Detect file opening / close in compact framework -
How to Detect file opening / close in compact frameworkseems like im not getting response for this. hmm is this feasible? otherwise i will probably think of another plan.
-
Creating subfolders on target devicesure you can. what i did was create a configuration file which does various initialization during the startup of the application. for example, the initialization function will check if the sub folder exist. if it is not, it will create the respective sub folders. is this what you're looking for?
-
How to Detect file opening / close in compact frameworkHi, Is there a way to detect file opening / close. When a file is clicked to open, before the mobile phone launch the respective application (e.g. word doc, window media player, etc etc), my system will need to do an operation. Same thing for file close. When the file is completely close, do something to the file. I did a bit of research. Firstly, IMessageFilter won't work because it only detect mouse event on the form. Opening a file in \My Documents or anywhere else outside the form would not trigger the PreFilterMessage Secondly, Event Hook in CF does not support mouse event. It only work with Keyboard. I am sure there is a alternative solution out there. Hope to hear from someone soon. its pretty urgent
-
IMessageFilter to capture click eventi tried the mouse click event on compact framework but the HookManager is giving this error:
The type System.Windows.Forms.MoustEventHandler is defined in an assembly that is not referenced. you must add a reference to assembly Systems.Windows.Forms version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
any solution for compact framework??
-
IMessageFilter to capture click eventhey, I would need to capture click event when a file is open. for example, when a user click to open a word doc file, do something to the file b4 opening it with ms word.
-
Compact framework: how to read and write to a XML fileHi, i got a AppSettings.exe.xml to read and write to. it looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="dir" value="\directory"/>
<add key="fieldname1" value="\value1"/>
<add key="fieldname2" value="\value2"/>
</appSettings>
</configuration>reading frm xml is not of a problem. but writing is.. everytime i write to the xml, the last char will get trim off. for example if i wanna write or append, the xml will look like this
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="dir" value="\directory"/>
<add key="fieldname1" value="\value1"/>
<add key="fieldname2" value="\value2"/>
</appSettings>
</configurationnote: the missing '>'. And if writing continue, more chars will get trim off im using this class to do the read and write to xml: namespace used:
using System;
using System.Xml;
using System.Configuration;
using System.Reflection;using OpenNETCF.Configuration;
using System.Windows.Forms;public class ConfigSettings
{
private ConfigSettings() { }public static string ReadSetting(string key) { return ConfigurationSettings.AppSettings\[key\]; } public static void WriteSetting(string key, string value) { // load config document for current assembly XmlDocument doc = loadConfigDocument(); // retrieve appSettings node XmlNode node = doc.SelectSingleNode("//appSettings"); if (node == null) throw new InvalidOperationException("appSettings section not found in config file."); try { // select the 'add' element that contains the key XmlElement elem = (XmlElement)node.SelectSingleNode(string.Format("//add\[@key='{0}'\]", key)); if (elem != null) { // add value for key elem.SetAttribute("value", value); } else { // key was not found so create the 'add' element // and set it's key/value attributes elem = doc.CreateElement("add"); elem.SetAttribute("key", key); elem.SetAttribute("value", value);
-
How to prevent from open the same formhi thatraja, tks. erm i forgot to mention that i was doing it for windows mobile =). so Application.OpenForms is not available
-
How to prevent from open the same formhi, if i have already open form1, how do i check and not open form1 again??
-
creating dynamic arraytks Dave. =)
-
creating dynamic arrayokay my bad. arraylist is available in compact framework. however, im gonna try your suggestion instead. List looks like a better choice =)
-
creating dynamic arrayi notice that in c# or c++, we normally indicate the size of an array. string[] strArray = new string[5]; strArray[0] = "Ronnie"; strArray[1] = "Jack"; strArray[2] = "Lori"; strArray[3] = "Max"; strArray[4] = "Tricky"; Another way is like this: string[] strArray = new string[] {"Ronnie", "Jack", "Lori", "Max", "Tricky"}; Both have fixed size. is there a way to create an array which can store unlimited amount of data? I know of ArrayList but it is not available in compact framework.
-
How to close all form but not application.exit()hmm okay i will go try it out. tks again Original Griff
-
How to close all form but not application.exit()hi OriginalGriff, what you mean is to create a class which act as a application hub that store all created form instances?? im sorry but wat do u mean by chain into the formClosing event?
-
How to close all form but not application.exit()im implementing windows mobile using compact framework so there isn't application.openforms. is there something else similar?
-
How to close all form but not application.exit()hi, i have a main form. it has list view of items that when clicked will open up another form without closing the main form. i did a inactivity timeout where user will be require to login again. if that happen, how do i close all current open form??
-
Set current form to hide [modified]Great. It works. tks Jacek
-
Set current form to hide [modified]Tks. alternative idea for visible method.
-
Set current form to hide [modified]hey OriginalGriff, Tks for the reply. i have edited my question to make it more clear. I open and hide my form using form.show and form.hide how do i check if the current form is hidden so as not to perform certain task
-
Set current form to hide [modified]Hi, I open and hide form using form.showdialog() and form.hide(); How do i detect if the current form is hidden, and if it's hidden don't do this.
modified on Sunday, February 7, 2010 8:41 AM