Monday, June 30, 2008
Book Restaurant Reservations On The Go With OpenTable
Find a restaurant » Choose a table » Book online
OpenTable, the web-enabled restaurant management provider, has introduced a new mobile feature that lets users make restaurant reservations from their from their phone’s browser. New mobile site supports the 8,000 OpenTable restaurants scattered across the country.
http://mobile.opentable.com/
Visio Tip - Making controls the same size
1. Under Tools - Snap & Glue, uncheck all of the “Snap to” options other than “Grid.”
2. Under Tools - Ruler & Grid, set your Horizontal and Vertical Grid spacing to both be “Normal.”
This gives you significantly more control to visually line up your controls and to make them the same size. Its still not as cool or easy to use as what you get with Visual Studio, but it's a start.
Free Pocket PC TV Software
http://pockettv.com/
Converting SQL to LINQ
http://blogs.msdn.com/vbteam/archive/tags/Converting+SQL+to+LINQ/default.aspx
Adding an UpdateProgress Control to the Page in AJAX
The UpdateProgress control displays a status message while new content for an UpdatePanel control is being requested.
To add an UpdateProgress control to the page
1. From the AJAX Extensions tab of the toolbox, drag an UpdateProgress control onto the page and drop it underneath the UpdatePanel control.
2. Select the UpdateProgress control, and in the Properties window, set the AssociatedUpdatePanelID property to UpdatePanel1.
This associates the UpdateProgress control with the UpdatePanel control that you added previously.
3. In the editable area of the UpdateProgress control, type Getting Employees ... .
4. Save your changes, and then press CTRL+F5 to view the page in a browser.
If there is a delay while the page runs the SQL query and returns the data, the UpdateProgress control displays the message that you entered into the UpdateProgress control.
Snackr: A Tasty RSS Reader
It's an RSS ticker that pulls random items from your feeds and scrolls them across your desktop. When you see a title that looks interesting, you can click on it to pop up the item in a window.
http://snackr.net/index.html
Thursday, June 26, 2008
Creating a Windows Service in VB.NET
http://www.codeguru.com/vb/gen/vb_system/services/article.php/c4825/
Tuesday, June 17, 2008
Creating a DotNetNuke® Module using LINQ to SQL For absolute beginners!
Creating a DotNetNuke® Module For absolute beginners!
OH MY GOD I am in the news :)
http://www.arabtimesonline.com/pdf08/june/16/page%2046.pdf
Thursday, June 12, 2008
Wednesday, June 11, 2008
Tuesday, June 10, 2008
WPF FAQ
- Does WPF enable me to do something I couldn’t
have done before?
No. Unless you factor in time & money…
- Is DirectX dead?
No. It is more applicable to advanced 3D developers writing
hard-core “twitch” games
- Are Winforms dead?
No. …but it will not be advanced; the last version was 2.0 in NET 2005
WPF / Winforms Bastardization
Windows 98 Supports WinForms
- Does WPF run better on Vista than on XP?
Yes
3D objects only get anti-aliasing on Windows Vista or Later
Non-rectangular windows only get hardware acceleration on Vista
Vista has a driver model that helps with resource contention
Monday, June 9, 2008
Adding an UpdateProgress Control to show progress @ server
http://asp.net/AJAX/Documentation/Live/tutorials/CreateSimpleAJAXApplication.aspx
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="lblServerTime" runat="server" Text="Server Time"></asp:Label>
<asp:Timer ID="Timer1" runat="server" Interval="10000">
</asp:Timer>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
Getting time from server ...
</ProgressTemplate>
</asp:UpdateProgress>
</asp:Content>
Protected Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
System.Threading.Thread.Sleep(3000)
lblServerTime.Text = DateTime.Now.ToString()
End Sub
Read Text From/Write Text To a File (VB.NET)
sContents = GetFileContents("C:\test.txt", sErr)
If sErr = "" Then
Debug.WriteLine("File Contents: " & sContents)
'Save to different file
bAns = SaveTextToFile(sContents, "D:\Test.txt", sErr)
If bAns Then
Debug.WriteLine("File Saved!")
Else
Debug.WriteLine("Error Saving File: " & sErr)
End If
Else
Debug.WriteLine("Error retrieving file: " & sErr)
End If
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations:
-------------
Imports System.IO
Code:
------
Public Function GetFileContents(ByVal FullPath As String, _
Optional ByRef ErrInfo As String = "") As String
Dim strContents As String
Dim objReader As StreamReader
Try
objReader = New StreamReader(FullPath)
strContents = objReader.ReadToEnd()
objReader.Close()
Return strContents
Catch Ex As Exception
ErrInfo = Ex.Message
End Try
End Function
Public Function SaveTextToFile(ByVal strData As String, _
ByVal FullPath As String, _
Optional ByVal ErrInfo As String = "") As Boolean
Dim Contents As String
Dim bAns As Boolean = False
Dim objReader As StreamWriter
Try
objReader = New StreamWriter(FullPath)
objReader.Write(strData)
objReader.Close()
bAns = True
Catch Ex As Exception
ErrInfo = Ex.Message
End Try
Return bAns
End Function
Using AJAX on page
[ST]asp:UpdatePanel ID="UpdatePanel1" runat="server"[ET]
[ST]ContentTemplate[ET]
Place your control here ...
[ST]/ContentTemplate[ET]
[ST]/asp:UpdatePanel[ET]
Sunday, June 8, 2008
Remove Items from the Recent Projects List on the Start Page
http://msdn.microsoft.com/en-us/library/aa991991(VS.80).aspx
Removing items using the registry
To be much more efficient, you can run regedit and remove the items stored in:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\ProjectMRUList
Bear in mind that if you only want to remove a subset of items, you'll have to reorganize the list to maintain the proper sequence (no numbers skipped).