Click here to Skip to main content
15,900,588 members
Home / Discussions / C#
   

C#

 
AnswerRe: mouse cursor Pin
Nader Elshehabi27-Aug-06 14:29
Nader Elshehabi27-Aug-06 14:29 
QuestionHow to get URL on the screen?please.. Pin
zhoujun27-Aug-06 13:03
zhoujun27-Aug-06 13:03 
AnswerRe: How to get URL on the screen?please.. Pin
Nader Elshehabi27-Aug-06 13:35
Nader Elshehabi27-Aug-06 13:35 
Questionkeyboard and mouse Pin
xkx3227-Aug-06 9:17
xkx3227-Aug-06 9:17 
AnswerRe: keyboard and mouse Pin
Andy Moore27-Aug-06 9:56
Andy Moore27-Aug-06 9:56 
AnswerRe: keyboard and mouse Pin
beatles169227-Aug-06 11:43
beatles169227-Aug-06 11:43 
AnswerRe: keyboard and mouse Pin
Ed.Poore27-Aug-06 11:51
Ed.Poore27-Aug-06 11:51 
QuestionAdd Item to ListBox in Run Time Pin
J Liang27-Aug-06 6:59
J Liang27-Aug-06 6:59 
Hi,

I am having problem refreshing the list box after I'd added an item to it.

The situation is like this, from form1, I click Add button to open a new form, let say form2 for me to fill in some details to the textbox, when I click on Add, form2 close and supposingly the list box in form1 should refresh and show the changes but it don't.

From form 1:

private void btnAdd_Click(object sender, EventArgs e)
{
form2.ShowDialog();
}

then form2 opens and it do whatever needed and pass the value using this:

form1.clientName = txtName.Text;
form1.AddToList();

then back to form1:

public void AddToList()
{
lstClientList.Items.Add(this.clientName);
}

usually if lstClientList.Items.Add(this.clientName); is done directly on the btnAdd_Click, it will add and show the changes on the list box but it don't work when I use another form to add.

Would appreciate for your help

Jie Liang
AnswerRe: Add Item to ListBox in Run Time Pin
Guffa27-Aug-06 7:52
Guffa27-Aug-06 7:52 
GeneralRe: Add Item to ListBox in Run Time Pin
J Liang27-Aug-06 15:29
J Liang27-Aug-06 15:29 
QuestionTiming question with multithreading Pin
mav.northwind27-Aug-06 6:07
mav.northwind27-Aug-06 6:07 
AnswerRe: Timing question with multithreading Pin
Ed.Poore27-Aug-06 11:53
Ed.Poore27-Aug-06 11:53 
GeneralRe: Timing question with multithreading Pin
mav.northwind27-Aug-06 20:21
mav.northwind27-Aug-06 20:21 
AnswerRe: Timing question with multithreading Pin
leppie27-Aug-06 20:11
leppie27-Aug-06 20:11 
GeneralRe: Timing question with multithreading Pin
mav.northwind27-Aug-06 20:25
mav.northwind27-Aug-06 20:25 
GeneralRe: Timing question with multithreading Pin
mav.northwind27-Aug-06 22:51
mav.northwind27-Aug-06 22:51 
GeneralRe: Timing question with multithreading Pin
leppie27-Aug-06 23:17
leppie27-Aug-06 23:17 
GeneralRe: Timing question with multithreading Pin
mav.northwind28-Aug-06 4:10
mav.northwind28-Aug-06 4:10 
GeneralRe: Timing question with multithreading Pin
mav.northwind28-Aug-06 9:40
mav.northwind28-Aug-06 9:40 
QuestionPassing Delegate as a prameter in Method Call Pin
t4ure4n27-Aug-06 3:48
t4ure4n27-Aug-06 3:48 
AnswerRe: Passing Delegate as a prameter in Method Call Pin
Nader Elshehabi27-Aug-06 6:00
Nader Elshehabi27-Aug-06 6:00 
Questionrefresh web page automatically Pin
Mohammad Daba'an26-Aug-06 23:14
Mohammad Daba'an26-Aug-06 23:14 
AnswerRe: refresh web page automatically [modified] Pin
Guffa26-Aug-06 23:52
Guffa26-Aug-06 23:52 
QuestionRe: refresh web page automatically Pin
Mohammad Daba'an27-Aug-06 3:57
Mohammad Daba'an27-Aug-06 3:57 
AnswerRe: refresh web page automatically Pin
Guffa27-Aug-06 4:10
Guffa27-Aug-06 4:10 

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.