The first way is pretty self-explanatory – you create it from scratch. When you create a new Windows Forms application, a default Windows Form is present. Just change the isMDIParent property to True and voila – you’re on your way to working with an MDI application.
Read the rest of this entry »
Many times, you need to use a relative path (Server.MapPath), but in classes, you can’t use it directly. You need to use the namespace in which it resides.
Read the rest of this entry »
Every once in a while, it becomes necessary to delete a file in your code. Here is how you do that:
Read the rest of this entry »
There are 4 basic list type controls in ASP.Net, and within those 4, there are 2 selectable types of list controls. They’re all based in the System.Web.UI.WebControls Namespace. Here’s a list of them:
Read the rest of this entry »
You’ve probably noticed that, when you create webpart pages, there is no Quick Launch navigation area on the left. Some of you might find this a little irritating and are wondering how you can change it so you have it show.
Read the rest of this entry »
A handful of steps are required in order to set up anonymous access in SharePoint 2010 sites. Below, you will learn what is required to do so:
Read the rest of this entry »
OK – you’ve created that great new ASPX page on your site (using SharePoint Designer 2010), and when you preview the page in the browser, you noticed that it doesn’t have a master and it doesn’t match your existing site. Well, it’s not that hard to make it happen, after all. Read the rest of this entry »
When working with the TabControl in your Windows application, in order to programmatically choose the tab you want to show, use the SelectedIndex property of the TabControl:
TabControl1.SelectedIndex=2
Here’s the code function that iterates through the open MDI children to see if a certain form is already open, before opening it: Read the rest of this entry »
To be able to use any date, and based on that date, get the start (Sunday) and end (Saturday) dates, use the following T-SQL: Read the rest of this entry »
All Things DotNet Discussed – Winforms/ASP.Net/SharePoint/WPF