Click here to Skip to main content
15,914,070 members
Home / Discussions / C#
   

C#

 
QuestionAbout Webpage Setting Pin
Ahmad Zia Quaiser27-Aug-06 19:18
Ahmad Zia Quaiser27-Aug-06 19:18 
AnswerRe: About Webpage Setting Pin
jithen_dt28-Aug-06 1:28
jithen_dt28-Aug-06 1:28 
QuestionA question about maskedTextBox control Pin
mariodai36527-Aug-06 15:17
mariodai36527-Aug-06 15:17 
AnswerRe: A question about maskedTextBox control Pin
Nader Elshehabi27-Aug-06 15:27
Nader Elshehabi27-Aug-06 15:27 
GeneralRe: A question about maskedTextBox control Pin
mariodai36527-Aug-06 15:40
mariodai36527-Aug-06 15:40 
GeneralRe: A question about maskedTextBox control Pin
Nader Elshehabi27-Aug-06 16:12
Nader Elshehabi27-Aug-06 16:12 
GeneralRe: A question about maskedTextBox control Pin
Ed.Poore27-Aug-06 22:05
Ed.Poore27-Aug-06 22:05 
GeneralRe: A question about maskedTextBox control Pin
Nader Elshehabi28-Aug-06 0:58
Nader Elshehabi28-Aug-06 0:58 
Questionmouse cursor Pin
TAREQ F ABUZUHRI27-Aug-06 13:59
TAREQ F ABUZUHRI27-Aug-06 13:59 
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 

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.