Click here to Skip to main content
16,011,680 members
Home / Discussions / C#
   

C#

 
AnswerRe: SelectedItem not working??? I'm stumped! Pin
SpeBeeTo7-Jan-06 7:37
SpeBeeTo7-Jan-06 7:37 
QuestionAlarm Clock Pin
monrobot136-Jan-06 19:00
monrobot136-Jan-06 19:00 
AnswerRe: Alarm Clock Pin
Ravi Bhavnani6-Jan-06 19:30
professionalRavi Bhavnani6-Jan-06 19:30 
GeneralRe: Alarm Clock Pin
monrobot137-Jan-06 10:07
monrobot137-Jan-06 10:07 
QuestionC# 2.0 ToolTip on ChildPanel Pin
kselman6-Jan-06 18:14
kselman6-Jan-06 18:14 
QuestionHow Create Code File Pin
raab20056-Jan-06 14:06
raab20056-Jan-06 14:06 
AnswerRe: How Create Code File Pin
Guffa6-Jan-06 14:34
Guffa6-Jan-06 14:34 
AnswerRe: How Create Code File Pin
AndrewPeters6-Jan-06 14:49
AndrewPeters6-Jan-06 14:49 
Out of curiosity, why are you using a module in the first place? For an object that you only want one instance of, check out the singleton design pattern. It is much more elegant than global variables or global functions (like what this module is doing essentially).

Check out singleton pattern on this site or on Google.

Another good option that most enterprise applications use is storing database connection information in a config file. .NET comes with app.config which can be used through the System.Configuration classes. You can also wrap your own with an XmlReader.

Andrew Peters, MCSD
Fabrefactum Software
GeneralRe: How Create Code File Pin
raab20056-Jan-06 15:25
raab20056-Jan-06 15:25 
QuestionHelp Pin
aPerfectCircle6-Jan-06 11:56
aPerfectCircle6-Jan-06 11:56 
AnswerRe: Help Pin
Ravi Bhavnani6-Jan-06 12:01
professionalRavi Bhavnani6-Jan-06 12:01 
GeneralRe: Help Pin
aPerfectCircle7-Jan-06 15:05
aPerfectCircle7-Jan-06 15:05 
GeneralRe: Help Pin
Ravi Bhavnani8-Jan-06 5:24
professionalRavi Bhavnani8-Jan-06 5:24 
GeneralRe: Help Pin
aPerfectCircle8-Jan-06 5:47
aPerfectCircle8-Jan-06 5:47 
GeneralRe: Help Pin
Ravi Bhavnani8-Jan-06 5:50
professionalRavi Bhavnani8-Jan-06 5:50 
QuestionStarting a new process and waiting Pin
SeanCM6-Jan-06 11:46
SeanCM6-Jan-06 11:46 
AnswerRe: Starting a new process and waiting Pin
Ravi Bhavnani6-Jan-06 11:57
professionalRavi Bhavnani6-Jan-06 11:57 
GeneralRe: Starting a new process and waiting Pin
SeanCM6-Jan-06 12:13
SeanCM6-Jan-06 12:13 
AnswerRe: Starting a new process and waiting Pin
Dave Kreskowiak6-Jan-06 12:13
mveDave Kreskowiak6-Jan-06 12:13 
GeneralRe: Starting a new process and waiting Pin
SeanCM6-Jan-06 12:16
SeanCM6-Jan-06 12:16 
GeneralRe: Starting a new process and waiting Pin
Ravi Bhavnani6-Jan-06 12:21
professionalRavi Bhavnani6-Jan-06 12:21 
Questionmake setup Pin
mehrdadc486-Jan-06 9:40
mehrdadc486-Jan-06 9:40 
AnswerRe: make setup Pin
tarasn7-Jan-06 20:49
tarasn7-Jan-06 20:49 
QuestionChanging Project Properties Pin
pedroinafrica6-Jan-06 8:50
pedroinafrica6-Jan-06 8:50 
AnswerRe: Changing Project Properties Pin
Jared Parsons6-Jan-06 12:39
Jared Parsons6-Jan-06 12:39 

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.