Monday, August 30, 2010

FaceBook Blocked

Hi Guys,

Is your facebook website blocked? Try to download the file thru this link FACEBOOK Browser . This is only a demo and need to enhance. Any Comments and Suggestion are welcome.

Thanks.

Monday, April 12, 2010

VISUAL STUDIO 2010 GLOBAL LAUNCH

Hello Guys,

The Visual Studio 2010 is here.

You can test by downloading the free trial at this link http://www.microsoft.com/visualstudio/en-us/download and view the products features in this link http://www.microsoft.com/visualstudio/en-us/products .

You can even watch the live launch at http://www.microsoft.com/visualstudio/en-us/watch-it-live


Happy Programming.

Friday, November 6, 2009

Download Visual Studio 2010 Beta 2

Hello guys.

Last month’s I downloaded the Visual Studio 2010 Beta 1. While exploring the VS 2010 Beta 1 I decided to make some blogs about it. But now the Beta 2 will release and ready to download on Wednesday October 21, 2009. Maybe I should download it and uninstall my Beta 1 and install the Beta 2. But this is also a Beta Version. The final release of Visual Studio 2010 and .NET Framework 4 are scheduled on March 22, 2010. And also there’s another options of developers will choose, because theirs four packages of VS 2010. The Ultimate, Premium, Professional, and Professional without MSDN subscription.

ShortCut Keys on VS 2010 and MS SQL 2008

Hello Guys,

I have some shortcut keys on Visual Studio 2010 Beta1 and SQL Server 2008. You can download it: Shortcut Keys on Visual Studio 2010 and Shortcut Keys on SQL Server 2008

Creating XML File on Visual Studio 2010

Hello Guys,

This code snippet will show you on how to create a simple xml file in Visual Studio 10 Beta 2.

Step 1: Add a namespace to your code behind System.Xml and System.Text

Step 2: In your event/method to create an xml file

//Create a path were to save the xml file
String path = Server.MapPath(@”FolderName\MyFileName.xml”);

//Instantiate an XmlWriterSettings
var xmlWrite = new XmlWriterSettings();

//And other Declaration
xmlWrite.Indent = true;
xmlWrite.OmitXmlDeclaration = true;
xmlWrite.Encoding = Encoding.ASCII;

//Then try to write a data in xml file
Using (var write = XmlWriter.Create(path,xmlWrite))
{
write.WriteComment(“This is a basic sample on how to create xml file”);
write.WriteStartElement(“Head”);
write.WriteStartElement(“Header”);
write.WriteStartAttribute(“Header”);
write.WriteValue(HeaderValue);
write.WriteEndAttribute();
write.WriteEndElement();
write.WriteStartElement(“Footer”);
write.WriteStartAttribute(“Footer”);
write.WriteValue(FooterValue);
write.WriteEndAttribute();
write.WriteEndElement();
write.Flush();
}

That’s it. This sample created on asp.net project.

Simple CRUD on Visual Studio 2010

Hello Guys,

I have sample here on how to create a simple Create, Read, Update, and Delete on Database. This sample created on Visual Studio 2010 Beta 2 using C# and Asp.Net. I did’nt include a validation on this sample. I only want to show on how to Select, Insert, Update, Delete on Database. For those who beginners I hope it will help.

You can now download my Sample File at this Link.

Sunday, June 21, 2009

How to Drag Object

Hi, this simple code will show you on how to drag a form with out window title bar.

1. Just input this code in your form code behind:


//Drag Forms w/out titlebar
public const int WM_NCLBUTTONDOWN = 0xA1;
public const int HT_CAPTION = 0x2;
[DllImportAttribute("user32.dll")]
public static extern int SendMessage(IntPtr hWnd,
int Msg, int wParam, int lParam);
[DllImportAttribute("user32.dll")]
public static extern bool ReleaseCapture();
//End

2. Input a Panel in your form as your title bar.


private void panel1_MouseDown(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
ReleaseCapture();
SendMessage(Handle, WM_NCLBUTTONDOWN, HT_CAPTION, 0);
}
}