cheekangteh's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
14 (0.03 per day)
Joined:
04-December 11
Profile Views:
974
Last Active:
User is offline Feb 08 2012 09:59 PM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   cheekangteh has not set their status

Posts I've Made

  1. In Topic: how to keep running a "checking file function"

    Posted 8 Feb 2012

    hi FileSystemWatcher is not support in window mobile 6 professional (compact framework), what can i solve this if i wish to use this method?

    Actually the code i post before just the first step for my project. After that i wish to replace the message box to a button event.

    the code should be:
    Private Sub StartTracking_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim FILE_NAME As String = "\Program Files\Fast_Automatic_Accident_Notification_Through_SMS\Resources\contact4.txt"
    
            If System.IO.File.Exists(FILE_NAME) = True Then
    
               Button2_Click(sender, New System.EventArgs())
    
                       
    
            End If
    
    End Sub
    

    the system will operate like this:
    1. i hope to run this code continually
    2. once the mobile receive a file name "contact4.txt" and save at location "\Program Files\Fast_Automatic_Accident_Notification_Through_SMS\Resources\", the system will trigger the " Button2 ", if the file not exist at the location, i will not do anything.

    My question:
    1. May i used timer to build this function?
    2. FileSystemWatcher?
    3. and my code is correct if paste in program load "StartTracking_Load"? or need to paste at other function?
    3. or any other method can suggest for me?
  2. In Topic: how can i overwrite a text file in window mobile 6 professional

    Posted 20 Jan 2012

    Hi sorry,

    After i double checking the file.

    The file is overwrite after i click the button (when the program is still running), but after i close the program and run it again, it just show me the old contact without change to new contact that overwrite just now.

    kindly advice how can i permanent overwrite a text file.

    thanks a lot.
  3. In Topic: auto SMS after trigger by other bluetooth device for wm6, vb.net

    Posted 26 Dec 2011

    hi, what should i coding for
     'do stuff 
    


    i had try
     Button2_Click(sender, New System.EventArgs()) 
    

    and
     Button2.PerformClick() 
    


    both also bring me an error.

    kindly advice
  4. In Topic: auto SMS after trigger by other bluetooth device for wm6, vb.net

    Posted 26 Dec 2011

    hi,

    i get what u mean now.
    tq so much.

    that's mean i cant used .PerformClick()for my button because it not a method for my button.

    so i just used back
    Button2_Click(sender, New System.EventArgs())
    
    


    for my program? seem that have no alternative way to solve it.

    am i right?

    sorry and thanks you so much.
  5. In Topic: auto SMS after trigger by other bluetooth device for wm6, vb.net

    Posted 26 Dec 2011

    View Post_HAWK_, on 26 December 2011 - 04:28 AM, said:

    Private Sub PerformClick()
      'run code in here that you would normally want in the click event
    End Sub
    
    Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
           PerformClick() 
    End Sub
    


    Now any other event can call PerformClick()[/il]


    hi,
    i had try with this:
    Private Sub PerformClick()
      If TextBox1.Text = "1" 'i get an error here ("PerformanceClick" is not a members of 'System.Windows.Forms.Button'.
     Then
    Button2.PerformClick()
    ElseIf MessageBox.Show ("no accident") Then 
    End If
    End Sub
    
    Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
           PerformClick()
    End Sub
    
    


    kindly advice. Thanks

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Click here to e-mail me

Friends

cheekangteh hasn't added any friends yet.

Comments

cheekangteh has no profile comments yet. Why not say hello?