The breakpoint will not currently be hit. The specified module has not been loaded

The breakpoint will not currently be hit. The specified module has not been loaded

When you debug with Visual Studio 2005 and a Windows Mobile/Windows CE/Pocket PC from 5.0 to 6.5 version device running .NET Compact Framework 2.0 breakpoint not works showing a ring instead of the normal red dot and when holding the mouse over it shows the above error message.

Solution:
Close Visual Studio and re-install the SDK.

Note: If still not work download and install the following patch
.NET Compact Framework 2.0 Service Pack 1 Patch

Did my solution solve your problem? Leave a reply.

HOW TO test Socket connections

To test Socket connections I suggest you the following freeware tool:


Hercules SETUP utility to test Socket connections
Hercules SETUP utility

Functions: TCP/IP Client Server terminal, UDP/IP terminal and Serial Port terminal.

Did my HOW TO help you? Leave a reply.

HOW TO make VB to C# or C# to VB conversion code

With this HOW TO I would like to put together tips to make the code conversion VB to C# or C# to VB.

VB C#
Asc Convert.ToInt32();
Chr Convert.ToChar();
Len String.Length();
Mid String.Substring();
ChrW(65) System.Convert.ToChar(65).ToString();
AscW('A')
System.Convert.ToInt32('A').ToString();

This post will be updated continuously by inserting each time new information.

Any suggestion is welcome.

Did my HOW TO help you? Leave a reply.

HOW TO add weeks to Date or DateTime

The Date and DateTime structures have the following methods:
AddYears(), AddMonths(), AddDays() but NOT AddWeeks() so you could use AddDays() to add the number of days of the week for each week or simply Add() to add TimeSpan, these aren’t professional solutions.

Use AddWeeks() method of Calendar class:

Imports System.Globalization

Dim cal As New Calendar

Dim newDate as Date = cal.AddWeeks(myDateTime, 1).Date
Dim newDateTime as DateTime = cal.AddWeeks(myDateTime, 1)

Also, you can use specific calendar changing Calendar class with others: GregorianCalendar, JapaneseCalendar, etc.
To read the complete list System.Globalization Namespace

Did my HOW TO help you? Leave a reply.

HTC Touch 2 – “BTTrayCE is not a valid application”

After I installed TomTom 7 when the device start show the following error message:

BTTrayCE is not a valid application

Solution:

Enable the “Show All Files” option.
Rename the BtCoreIf file with BtCoreIf_old in the Windows folder.
Make a SoftReset.

NOTE: in my case I was unable to use share internet connection function. After my solution it returned to work.

Did my solution solve your problem? Leave a reply.

HOW TO disable voicemail (all diverts)

To completely disable voicemail

type ##002# and press the calling button.

It should appear a message to inform you that all diverts are cancelled.

Did my HOW TO help you? Leave a reply.

HOW TO change Lock Screen (Sleep mode) settings on HTC Touch 2

  1. Tap Start > Settings > System > Power.
  2. Tap the Advanced tab.
  3. To change the time before the phone goes into Sleep mode, select a time from the Turn off device if not used for lists.
    (To turn off automatic Sleep mode altogether, clear the Turn off device if not used for check boxes.)

Council not to disable this feature, but simply to increase the interval for bringing it to 3-5 min on battery power only.

Finally, from the same screen you can increase the range of the backlight, the voice  where it says “Turn off backlight if device is not used for”.
The default setting is 30 s. If the user prefers is also possible to increase this range, always for the “On battery power”, however, do not recommend to put values ​​above 1 min since this approach affects the duration of the charge of the battery.

Did my HOW TO help you?