Click here to Skip to main content
16,013,747 members
Home / Discussions / C#
   

C#

 
GeneralRe: Richtextbox questions/problems.. Pin
Jacob Dixon7-Mar-08 13:29
Jacob Dixon7-Mar-08 13:29 
GeneralRe: Richtextbox questions/problems.. Pin
W Balboos, GHB10-Mar-08 1:11
W Balboos, GHB10-Mar-08 1:11 
QuestionArchitecture Question! Pin
Jammer5-Mar-08 10:41
Jammer5-Mar-08 10:41 
GeneralRe: Architecture Question! Pin
Christian Graus5-Mar-08 10:56
protectorChristian Graus5-Mar-08 10:56 
GeneralRe: Architecture Question! Pin
Jammer5-Mar-08 11:01
Jammer5-Mar-08 11:01 
GeneralRe: Architecture Question! Pin
Jammer5-Mar-08 11:03
Jammer5-Mar-08 11:03 
GeneralRe: Architecture Question! Pin
Jammer5-Mar-08 11:13
Jammer5-Mar-08 11:13 
GeneralRe: Architecture Question! Pin
Christian Graus5-Mar-08 11:19
protectorChristian Graus5-Mar-08 11:19 
You can foreach over the tables in a dataset. You just need to specific foreach (datatable tbl in dataset.Tables).

The main difference is, doing it in a static constructor will do it when the app starts, my way won't do it until the first time you use it, and if it takes a while to build, that's the toss up. Have the app start faster, or have it quicker the first time you ask it to do something.

Lazy initialisation works best when it's a resource that takes time or space and isn't used every time the program runs, then you don't pay the price for it, until you need it.

Christian Graus - Microsoft MVP - C++

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

GeneralRe: Architecture Question! Pin
led mike5-Mar-08 11:23
led mike5-Mar-08 11:23 
GeneralRe: Architecture Question! Pin
Jammer5-Mar-08 11:26
Jammer5-Mar-08 11:26 
GeneralRe: Architecture Question! Pin
Christian Graus5-Mar-08 11:44
protectorChristian Graus5-Mar-08 11:44 
GeneralRe: Architecture Question! Pin
Jammer5-Mar-08 11:49
Jammer5-Mar-08 11:49 
GeneralRe: Architecture Question! Pin
Christian Graus5-Mar-08 12:30
protectorChristian Graus5-Mar-08 12:30 
GeneralRe: Architecture Question! Pin
Jammer5-Mar-08 12:40
Jammer5-Mar-08 12:40 
GeneralRe: Architecture Question! Pin
Christian Graus5-Mar-08 14:10
protectorChristian Graus5-Mar-08 14:10 
GeneralRe: Architecture Question! Pin
Jammer5-Mar-08 14:17
Jammer5-Mar-08 14:17 
GeneralRe: Architecture Question! Pin
Christian Graus5-Mar-08 14:56
protectorChristian Graus5-Mar-08 14:56 
GeneralRe: Architecture Question! Pin
led mike5-Mar-08 11:21
led mike5-Mar-08 11:21 
GeneralRe: Architecture Question! Pin
Jammer5-Mar-08 11:23
Jammer5-Mar-08 11:23 
GeneralRe: Architecture Question! Pin
Jammer5-Mar-08 12:20
Jammer5-Mar-08 12:20 
GeneralRe: Architecture Question! Pin
Jammer5-Mar-08 12:52
Jammer5-Mar-08 12:52 
GeneralUser Control without UI Pin
DaveyM695-Mar-08 10:38
professionalDaveyM695-Mar-08 10:38 
GeneralRe: User Control without UI Pin
Christian Graus5-Mar-08 10:57
protectorChristian Graus5-Mar-08 10:57 
GeneralRe: User Control without UI Pin
DaveyM696-Mar-08 5:25
professionalDaveyM696-Mar-08 5:25 
GeneralRe: User Control without UI Pin
DaveyM696-Mar-08 6:22
professionalDaveyM696-Mar-08 6:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.