|
The Mouse Down and Up events are already available for the button control. Why don't you extend it to add the desired functionality?
If you are actually trying to create a global mouse event hook, this is not possible in Windows Mobile.
|
|
|
|
|
According to a lot of places mouse down and other event's are not supported ny .net compact framework.
I have looked for the mouse down event in my visual studio 2008, and it's simple not there.
I have found several links to msdn forums stating that this is one of the things not implemented in the comapct framework.
|
|
|
|
|
You are right - the mouse down and up events aren't available for buttons. I remember seeing them in CF applications and I erroneously assumed they were available.
I've checked and they are available for Panel control. Perhaps you could override this to have button functionality. Or may be there is a simple control that supports these events and can serve as basis.
|
|
|
|
|
How to intercept outgoing SMS message in VC++?
|
|
|
|
|
Use the CEMAPI notifications to monitor when an item appears in outbox folder.
|
|
|
|
|
Thanks Joel,
but
i have some problem in system notification.
Plz help me
thx
|
|
|
|
|
We are trying to send SMS messages from PC using Sony Ericcson K580i mobile through Hyperterminal. But, I am unable to send the message as it gives COM+ Error. Here are the details which we followed:
1) Connected to PC using USB Port
2) Configured Hyperterminal and able to communicate with the mobile and able to give a call.
3) using Hyperterminal enter the below commands
at
OK
at+cmgf=0
+CMGF: 0
Note: Here SMS sending in PDU Format
4)Next tried to send message: Here my Service Provider is Airtel and there SMSC number is: +919845087001 and recpient number is: 919845467289
and trying to send message "hellohello". So I did tried to send the message in the following PDU format:
at+cmgs=20
0011000C911989546427980000AA0AE8329BFD4697
and got error message: +CMS ERROR: 304.
So, please anyone guide me and let me know what mistake i'm doing. Yours help is really appreacited.
|
|
|
|
|
Can we use the Component developed in C#2.0 (using VS2005) in mobile application to access the business logic.
(Mobile application - Windows Mobile 5.0 and .net FW2.0)
ch sriniw8z
|
|
|
|
|
Yes you can
Dushan Perera
|
|
|
|
|
Your question is a little vague in that you don't give any information on the component you wish to reuse. A possible interpretation of your question is that you have developed a portion of business logic designed to run on a desktop or server and you want to copy that DLL to a mobile device. If that is what you are planning to do then it won't work (it is possible to develop a component targetting the Compact Framework and run it on a desktop without recompilation, but that's not practical). If this doesn't answer your question please give more information on this component and how you need to use it.
|
|
|
|
|
Hi,
I wrote an application that able to connect another bluetooth device in .Net Framework 2.0 using bluetooth API, now I want to do this with .Net Compact Framework on my mobile device. That's the problem, When I'm Calling Bluetooth API like WSAStartup or using SizeOf or any other methods of Marshal class, it gives me NotSupportedException exception.
Please tell me how can i solve this problem.
Thank you.
DMASTER
|
|
|
|
|
can you make a simple console mode program that recreates the error? NotSupportedException is thrown for a wide range of problem sources and a code example would help diagnose your problem.
|
|
|
|
|
I use Mywork network settings to connect local network and use MyIsp connect using GPRS so i use several gprs and local network connection. I need to change the connection according to MY program. I am using C# Please help me.
Dushan Perera
|
|
|
|
|
help with socket programming ?? no respnse frm PC
i am doing a project on GPRS communication
my project requires sending a string of data from PC to a mobile
the MOBILE service provider i use uses a WAP GATEWAY so i cannot connect to it
becoz the IP address of the mobile is hidden behind the gateway
so i changed it to that the mobile will connect to the PC
i am able to establish the connection and the string of data is going to PC
but the response i.e " data recieved"
should be sent but how do i send the repsone
plz tell me becoz i do not know the IP ADDRESS OF THE MOBILE ???
plz help me with code if u can becoz i am new to J2ME or plz explain me the logic atleast
|
|
|
|
|
hai all,
i very fresh to wm development and recently looking for some samples how to development an application to sent out an email in window mobile. Can somebody help?
Thanks
|
|
|
|
|
In another article[^] I had to make the device send an e-mail with GPS coordinates upon receiving a special SMS message. The code to do that looked like the following. I've removed some code from this to make it simpler but you need to adapt this to your needs. Note that a device can have multiple accounts and you need to identify the account that you want to use.
public void EmailSendCoordinates(string emailAddress, message, string subject)
{
EmailAccount account =
(new OutlookSession()).EmailAccounts[_Settings.EmailAccount];
EmailMessage msg = new EmailMessage();
msg.To.Add(new Recipient(emailAddress));
msg.Subject = "My location";
msg.BodyText = message;
msg.Send(account);
}
|
|
|
|
|
Hi guys,
Does somebody how can I use ANSI versions of WinAPI?
For example: ExtTextOutA (not ExtTextOutW)
Well I tried, compiling was ok, but the linker said that can't find ExtTextOutA.
P.S. Windows Mobile 5.0 native, VS 2005 SP1.
|
|
|
|
|
Windows Mobile is based on Windows CE OS, which was Unicode based from day one. The ANSI versions aren't available.
|
|
|
|
|
Thank you. I expected this, but because ANSI function were declared I hoped that they are implemented.
|
|
|
|
|
Hi all,
I written the below code with the purpose to sort several string-arrays and two ComboBox.Items.
It's important to precise that I only want to change the order with witch them are stored (in arrays) or displayed in ComboBox.Items (not to sort them alphabetically).
It's also important to precise for Lat1 and Lon1, I input them in TextBox3, using the "." (dot) separator. Using ",", return me an error.
Well, the following code works perfectly (as I espected from it) in emulator of English VS 2005, but doesn't works perfectly in real device (PPC Windows mobile 2003 SE).
I obtain in ComboBoxes. items a not correct and different order of items.
I am almost sure that cause of the problem is the different Language of device (Italian) because the logic of the code is correct, but I don't know how to resolve it.
Italian language use the comma "," as decimal delimitator, instead of the dot.
Can someone help me, please?
Thanks
Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click
Dim Lat1, Lon1, Lat2, Lon2 As Double
Distances = New Single(LatsWpt.GetLength(0) - 1) {}
Dim Distance As Single
Dim Index As Integer
Dim NRow As Integer
Dim LatString As String = ""
Dim LonString As String = ""
For Counter = 1 To Len(TextBox3.Text)
If Microsoft.VisualBasic.Mid(TextBox3.Text, Counter, 1) <> " " Then LatString = LatString + Microsoft.VisualBasic.Mid(TextBox3.Text, Counter, 1) Else Exit For
Next
For Counter = Counter + 1 To Len(TextBox3.Text)
If Microsoft.VisualBasic.Mid(TextBox3.Text, Counter, 1) <> " " Then LonString = LonString + Microsoft.VisualBasic.Mid(TextBox3.Text, Counter, 1)
Next
Lat1 = Val(LatString)
Lon1 = Val(LonString)
For Index = 1 To LatsWpt.GetLength(0) - 1
Lat2 = LatsWpt(Index)
Lon2 = LongsWpt(Index)
Distance = (6371 * 3.1415926 * Math.Sqrt((Lat2 - Lat1) * (Lat2 - Lat1) + Math.Cos(Lat2 / 57.29578) * Math.Cos(Lat1 / 57.29578) * (Lon2 - Lon1) * (Lon2 - Lon1)) / 180)
Distances(Index) = Distance
Next
For Index = Distances.GetLength(0) - 1 To 1 Step -1
For Counter = 1 To Index
If Distances(Counter) > Distances(0) Then Distances(0) = Distances(Counter) : NRow = Counter
Next
Distances(NRow) = Distances(Index) : Distances(Index) = Distances(0) : Distances(0) = 0
WptFile(0) = WptFile(NRow) : WptFile(NRow) = WptFile(Index) : WptFile(Index) = WptFile(0) : WptFile(0) = Nothing
NamesWpt(0) = NamesWpt(NRow) : NamesWpt(NRow) = NamesWpt(Index) : NamesWpt(Index) = NamesWpt(0) : NamesWpt(0) = Nothing
DescriptionsWpt(0) = DescriptionsWpt(NRow) : DescriptionsWpt(NRow) = DescriptionsWpt(Index) : DescriptionsWpt(Index) = DescriptionsWpt(0) : DescriptionsWpt(0) = Nothing
LatsWpt(0) = LatsWpt(NRow) : LatsWpt(NRow) = LatsWpt(Index) : LatsWpt(Index) = LatsWpt(0) : LatsWpt(0) = Nothing
LongsWpt(0) = LongsWpt(NRow) : LongsWpt(NRow) = LongsWpt(Index) : LongsWpt(Index) = LongsWpt(0) : LongsWpt(0) = Nothing
Next
ComboBox1.Items.Clear()
ComboBox4.Items.Clear()
For Index = 1 To Distances.GetLength(0) - 1 : ComboBox1.Items.Add(NamesWpt(Index)) : Next
For Index = 1 To Distances.GetLength(0) - 1 : ComboBox4.Items.Add(DescriptionsWpt(Index)) : Next
End Sub
modified on Saturday, November 29, 2008 11:17 AM
|
|
|
|
|
dear master,,,
I plan to make GPS application in Hand Phone (SE C702) using J2ME,,,
until now, I still confuse about step by step to build this application,,,,
I hope anyone can help to save me from this problem,,,
Cry
thanks,,,,
|
|
|
|
|
Hello,
We have developed a mobile application, but it does not work on Samsung mobiles. I uploaded both Jar and Jad files to my mobile.
Ahmed
|
|
|
|
|
i is an integer holding an 8 bit value of a joysticks position. How do i get an emulator on my pocket pc to see it as an input/button press?
|
|
|
|
|
Hello,
I maintained a program on the mobile device. (OS is wm 5)
The program has a dialog window, the dialog window contains some user-defined listboxes.
And the listbox has check marks and a vertical scroll bar.
If I clicked the up arrow and the down arrow on the scroll bar. The listbox can be scrolled successfully.
But if I dragged the scroll, sometimes the contents of the listbox is disappeared, but sometimes the contents still exists.
In my opinion, the function OnVScroll() must been existed in the program.
But after search within the program, I didn't find a function like OnVScroll to process the scrolling message.
So I thought the scroll message mighe be handled automatically by the OS.
But if the system automatically handle the scroll message, why sometimes success and sometimes fail ?
Then I searched the string "scroll" in whole project. The related result which I found only are
in .rc file :
LISTBOX IDC_LIST_EV,13,74,133,45,LBS_SORT | LBS_NOINTEGRALHEIGHT | LBS_DISABLENOSCROLL | WS_VSCROLL | WS_TABSTOP
in the user-defined listbox.cpp:
hWnd = ::CreateWindow(_T("button"), (LPCTSTR)lParam,
WS_VISIBLE | WS_TABSTOP | m_nStyle,
3, i * m_nItemHeight + 1,
rc.Width() - GetSystemMetrics(SM_CYHSCROLL) - 3,
m_nItemHeight - 1,
m_hWnd,
(HMENU)(i + BUTTONBASEID ),
hInst, NULL );
Can someone give me a suggestion for this strange problem ?
My environment : Visual Studio 2005 SP1 + Windows Mobile 5.0 Pocket PC SDK
Thanks
|
|
|
|
|
Hi guys,
I am developing a smart device application in visual studio 2005. I need to connect the compact device (PDA) to a mysql database which is supposed to be on another computer in the same office. Don't know how to do it. Is there a direct way to access it using oledb provider for mysql (if any) or i have to create a web service and use it? Please help me by providing the code for connectivity.
Thankyou.
|
|
|
|