Home > All Articles

Current Location

Tutorials

Statistics

Members : 16
Content : 23
Web Links : 6
Content View Hits : 8431

Who's Online

We have 1 guest online
C#: LightBox Effect With Win Forms PDF Print E-mail
Written by Admin   
Friday, 19 December 2008 14:40

The other day I was thinking how to make my forms more interactive and more user friendly. While doing this I was researching on a lot of things which in turn lead me to the development of the small library called LightBox for WinForms.

Everyone has seen the lightbox or thickbox effect with Websites showing pictures and many other things. Now here in the version for Desktop Apps. This library is made in .NET (C#). Quite usefull for showing some effects to the end user. 

The file attached below contains the example with the library. Download and see yourself. Let me know if there is anything that you wanna share or comment about the library.

 Thanks.

 

Download Link : - EXAMPLE

Download Link : - LightBoxForm.dll
Last Updated ( Friday, 19 December 2008 14:43 )
 
Transaction Support in TableAdapaters (C#) PDF Print E-mail
Written by Admin   
Wednesday, 26 November 2008 07:39
I was wondering if Microsoft realised till now or not that the TableAdapters inside DataSet does not have support for transactions. Sometime back I was working on a project and agreed to use TableAdapters which can make the development faster. While doing the development we realised that TableAdapters does not have transaction support. Which was quite disappointing.

So i searched through a lot of forums and i found that I was not the only one facing this problem. There were thousands of questions asked on the same. Well with very few solutions. I found those solutions which were quite complex to understand and spending time on it could not be worth it. (What if the solution did not work or creates some other problem)

To avoid spending more time on this particular issue, I wrote a simple partial class inside the DataSet which exposes the property of Transaction inside the TableAdapters. I have mentioned the small piece of code below. This partial class should be written inside the DataSet. Few things to note
- TransactionProject is the namespace
- TransactionDataSet is the name of the DataSet
- TestData is the name of the table inside the DataSet

namespace TransactionProject.TransactionDataSetTableAdapters
{
    public interface ITableAdapter
    {
        System.Data.SqlClient.SqlConnection MyConnection { get;set;}
        void CreateTransaction(SqlTransaction tran);
    }

    public partial class TestDataTableAdapter : ITableAdapter
    {
        public void CreateTransaction(SqlTransaction tran)
        {
            foreach (SqlCommand cm in CommandCollection)
            {
                cm.Transaction = tran;
            }

            this.Adapter.InsertCommand.Transaction = tran;
            this.Adapter.DeleteCommand.Transaction = tran;
            this.Adapter.UpdateCommand.Transaction = tran;
        }

        public System.Data.SqlClient.SqlConnection MyConnection
        {
            get { return Connection; }
            set { Connection = value; }
        }
    }

Well this piece of code will do its magic once its inside the DataSet. After that if we create an object of the TableAdapters as shown below:-

TestDataTableAdapter td = new TestDataTableAdapter();
     after that a new function will appear.
td.CreateTransaction();

Well rest everyone knows what to do further, with so less time this is the best I could think and it really worked well. After rigorous testing also it stood still without any flaws or bugs.
Last Updated ( Wednesday, 26 November 2008 12:42 )
 
WEB 3.0: THE NEW BEGINING PDF Print E-mail
Written by Admin   
Wednesday, 10 September 2008 11:44

Web 3.0, a phrase coined by John Markoff of the New York Times in 2006, refers to a supposed third generation of Internet-based services that collectively comprise what might be called 'the intelligent Web'—such as those using semantic web, microformats, natural language search, data-mining, machine learning, recommendation agents, and artificial intelligence technologies—which emphasize machine-facilitated understanding of information in order to provide a more productive and intuitive user experience.

Nova Spivack defines Web 3.0 as the third decade of the Web (2010–2020) during which he suggests several major complementary technology trends will reach new levels of maturity simultaneously including:

Last Updated ( Thursday, 13 November 2008 11:26 )
Read More ....
 
Flaws found in open source codes PDF Print E-mail
Written by Admin   
Wednesday, 10 September 2008 10:58
Recently I was reading an article about Flaws found in open source codes. I was thinking as a matter of fact it is correct. But saying that these are the flaws in open source codes is incorrect. This would refer to any new programmer that comes into the industry. The defects mentioned in the article below are common to any new user using any language.

So the exact title of the article did not seem correct. But still there are some flaws that are in open source codes which can only be removed by an experienced programmer. I have seen many people writing codes. Some of them easy to understand and some of them very complicated. But in turn it depends of the tenure of the programmer in the industry. The more experienced programmer, the less defects or flaws.
Last Updated ( Thursday, 13 November 2008 11:19 )
Read More ....
 
ASP.NET for Linux PDF Print E-mail
Written by Admin   
Wednesday, 10 September 2008 10:57

Recently the release of Grasshopper that is Visual Studio SDK to create .NET web and server applications that can run on linux and other Java-enabled platforms.

Grasshopper is the freely available Developer Edition of Mainsoft®, a Visual Studio plug-in that you can use to create server and ASP.NET applications, or port existing .NET 2.0 applications on Linux and other Java-enabled platforms, without having to re-engineer your code.

To read more.. can check out at http://dev.mainsoft.com

Last Updated ( Wednesday, 10 September 2008 14:04 )
 
<< Start < Prev 1 2 3 Next > End >>

Page 1 of 3