Click here to Skip to main content
15,913,941 members
Home / Discussions / C#
   

C#

 
GeneralRe: C#, Timer and GetTickCount on Compact Framework Pin
abalbo28-Jan-07 1:19
abalbo28-Jan-07 1:19 
AnswerRe: C#, Timer and GetTickCount on Compact Framework Pin
Luc Pattyn26-Jan-07 0:16
sitebuilderLuc Pattyn26-Jan-07 0:16 
GeneralRe: C#, Timer and GetTickCount on Compact Framework Pin
abalbo26-Jan-07 23:29
abalbo26-Jan-07 23:29 
GeneralRe: C#, Timer and GetTickCount on Compact Framework Pin
Luc Pattyn27-Jan-07 1:43
sitebuilderLuc Pattyn27-Jan-07 1:43 
QuestionHow can I get Combobox Selected ValueMember [modified] Pin
dataminers25-Jan-07 21:35
dataminers25-Jan-07 21:35 
AnswerRe: How can I get Combobox Selected ValueMember Pin
baerten26-Jan-07 0:21
baerten26-Jan-07 0:21 
QuestionAbout the new keyword Pin
Loophole25-Jan-07 21:29
Loophole25-Jan-07 21:29 
AnswerRe: About the new keyword Pin
Martin#25-Jan-07 21:44
Martin#25-Jan-07 21:44 
Hello,

"new" always creates a new instance of an object (type);

So If you need to change something and it's not possible over properties, you have to create a new instance of this class.

This also means that you have two instances in the memory but only one referenced to youre local variable (command).

The GarbadgeCollector is not always able, per default, to clear this memory. (reference could be hold from an other class over an eventhandler)
If the class is a member of IDisposable, you should call the Dispose method first.

Loophole wrote:
command = OdbcCommand(newStatement, connection);

This will not compile, unless the Constructor requires the new keyword.

All the best,

Martin
GeneralRe: About the new keyword Pin
Loophole26-Jan-07 1:22
Loophole26-Jan-07 1:22 
AnswerRe: About the new keyword Pin
ShermansLagoon25-Jan-07 21:47
ShermansLagoon25-Jan-07 21:47 
JokeRe: About the new keyword Pin
Martin#25-Jan-07 21:59
Martin#25-Jan-07 21:59 
GeneralRe: About the new keyword Pin
Loophole26-Jan-07 1:19
Loophole26-Jan-07 1:19 
GeneralRe: About the new keyword Pin
ShermansLagoon26-Jan-07 4:49
ShermansLagoon26-Jan-07 4:49 
AnswerRe: About the new keyword Pin
Christian Graus25-Jan-07 23:05
protectorChristian Graus25-Jan-07 23:05 
Questionhow to open single form? Pin
Sanjib Raj25-Jan-07 20:34
Sanjib Raj25-Jan-07 20:34 
AnswerRe: how to open single form? Pin
mihksoft25-Jan-07 20:50
mihksoft25-Jan-07 20:50 
AnswerRe: how to open single form? Pin
Martin#25-Jan-07 20:54
Martin#25-Jan-07 20:54 
GeneralRe: how to open single form? Pin
Sanjib Raj25-Jan-07 22:02
Sanjib Raj25-Jan-07 22:02 
GeneralRe: how to open single form? Pin
Martin#25-Jan-07 22:16
Martin#25-Jan-07 22:16 
AnswerRe: how to open single form? Pin
Luc Pattyn26-Jan-07 0:03
sitebuilderLuc Pattyn26-Jan-07 0:03 
QuestionSuggetion needed about StreamWriter Class Pin
Saira Tanwir25-Jan-07 20:15
Saira Tanwir25-Jan-07 20:15 
AnswerRe: Suggetion needed about StreamWriter Class Pin
bobsugar22225-Jan-07 21:32
bobsugar22225-Jan-07 21:32 
GeneralRe: Suggetion needed about StreamWriter Class Pin
Saira Tanwir25-Jan-07 22:03
Saira Tanwir25-Jan-07 22:03 
GeneralRe: Suggetion needed about StreamWriter Class Pin
bobsugar22225-Jan-07 22:13
bobsugar22225-Jan-07 22:13 
GeneralRe: Suggetion needed about StreamWriter Class Pin
Saira Tanwir25-Jan-07 22:27
Saira Tanwir25-Jan-07 22:27 

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.