Browse Site by Tags

Showing related tags and posts across the entire site.
  • Populating a Business Object from a DataTable

    Most business applications have business objects such as customer, order, or invoice. Often, the data access layer (DAL) provides the data and your code needs to use that data to manually populate a business object. This post describes how to manually populate a business object from a DataTable. It uses...
    Posted to Deborah's Developer MindScape (Weblog) by Deborah Kurata on Fri, Jul 10 2009
    Filed under: VB, C#, .NET, CSharp, OOP, Data, DataTable
  • DAL: Access a DataReader using a Stored Procedure

    This post provides an implementation of a method that accesses a DataReader using a stored procedure in a SQL Server database. Your application can then use the DataReader to read the data from your database or bind directly to an ASP.NET control such as a grid. If you are not familiar with a DataReader...
    Posted to Deborah's Developer MindScape (Weblog) by Deborah Kurata on Thu, Jul 9 2009
    Filed under: VB, C#, .NET, CSharp, Data, DataReader
  • Debugging: Heisenbug

    Being a physics major in college, I am familiar with the Heisenberg Uncertainty Principle which basically states that in quantum physics, some properties (like position and momentum) cannot both be known to any precision. Though not technically accurate, the Heisenberg Uncertainty Principle is often...
    Posted to Deborah's Developer MindScape (Weblog) by Deborah Kurata on Tue, Jul 14 2009
    Filed under: VB, C#, .NET, CSharp, Debugging
  • Building a Business Object Base Class

    If you are building applications in .NET to manage data for a business, you are most likely creating business object classes. Depending on the business, these classes could include Customer, Product, Order, Invoice, PurchaseOrder, Employee, TimeCard and so on. A simple sample Customer class is shown...
    Posted to Deborah's Developer MindScape (Weblog) by Deborah Kurata on Tue, Jul 21 2009
    Filed under: VB, C#, .NET, CSharp, OOP, Enum, Binding
  • Populating a TreeView Control from XML

    This post describes how to populate a WinForms TreeView control from an XML file assuming you are targeting the .NET Framework Version 3.5. The XML file used in this example looks like this: <States>   <State name="California">     <Regions>      ...
    Posted to Deborah's Developer MindScape (Weblog) by Deborah Kurata on Tue, Jul 21 2009
    Filed under: VB, C#, .NET, CSharp, Xml, WinForms
  • Populating a TreeView Control from XML

    This post describes how to populate a WinForms TreeView control from an XML file assuming you are targeting the .NET Framework Version 3.5. The XML file used in this example looks like this: <States>   <State name="California">     <Regions>      ...
    Posted to Deborah's Developer MindScape (Weblog) by Deborah Kurata on Tue, Jul 21 2009
    Filed under: VB, C#, .NET, CSharp, Xml, WinForms
  • Validation Class

    A common requirement in most applications is to validate the data entered by the user. This is such a common requirement, that it makes sense to build a reusable Validation class. This post details the beginnings of a .NET Validation class. The class was originally designed to validate business object...
    Posted to Deborah's Developer MindScape (Weblog) by Deborah Kurata on Thu, Jul 16 2009
    Filed under: VB, C#, .NET, CSharp, OOP
  • Dates: Binding to Day Numbers

    My prior post demonstrated how to bind to a list of month names. Once the user picks the desired month, you may want to provide a list of valid dates to pick a date in that month. For example: 1-30 for September and 1-31 for July. You can accomplish this using a switch statement (Select Case in VB),...
    Posted to Deborah's Developer MindScape (Weblog) by Deborah Kurata on Tue, Jul 14 2009
    Filed under: VB, C#, .NET, CSharp, Binding, WinForms
  • Dates: Binding to Month Names

    Visual Studio comes with DateTimePicker and MonthCalendar controls that provide a standard looking calendar for the user to pick a date. But there are times when these controls don’t provide the features you need. For example, say you want to ask the user for the month and year that their credit card...
    Posted to Deborah's Developer MindScape (Weblog) by Deborah Kurata on Tue, Jul 14 2009
    Filed under: VB, C#, .NET, CSharp, Lambda, Binding, WinForms
  • Enum: Binding to the Description Attribute

    The Enum keyword allows you to define a standard set of named constants for use in your application. Sometimes you may want to present this same list of  values to your user. You can display the set of Enum values in a ComboBox or ListBox using data binding. And even better, if you use the DescriptionAttribute...
    Posted to Deborah's Developer MindScape (Weblog) by Deborah Kurata on Fri, Jul 10 2009
    Filed under: VB, C#, .NET, CSharp, Enum, Binding, Extension Method, WinForms
Page 4 of 39 (381 items) « First ... < Previous 2 3 4 5 6 Next > ... Last »