im using visual basic 5 and am trying to experiment on vb.net smartphone projects.
1. for a battery meter app, how do i create it so that only the picturebox will show when launched (since im going to use it as a battery strength indicator) and how do i make it appear on the homescreen window
2. for a sms app, how do i get the numbers of messages sent i'd like to experiment on getting the first 5 digits of sms recipients and log them.
please excuse me for asking these ambitious questions. im just very much excited at creating useful applications.
Thank you for your time.

very newbie vb.net questions
sandsdad
For battery state, you can use the State and Notification Broker API (find the sample at http://www.devx.com/wireless/Article/32305).
For textbox copying - use TextBoxBase member to select the text (SelectedText) and copy to clipboard. Take a look at this example - http://msdn2.microsoft.com/en-us/library/system.windows.forms.clipboard.aspx
Xi0N
does anyone have a vb.net sample code for messageintercept
Debbie M
I tried using textbox1.paste() but it says it is not a member of something..something.
DaveRogers
Kennon2005
In VS2005 you should use SystemInformation.PowerStatus to access several status properties of the battery. For example: TextBox1.Text = SystemInformation.PowerStatus.BatteryLifePercent
Enjoy
Javier DurandNeil Harper
I have another question. using this code:
<DllImport("coredll")> _
Private Shared Function SetDevicePower(ByVal pvDevice As String, ByVal dwDeviceFlags As Integer, ByVal DeviceState As devicepowerstate) As Integer
End Function
Public Enum devicepowerstate : int
Unspecified = -1
D0 = 0
D1 = 1
D2 = 2
D3 = 3
D4 = 4
End Enum
Const POWER_NAME As Integer = &H1
Private Sub MenuItem4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem4.Click
SetDevicePower("BKL1:", POWER_NAME, devicepowerstate.D3)
My backlight DIMS when i click it but then when the lcd turns off, and i click on any key, the backlight doesnt turn on anymore. I can see the screen contents but there is no backlight. how do i turn the backlight on to DIM again after pressing any key.
Jim Kansela
if you're using VB5, you're not using vb.net ...
are you talking about using VB.net in visual studio 2005
Ather.
ooops sorry for the typo. yes i'm using VB.net on Visual Studio 5.