Here is a quick windows forms calendar code.
I used a TableLayoutPanel with Dock=Fill.
private void FillDays()
{
DateTime FirstDay = new DateTime(DateTime.Now.Year,
DateTime.Now.Month, 1);
int col = GetNumOfWeekDay(FirstDay.DayOfWeek);
int row = 0;
for (int i = 1; i < DateTime.DaysInMonth(DateTime.Today.Year,
DateTime.Today.Month)+1; i++, col++)
{
if (col > 6)
{
col = 0;
row++;
}
Label lbl = new Label();
lbl.Text = i.ToString();
tlpCalendar.Controls.Add(lbl, col, row);
}
}
private int GetNumOfWeekDay(DayOfWeek dow)
{
return (Int32)Enum.Parse(typeof(DayOfWeek), dow.ToString());
}
VN:F [1.9.18_1163]
Rating: 4.4/5 (5 votes cast)
Barrelfish is a new research operating system being built from scratch in a collaboration between ETH Zurich and Microsoft Research, Cambridge.. This OS is written specifically for multi-core environments. It hopes to improve the performance of boxes with such chips by creating a network bus, if you will, between cores.

Home page: http://www.barrelfish.org/
Read more here
VN:F [1.9.18_1163]
Rating: 0.0/5 (0 votes cast)
Here goes the sample code:
using System.IO;
using System.Management;
using System.ServiceProcess;
namespace MyTestService
{
public partial class MyTestService : ServiceBase
{
public MyTestService()
{
InitializeComponent();
}
protected override void OnStart(string[] args)
{
TextWriter tw
= new StreamWriter("c:\\success.txt");
tw.WriteLine("Successfully created file.");
tw.WriteLine(CurrentUserName());
tw.Close();
}
protected override void OnStop()
{
}
private string CurrentUserName()
{
var s = new ManagementObjectSearcher
("SELECT UserName FROM Win32_ComputerSystem");
string str = string.Empty;
foreach (ManagementObject moobj in s.Get())
{
if (moobj["UserName"] != null)
{
str = moobj["UserName"].ToString();
}
}
return str;
}
}
}
VN:F [1.9.18_1163]
Rating: 5.0/5 (1 vote cast)
This is one of my hobby tool which simply connects to a MS SQL Server database and shows all the available tables and its column names. This tool is programmed with Visual C# 2008 Express Edition.
Download from here: http://kidoos.net/media/p/588.aspx
Let me know if somebody needs source code. I have no plans to extend this app
VN:F [1.9.18_1163]
Rating: 0.0/5 (0 votes cast)
Chapter 5, “Processes, Threads, and Jobs,” from Windows Internals, Fifth Edition (Microsoft Press, 2009), by Mark Russinovich and David Solomon with Alex Ionescu, is available, all 116 gloriously detailed pages of it, here:
http://cid-5a051e94bda12163.skydrive.live.com/self.aspx/.Public/9780735625303%7C_CH05.pdf?ccr=3352
This sample chapter also includes the book’s complete Table of Contents.
Source: Microsoft Press blog
VN:F [1.9.18_1163]
Rating: 0.0/5 (0 votes cast)
Read the whitepaper here – http://msdn.microsoft.com/en-us/library/cc793139(SQL.90).aspx
extension=php_sqlsrv.dll
The SQL Server 2005 Driver for PHP is a Microsoft-supported extension of PHP 5 that provides data access to SQL Server 2005 and SQL Server 2008. The extension provides a procedural interface for accessing data in all editions of SQL Server 2005 and SQL Server 2008. The SQL Server 2005 Driver for PHP API provides a comprehensive data access solution from PHP, and includes support for many features including Windows Authentication, transactions, parameter binding, streaming, metadata access, connection pooling, and error handling. This paper discusses how to use several of these features by closely examining parts of the Example Application in the SQL Server 2005 Driver for PHP product documentation in MSDN. This paper assumes that the reader is familiar with programming in PHP, that the reader has a computer that meets the System Requirements listed for using the driver, and that the AdventureWorks example database is installed from CodePlex.
serverName = "(local)";
$connectionOptions = array("Database"=>"AdventureWorks");
/* Connect using Windows Authentication. */
$conn = sqlsrv_connect( $serverName, $connectionOptions);
if( $conn === false )
{ die( FormatErrors( sqlsrv_errors() ) ); }
VN:F [1.9.18_1163]
Rating: 5.0/5 (2 votes cast)
Even though there are some debates in rules in ReSharp with tech-gurus, I personally like the way ReSharper works. For me these are the quick found benefits
- It codes for me
- It corrects!
- It suggests!
- It teaches!
Only annoying part is it creates a _ReSharper.blah folder in the solution folder. But anyway we have to compromise for the positives and forget the negatives. I think Microsoft must adopt many of these features built-in on Visual Studio.
Know more about ReSharper here.
VN:F [1.9.18_1163]
Rating: 5.0/5 (1 vote cast)
The Productivity Hub is a Microsoft SharePoint Server 2007 site collection that offers training materials for end-users. Microsoft has developed the Productivity Hub to help support your ongoing end user training efforts.
Microsoft has developed the Productivity Hub to help support your ongoing end user training efforts.
The Hub is a SharePoint Server 2007 site collection that serves as a learning community and is fully customizable. It provides a central place for your training efforts, and includes training content from Microsoft’s core products. Microsoft also provides ongoing and updated content packs.
The Hub uses SharePoint Server’s social networking capabilities, such as blogs and discussion groups. In addition, it offers the Coach program, a change management feature to help you train end users to self-help, reducing the burden on your training and IT staff. The Coach program impacts productivity in a collaborative and positive way.
What the Productivity Hub is:
- Format: Pre-loaded SharePoint site collection, optimized for Web 2.0 functionality and easily deployed within SharePoint Server 2007 environment.
- Content: Convenient end user productivity training in a variety of formats (documents, videos, podcasts, etc.). Receive free quarterly updates of content that you will learn about through the Productivity blog.
- Blog: The Productivity blog offers tips and tricks for end user productivity. Use it as is, or your training staff can use the posts as their own to help them get started in running an internal blog.
- Train the trainer: Includes IT/Manager section to aid with deployment of the site collection, and guidance to develop the Coach program.
- Products: Office 2007 System applications including SharePoint Server 2007. Windows 7 and others will be added in the future.
Check this to know more.
VN:F [1.9.18_1163]
Rating: 4.0/5 (1 vote cast)
Happy news
Novell technology lets developers use .Net and C# instead of C or Objective-C to build applications for Apple’s handheld. Novell on Monday will offer a kit for developers to build Apple iPhone and iPod Touch business applications using Microsoft’s .Net Framework instead of the Apple-designated C or Objective-C languages.
Read more here.
VN:F [1.9.18_1163]
Rating: 0.0/5 (0 votes cast)
Download this book here.
The book addresses three basic questions:
- How do you plan for accessibility?
- How do you design your software for accessibility?
- How can you implement and test to your software to confirm it meets the accessible design?
VN:F [1.9.18_1163]
Rating: 4.0/5 (1 vote cast)
Recent Comments