473,385 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Best way to use and modify ado.net components

Airslash
221 100+
Hello,

I have a question regarding the use of the ADO.NET framework 2.0 and higher.
I'm aware there are several ways for doing things inside the .NET framework, but I would like some feedback about my approach:

Most colleagues use the toolbox and drag components inside the winform and then use them by configuring them through the propertiesbox.

I on the other hand dynamicly create the components I want by explcitly typing gcnew and work with those objects.

Which one is actually the best approach? Should i keep following my way yes/no and why?
Jan 18 '10 #1
1 976
sanjib65
102 100+
Dynamically creating components is always regarded as a good habit from the coder's point of view. It can only be done when your conception is crystal clear about ADO.NET.
But there are default classes created by Microsoft to do the heavy lifting. In the present scenario, you don't have to write many codes. Few codes and some dragging and linking do the whole things for you. But again you ought to know the background stories. Otherwise you can not use class library.
Personally I prefer using default classes as much as possible, because VS 2008 (that I use) has shipped so many things under one roof that you almost don't have to write dynamically. But sometimes it seems neccessary.
I'm eager to know what other members prefer :)
Jan 25 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
16
by: PeteCresswell | last post by:
I was happily coding along, putting some calculation results (rolling annualized rates of return - too compute-intensive to calculate on-the-fly - had tb staged beforehand via a batch job) into...
12
by: Michael B Allen | last post by:
Is it legit to modify static data like the following code? #include <stdlib.h> #include <stdio.h> struct tbl { int i; char *s; };
1
by: Rob Richardson | last post by:
Greetings! I ran into the problem that a DLL could not be copied to the run file because a newer version existed there. I seem to have gotten around it temporarily, but I'd like to learn how...
1
by: Visual Systems AB \(Martin Arvidsson\) | last post by:
Hi! Can any one point me in direction of modify a TextBox control. What i want to do is to add a button, like the ComboBox have. with my own bitmap and execute an Event when clicked. I...
10
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read...
3
by: DC Gringo | last post by:
Hi, I'm trying to use a custom action to modify a database (rather than create one) using the VS.NET '03's help example called "Custom Action to Create Database During Installation". I've made...
0
by: Jul | last post by:
Hi, We are trying to optimize version numbering. Our application has System and components for System, I need to find info for Best practices of Version management for Application. 1. What is...
16
by: listerofsmeg01 | last post by:
Hi all, New to Javascript, and want to learn to do things the RIGHT way. I have a dynamic table which is populated using Javascript. Currently I am looking at adding nodes using the W3C DOM,...
31
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I modify the current browser window?...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.