Click here to Skip to main content
15,891,513 members
Home / Discussions / C#
   

C#

 
GeneralRe: Share access to a stream, logfile name, and a locker between two classes (objects) Pin
Marco Bertschi7-Jun-14 6:14
protectorMarco Bertschi7-Jun-14 6:14 
GeneralRe: Share access to a stream, logfile name, and a locker between two classes (objects) Pin
PIEBALDconsult7-Jun-14 4:37
mvePIEBALDconsult7-Jun-14 4:37 
GeneralRe: Share access to a stream, logfile name, and a locker between two classes (objects) Pin
Marco Bertschi7-Jun-14 6:11
protectorMarco Bertschi7-Jun-14 6:11 
QuestionNeed to get readable address from latitude and longitude in windows form application using c# Pin
Godwinsmith5-Jun-14 18:54
professionalGodwinsmith5-Jun-14 18:54 
AnswerRe: Need to get readable address from latitude and longitude in windows form application using c# PinPopular
Bernhard Hiller5-Jun-14 20:58
Bernhard Hiller5-Jun-14 20:58 
GeneralRe: Need to get readable address from latitude and longitude in windows form application using c# Pin
Godwinsmith5-Jun-14 23:23
professionalGodwinsmith5-Jun-14 23:23 
QuestionClear ListBox from different class Pin
doby485-Jun-14 13:50
doby485-Jun-14 13:50 
AnswerRe: Clear ListBox from different class Pin
Wes Aday5-Jun-14 14:38
professionalWes Aday5-Jun-14 14:38 
Your program is behaving exactly as you should expect it to.

doby48 wrote:
MyForm mf = new MyForm();

You create a brand new MyForm

doby48 wrote:
mf.ClearMainListBox();

Clear the listbox

doby48 wrote:
}

Then you let mf go out of scope and be destroyed.

If you really want your OtherClass to do anything with MyForm then you need to pass the existing instance of MyForm to OtherClass. Start with Transferring information between two forms, Part 1: Parent to Child[^]


GeneralRe: Clear ListBox from different class Pin
doby485-Jun-14 15:15
doby485-Jun-14 15:15 
GeneralRe: Clear ListBox from different class Pin
doby485-Jun-14 15:46
doby485-Jun-14 15:46 
Questionchat application Pin
Member 107629805-Jun-14 11:15
Member 107629805-Jun-14 11:15 
AnswerRe: chat application Pin
Mycroft Holmes5-Jun-14 12:51
professionalMycroft Holmes5-Jun-14 12:51 
GeneralRe: chat application Pin
Member 107629805-Jun-14 20:08
Member 107629805-Jun-14 20:08 
GeneralRe: chat application Pin
Mycroft Holmes5-Jun-14 22:31
professionalMycroft Holmes5-Jun-14 22:31 
GeneralRe: chat application Pin
Member 107629806-Jun-14 9:48
Member 107629806-Jun-14 9:48 
AnswerRe: chat application Pin
ZurdoDev5-Jun-14 16:20
professionalZurdoDev5-Jun-14 16:20 
GeneralRe: chat application Pin
Mycroft Holmes5-Jun-14 22:29
professionalMycroft Holmes5-Jun-14 22:29 
GeneralRe: chat application Pin
ZurdoDev6-Jun-14 1:24
professionalZurdoDev6-Jun-14 1:24 
AnswerRe: chat application Pin
Marco Bertschi6-Jun-14 9:21
protectorMarco Bertschi6-Jun-14 9:21 
GeneralRe: chat application Pin
Member 107629806-Jun-14 9:42
Member 107629806-Jun-14 9:42 
QuestionI can not convert WriteAllBytes to something can be used Progress Bar?? Pin
Hades104-Jun-14 1:27
Hades104-Jun-14 1:27 
AnswerRe: I can not convert WriteAllBytes to something can be used Progress Bar?? Pin
Richard MacCutchan4-Jun-14 2:48
mveRichard MacCutchan4-Jun-14 2:48 
GeneralRe: I can not convert WriteAllBytes to something can be used Progress Bar?? Pin
Eddy Vluggen4-Jun-14 2:58
professionalEddy Vluggen4-Jun-14 2:58 
GeneralRe: I can not convert WriteAllBytes to something can be used Progress Bar?? Pin
Hades104-Jun-14 4:15
Hades104-Jun-14 4:15 
SuggestionRe: I can not convert WriteAllBytes to something can be used Progress Bar?? Pin
GuyThiebaut4-Jun-14 6:21
professionalGuyThiebaut4-Jun-14 6:21 

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.