Click here to Skip to main content
15,917,618 members
Home / Discussions / C#
   

C#

 
QuestionOpening Sub menu and minimaize main form Pin
KaKoten6-Jul-14 2:43
KaKoten6-Jul-14 2:43 
AnswerRe: Opening Sub menu and minimaize main form Pin
OriginalGriff6-Jul-14 4:04
mveOriginalGriff6-Jul-14 4:04 
GeneralRe: Opening Sub menu and minimaize main form Pin
KaKoten6-Jul-14 12:08
KaKoten6-Jul-14 12:08 
AnswerRe: Opening Sub menu and minimaize main form Pin
Eddy Vluggen6-Jul-14 8:16
professionalEddy Vluggen6-Jul-14 8:16 
GeneralRe: Opening Sub menu and minimaize main form Pin
KaKoten6-Jul-14 12:09
KaKoten6-Jul-14 12:09 
QuestionCS0246: The type or namespace name 'UserInfoaa' could not be found (are you missing a using directive or an assembly reference?) Pin
Member 109016446-Jul-14 0:18
Member 109016446-Jul-14 0:18 
AnswerRe: CS0246: The type or namespace name 'UserInfoaa' could not be found (are you missing a using directive or an assembly reference?) Pin
Bernhard Hiller6-Jul-14 20:42
Bernhard Hiller6-Jul-14 20:42 
QuestionAdd coding to showing message box successful message sent in gmail smtp in c# 2008 Pin
KaKoten5-Jul-14 23:43
KaKoten5-Jul-14 23:43 
AnswerRe: Add coding to showing message box successful message sent in gmail smtp in c# 2008 Pin
OriginalGriff6-Jul-14 0:18
mveOriginalGriff6-Jul-14 0:18 
GeneralRe: Add coding to showing message box successful message sent in gmail smtp in c# 2008 Pin
KaKoten6-Jul-14 0:53
KaKoten6-Jul-14 0:53 
GeneralRe: Add coding to showing message box successful message sent in gmail smtp in c# 2008 Pin
OriginalGriff6-Jul-14 0:54
mveOriginalGriff6-Jul-14 0:54 
GeneralRe: Add coding to showing message box successful message sent in gmail smtp in c# 2008 Pin
KaKoten6-Jul-14 1:01
KaKoten6-Jul-14 1:01 
QuestionDaraReader problem ... Pin
nassimnastaran5-Jul-14 9:32
nassimnastaran5-Jul-14 9:32 
AnswerRe: DaraReader problem ... Pin
PIEBALDconsult5-Jul-14 9:49
mvePIEBALDconsult5-Jul-14 9:49 
GeneralRe: DaraReader problem ... Pin
DamithSL5-Jul-14 18:57
professionalDamithSL5-Jul-14 18:57 
GeneralRe: DaraReader problem ... Pin
nassimnastaran6-Jul-14 2:08
nassimnastaran6-Jul-14 2:08 
GeneralRe: DaraReader problem ... Pin
PIEBALDconsult6-Jul-14 4:29
mvePIEBALDconsult6-Jul-14 4:29 
GeneralRe: DaraReader problem ... Pin
nassimnastaran6-Jul-14 7:51
nassimnastaran6-Jul-14 7:51 
QuestionMood(emotion) detection in real time Pin
JanaRMS5-Jul-14 6:29
JanaRMS5-Jul-14 6:29 
AnswerRe: Mood(emotion) detection in real time Pin
Pete O'Hanlon5-Jul-14 11:55
mvePete O'Hanlon5-Jul-14 11:55 
QuestionReactiveCommand CanExecute is not updating button Pin
J. Holzer5-Jul-14 1:22
J. Holzer5-Jul-14 1:22 
Questionreferenced parameter Pin
Gilbert Consellado5-Jul-14 0:24
professionalGilbert Consellado5-Jul-14 0:24 
C#
public class Sample{

  BindingList<something> Some;

  public Sample(ref BindingList<something> some)
  {
     Some = some;
  }

//more process
}



That class should be keep alive until the application will be closed "hmm that was a bad practice!" but i need it because it will monitor the db if there is a changes in data.

then i have this:

C#
public static Sample s = new Sample(ref SomeVariable)


Now when i passes the SomeVariable with data it is working fine, any changes of the variable "Some" of the Sample class it is reflected to the SomeVariable.

Now the problem rise if the SomeVariable has a 0(zero) items on it and passed to constructor (SomeVariable here is properly initiated), then if the Sample class found changes in the db the SomeVariable is not updated.

I will appreciate for any help will come.

Thank you,
Gilbert
AnswerRe: referenced parameter Pin
OriginalGriff5-Jul-14 0:38
mveOriginalGriff5-Jul-14 0:38 
GeneralRe: referenced parameter Pin
Gilbert Consellado5-Jul-14 1:04
professionalGilbert Consellado5-Jul-14 1:04 
GeneralRe: referenced parameter Pin
harold aptroot5-Jul-14 0:56
harold aptroot5-Jul-14 0:56 

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.