XP Mode is ready, will be a free download on October 22.
Check out this blog entry
This is a blog that is going to contain articles, Q & A, Ideas, Opinions about the .NET technology of Microsoft. It is dedicated to the promotion of the .NET techonlogy in Lebanon and the world...
XP Mode is ready, will be a free download on October 22.
Check out this blog entry
There’s been some speculation on when Marketplace will come to older phones. Well it is coming…
http://mobiletechaddicts.com/2009/10/02/windows-mobile-marketplace-coming-to-6-1-in-november/
Some of you have probably seen Trapster on an iPhone, BlackBerry or Android device. If you haven’t seen or heard of it, Trapster is a free app that tracks your location on a map (using GPS) and alerts you to surrounding speed traps/cameras.
Check out more info at this link…
http://pocketnow.com/software-1/trapster-for-windows-mobile-revamped-coming-to-marketplace-oct-6
Happy Windows Mobile
hey there…I wtold u that windows 7 is great. Adding Bumptop to it is amazing also…Check the following link…
http://lifehacker.com/5371919/bumptop-gets-amazing+looking-multi+touch-on-windows-7
Anybody who would like to know more better about windows 7 new features better take a look at these great walkrthroughs…
http://technet.microsoft.com/en-us/windows/dd320282.aspx
Happy Windows 7…
Anybody who would like to know more better about windows 7 new features better take a look at these great walkrthroughs…
http://technet.microsoft.com/en-us/windows/dd320282.aspx
Happy Windows 7…
Windows Troubleshooting Platform
The Windows Troubleshooting Platform can reduce calls to the help desk by diagnosing and resolving common issues, and by providing built-in troubleshooters for several different types of problems including audio, video, and networking. Learn how to develop custom Windows Troubleshooting Packs using Windows PowerShell to help resolve issues commonly encountered in your environment.
http://technet.microsoft.com/en-us/windows/dd320282.aspx
Happy Windows 7
Designed for Small and Medium businesses, Windows XP Mode for Windows 7 makes it easy to install and run older Windows XP productivity applications directly from your Windows 7-based PC. It utilizes virtualization technology such as Windows Virtual PC to provide a Windows XP Mode environment for Windows 7.
Click on the following link to get a walkthrough…
http://technet.microsoft.com/en-us/windows/ee530028.aspx
Happy Windows 7
HTC Leo is the latest device that has been revealed to deliver windows mobile….this device should replace the famous Touch HD and is sometimes called HTC Touch HD2.
Take a look for it…
Click on this link to get more data…
http://www.engadgetmobile.com/2009/09/30/htc-hd2-makes-first-official-appearance-in-o2-uk-catalog/
Happy Windows Mobile…
There is new a version of one of the most famous windows mobile interface with great additions.
A list of additions is:
A complete review can be found here
http://mobiletechaddicts.com/2009/09/29/spb-mobile-shell-3-5-review/
A quick video tour is also available here
http://pocketnow.com/software-1/spb-mobile-shell-35
Happy Windows Mobile
Visual Basic has one of the most useful tools in helping you discover and correct your errors. Starting from highlighting the statement with error, giving you a quick watch of the value of the variables at that stage or even giving you the best menomic message at the run time that will help you identify the error.
In addition to all of this…the debugging tools provided is amazing and very useful. I will not go into debugging detail now.
The useful approach that I have used is the following:
Happy Programming :)
Visual Basic has three main error handling techniques while writing code.
On Error Go To technique allows you to go to a special section in your code to handle the error and exit gracefully. An example is added below.
Sub CalculateD()
On Error Go To HandleDivisionByZero
Dim a as integer = 0, b as integer = 5
Dim d as decimal = b/a
Console.WriteLine (“B divided by a is = “ & Str(D))
Exit Sub
HandleDivisionByZero:
MessageBox (“Division By Zero. Exiting”)
Exit Sub
End Sub
On Error Resume Next technique is simply ignoring the current statement with the error and start from the next statement directly. An example is below:
Sub ResumeWork()
On Error Resume Next
Dim a as integer, b as integer
a = 5: b= 0
dim c as decimal
c = a /b
Console.Writeline(“Finished”)
End Sub
This subroutine would simply ignore the line where c = a/b even that there is a division by zero and continue to print the word Finished as if there is nothing wrong.
The two previous technique were simply the old techniques. However, .NET has introduced the Java old technique of try and catch where you can handle all kind of errors and it is extensible.
Try and Catch techinque is a well structured one and allows for even other vendors like Oracle to introduce their own catch blocks.
An Example of this technique is provided below:
Sub CalculateD()
Dim a as integer = 0, b as integer = 5
Try
Dim d as decimal = b/a
Console.WriteLine (“B divided by a is = “ & Str(D))
Catch MyException as exception
MessageBox (“Division By Zero. Exiting”)
Finally
‘ A Comment The programmer can do whatever cleaning he need here
End Try
End Sub
You can see from this code that the technique does not include jumping as well as you are able to catch the exception and handle it as needed. Oracle for example has added another exception called OracleException to handle errors returned by their own database and display their exact exceptions instead of using the .NET exception.
A famous pizza man said one “Success is a horrible teacher”. You should know that pizza man because he ended up as one of the most infulencial guys in our modern history. Bill Gates.
Especially in programming, the best way to learn is when you commit, discover and correct mistakes as you go along.
In programming there are two kinds of errors that could happen.
Design Time (Compile Time) errors happens when you are simply writing the program in visual studio. Fortunatly these errors are highlighted automatically by underlining them using red and green line (read mean error and green mean warning)
Run Time errors occurs when the programming is running (the most commonly used term for this is bugs). All of us want to write programs that are bug free. However since we are humans we can not achieve this goal. the good news though is that with practice your are more likely to write near bug free programs. As somebody has said “programming is easy, it is finding all the problems that is hard”.
A recommended technique is simply “Write a little, Test a little”. Simply write your piece of code and make sure after testing it that it behaves as expected.
There are three main different categories of statements
To summarize
An operator performs a function on one or more operands. For example, we add two variables with the "+" addition operator and store the result in a third variable with the "=" assignment operator. Visual Basic comes with many built-in operators that allow us to manipulate data.
Operators in VB.NET comes in different categories: (All in order of precedence)
| Operator | To Do |
| ^ | Exponentiation |
| - | Negation (used to reverse the sign of the given value, exp -intValue) |
| * | Multiplication |
| / | Division |
| \ | Integer Division (Division without remainder 5\2= 2 and not 2.5) |
| Mod | Modulus Arithmetic |
| + | Addition |
| - | Subtraction |
Concatenation operators join multiple strings into a single string. There are two concatenation operators, + and &.
A comparison operator compares operands and returns a logical value based on whether the comparison is true or not. Please find them below.
| = | Equality Operator |
| <> | Different or Not equal |
| < | Less than |
| > | Greater Than |
| <= | Less Than or Equal |
| >= | Greater than or equal |
The logical operators compare Boolean expressions and return a Boolean result. Below a list of them.
| And | compare two Boolean expressions and return true if both of them are true else return false |
| Or | compare two Boolean expressions and return false if both of them are false else return true |
| Not | negate true to false and vice versa. |
Happy VBNetting