Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
N

nuttynibbles

@nuttynibbles
About
Posts
56
Topics
25
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to Detect file opening / close in compact framework
    N nuttynibbles

    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?

    Mobile database tutorial

  • How to Detect file opening / close in compact framework
    N nuttynibbles

    seems like im not getting response for this. hmm is this feasible? otherwise i will probably think of another plan.

    Mobile database tutorial

  • Creating subfolders on target device
    N nuttynibbles

    sure 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?

    Mobile question

  • How to Detect file opening / close in compact framework
    N nuttynibbles

    Hi, 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

    Mobile database tutorial

  • IMessageFilter to capture click event
    N nuttynibbles

    i 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??

    C# tutorial

  • IMessageFilter to capture click event
    N nuttynibbles

    hey, 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.

    C# tutorial

  • Compact framework: how to read and write to a XML file
    N nuttynibbles

    Hi, 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>
    </configuration

    note: 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);
    
    C# tutorial xml help question announcement

  • How to prevent from open the same form
    N nuttynibbles

    hi thatraja, tks. erm i forgot to mention that i was doing it for windows mobile =). so Application.OpenForms is not available

    C# question tutorial

  • How to prevent from open the same form
    N nuttynibbles

    hi, if i have already open form1, how do i check and not open form1 again??

    C# question tutorial

  • creating dynamic array
    N nuttynibbles

    tks Dave. =)

    C# csharp c++ data-structures question

  • creating dynamic array
    N nuttynibbles

    okay my bad. arraylist is available in compact framework. however, im gonna try your suggestion instead. List looks like a better choice =)

    C# csharp c++ data-structures question

  • creating dynamic array
    N nuttynibbles

    i 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.

    C# csharp c++ data-structures question

  • How to close all form but not application.exit()
    N nuttynibbles

    hmm okay i will go try it out. tks again Original Griff

    C# question tutorial

  • How to close all form but not application.exit()
    N nuttynibbles

    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?

    C# question tutorial

  • How to close all form but not application.exit()
    N nuttynibbles

    im implementing windows mobile using compact framework so there isn't application.openforms. is there something else similar?

    C# question tutorial

  • How to close all form but not application.exit()
    N nuttynibbles

    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??

    C# question tutorial

  • Set current form to hide [modified]
    N nuttynibbles

    Great. It works. tks Jacek

    C# question

  • Set current form to hide [modified]
    N nuttynibbles

    Tks. alternative idea for visible method.

    C# question

  • Set current form to hide [modified]
    N nuttynibbles

    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

    C# question

  • Set current form to hide [modified]
    N nuttynibbles

    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

    C# question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups