|
How to get remaining battery status using VB .Net
|
|
|
|
|
That depends on whether or not you are willing to P/Invoke native methods. You can get a qualitative (non-numeric) description of the battery status from the State and Notifications broker through the PowerBatteryStrength[^] member to get it's power level or PowerBatteryState[^] to see whether or not it is charging.
If you want more detailed information on the battery you will need to P/Invoke GetSystemPowerStatusEx2[^]
I made use of this function in a CodeProject article on Windows Mobile Power Management[^]
|
|
|
|
|
How can I move sms from inbox to anoher folder in windows mobile pocket pc. I am working in vb.net.
plz help me
thanx in advance
|
|
|
|
|
Have u got any solution for it? if yes please mail me on this Email Id: manvendra.cs1@gmail.com
Thanks
|
|
|
|
|
I have a mobile application with c#. Create a database and some tables. In c#, insert, delete or update on a dataset but I can't update this dataset to database. Close application and reopen, All new datas are lost. What is my wrong ?? Can you help me ?
S.A.A
|
|
|
|
|
Please someone help me to launch executable (.exe) in Pocket PC using VB .Net
|
|
|
|
|
Here is a snippet in C#, won't be a problem to convert to VB:
ProcessStartInfo p = new ProcessStartInfo("iexplore.exe","");
Process.Start(p);
Regards,
Lev
|
|
|
|
|
Thank you Lev
|
|
|
|
|
You're welcome
Regards,
Lev
|
|
|
|
|
Hi my friends, I want to write a mobile application with c# or vb.net. This is my first experience about smart device. How can I connect to access file. Insert delete update.. I can't connect mdb with use Sqlce. Please help me. Thanks..
S.A.A
|
|
|
|
|
I think its not possible. Access provider doesn't support by Smart Device application. Is there any other method for this ?
S.A.A
|
|
|
|
|
.mdb file you can not connect directly.
See this Link[^]
Pavan Pareta
|
|
|
|
|
As of yesterday the 24 hours of Windows Mobile series has reached its halfway point. . I thought this would be a good timme to post the links to all of the recorded presentations for those that may have missed one.
modified on Friday, December 19, 2008 5:29 PM
|
|
|
|
|
Hi,
I am seeking for a good tutorial or a book for Windows Mobile Development with VB.net. If you know a good one, would you please advice me. In the meanwhile, if you know how to perform multiple selections for listview with P/Invoke, I would really appreacite to have a sample code.
Thanks.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
Of the books I've seen they all either use C# or C++ for their example code. But if you've learned VB.Net then you should have no trouble understanding the the books with the C# examples. That being said I would suggest you get "Microsoft Mobile Development Handbook." The book concentrates more on explaning the classes and concepts that you will use in Windows Mobile development than walking through code.
|
|
|
|
|
Hello,
Plz anyone has the source code of an application where i can send a colored sms?
Thanks & Regards
yasso
|
|
|
|
|
It is not possible to create colored text using SMS, it is AFAIK possible using MMS, though.
Regards,
Lev
|
|
|
|
|
No, it is possible, i saw some applications on the web and i download one but unfortunately i can't use it in my country.
yasso
|
|
|
|
|
|
I am new to mobile app programming, how much memory is generally expected to be available in contemporary devices using Window CE or equivalent? I have a stand-alone Windows application framework that can run Windows applications down to about 2 megabyte footprint. If it can fit into a telephone device, a whole new market may open up for me.
|
|
|
|
|
Most Windows Mobile devices available today ship with 128-192MB of RAM. Not all of it is available for applications, since the RAM is also used for loading the OS and storage of files. The memory for running programs would be 30-60MB. In my old phone (64MB of RAM) I have 15MB available. In Windows CE you can fine tune this setting (favor application RAM over storage RAM and vice versa), but in Windows Mobile the ratio is handled automatically by the OS.
I would say that 2MB is a bit high for a mobile application, but still not a forbidding value. You need of course to do some testing in an actual device before deciding.
|
|
|
|
|
#include <windows.h>
#include <wincrypt.h>
#include <iostream>
using namespace std;
static HCRYPTPROV hProv = NULL;
static HCRYPTPROV hNewProv = NULL;
static HCRYPTKEY hKey = ERROR_INVALID_HANDLE;
DWORD nOutBufSize = 4096;
char lpOutBuf[4096] = "";
DWORD BytesReturned = 0;
int wmain()
{
//if CryptAcquireContext is successful then go inside otherwise not
if(CryptAcquireContext(&hProv, NULL, NULL, PROV_RSA_FULL,
CRYPT_VERIFYCONTEXT))
{
if(!CryptGenKey(hProv, AT_KEYEXCHANGE, 0, &hKey))
{
//WriteDebugMessage(L"GMDSD: FILTER_DeviceIoControl called CryptGenKey failed", eError);
}
}
else
{
//WriteDebugMessage(L"GMDSD: FILTER_DeviceIoControl called CryptAcquireContext failed", eError);
}
unsigned char buff[4096] = "DATA";
DWORD len = 7;
CryptEncrypt(hKey, 0, TRUE, 0, buff, &len, nOutBufSize);
CryptDecrypt(hKey, 0, TRUE, 0, buff, &len);
cout<<buff; //this buff should display "DATA"
return 0;
}
|
|
|
|
|
Hi,
I am developing a small app under Windows Mobile 6 with VB.NET. I realized that I am not able to perform multiple selections for some controls including Listview and Listbox. Therefore I saw that extended styles are used for some purposes. Therefore It is requried to write a partial class in some controls to enable such tasks on the controls. It is a blocking issue for a populated listview in design time.
Would you please give me a sample to show, how you can select mutiple items for a listview. I would really appreciate it.
Thanks.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
modified on Tuesday, December 16, 2008 6:16 AM
|
|
|
|
|
Did you set MultiSelect to true ?
|
|
|
|
|
In mobile development WM 6.0 there is no multiselect property associated to listview in design time but strangely selectedindices property. I am not able to perform multiple selection in listview in runtime. I think it requires an extended style pinvoke methods (API CALLS) that is what I am looking for.
Thanks.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|