Click here to Skip to main content
15,894,720 members
Home / Discussions / C#
   

C#

 
GeneralRe: ENUM value in method Pin
Richard Deeming21-Dec-18 1:13
mveRichard Deeming21-Dec-18 1:13 
QuestionKill execute function Pin
MatrixRatrix20-Dec-18 5:50
MatrixRatrix20-Dec-18 5:50 
AnswerRe: Kill execute function Pin
Richard Deeming20-Dec-18 6:01
mveRichard Deeming20-Dec-18 6:01 
GeneralRe: Kill execute function Pin
MatrixRatrix20-Dec-18 7:09
MatrixRatrix20-Dec-18 7:09 
GeneralRe: Kill execute function Pin
Richard Deeming20-Dec-18 8:09
mveRichard Deeming20-Dec-18 8:09 
GeneralRe: Kill execute function Pin
OriginalGriff20-Dec-18 8:20
mveOriginalGriff20-Dec-18 8:20 
AnswerRe: Kill execute function Pin
OriginalGriff20-Dec-18 6:06
mveOriginalGriff20-Dec-18 6:06 
Questionc# listview Update problem Pin
MatrixRatrix20-Dec-18 2:29
MatrixRatrix20-Dec-18 2:29 
Hello,

I am new on C#, and I have a problem.

O make a form1 with listview,and i polulate this listview whit some Items.

Then I make another form2 with a button, just for count the items on Listview.

I create one function on Form1:
public void UpdatePart()
{

    MessageBox.Show(listView1.Items.Count.ToString());


}



In form2 I create a Button:

private void button1_Click(object sender, EventArgs e)
{
    Form1 a = new Form1();


    a.UpdatePart();
}



So, this count return always 0, but the listview on form1 is not empty, If I call
the same function but on the same form1, the code work and return the items numbers on listview.

What is rong ?

Thanks
AnswerRe: c# listview Update problem Pin
Richard Deeming20-Dec-18 2:36
mveRichard Deeming20-Dec-18 2:36 
GeneralRe: c# listview Update problem Pin
MatrixRatrix20-Dec-18 2:49
MatrixRatrix20-Dec-18 2:49 
AnswerRe: c# listview Update problem Pin
BillWoodruff20-Dec-18 2:51
professionalBillWoodruff20-Dec-18 2:51 
QuestionC# Pin
KKSPANDICEO19-Dec-18 1:18
KKSPANDICEO19-Dec-18 1:18 
AnswerRe: C# Pin
OriginalGriff19-Dec-18 1:19
mveOriginalGriff19-Dec-18 1:19 
AnswerRe: C# Pin
Pete O'Hanlon19-Dec-18 3:02
mvePete O'Hanlon19-Dec-18 3:02 
AnswerRe: C# Pin
pkfox19-Dec-18 23:17
professionalpkfox19-Dec-18 23:17 
QuestionMessage Closed Pin
18-Dec-18 20:08
Member 1409444418-Dec-18 20:08 
QuestionRe: How To Convert Image To Binary And Get Result In Text Box Pin
Richard MacCutchan18-Dec-18 21:11
mveRichard MacCutchan18-Dec-18 21:11 
AnswerRe: How To Convert Image To Binary And Get Result In Text Box Pin
Eddy Vluggen19-Dec-18 0:40
professionalEddy Vluggen19-Dec-18 0:40 
AnswerRe: How To Convert Image To Binary And Get Result In Text Box Pin
BillWoodruff19-Dec-18 16:20
professionalBillWoodruff19-Dec-18 16:20 
QuestionDLL Snafu and debugging question Pin
Super Lloyd18-Dec-18 12:23
Super Lloyd18-Dec-18 12:23 
AnswerRe: DLL Snafu and debugging question Pin
Mycroft Holmes18-Dec-18 20:10
professionalMycroft Holmes18-Dec-18 20:10 
GeneralRe: DLL Snafu and debugging question Pin
Super Lloyd19-Dec-18 3:47
Super Lloyd19-Dec-18 3:47 
QuestionHow is it possible that after I log in to a website which uses CAPTCHA, my WPF application take some input from me and fill some fields of that website for me? Pin
Member 1409226217-Dec-18 0:38
Member 1409226217-Dec-18 0:38 
AnswerRe: How is it possible that after I log in to a website which uses CAPTCHA, my WPF application take some input from me and fill some fields of that website for me? Pin
OriginalGriff17-Dec-18 1:58
mveOriginalGriff17-Dec-18 1:58 
QuestionImage on Windowsform ListBox Pin
picasso215-Dec-18 7:57
picasso215-Dec-18 7:57 

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.