strange behavior of textbox

  • Thread starter Thread starter Maileen
  • Start date Start date
M

Maileen

Hi,

I have some strange behavior in my application.
Let's say I have 2 buttons and 1 Textbox.

1. when i click on button1, it writes "hello world" in my textbox.
i see it.

2. after that, i click on button2 to take the text of my textbox and do
something with it. but instead of that, button2 returns me an empty
value ....like textbox.text = "".

how is it possible ?
i was thinking to use update or refresh, but nothing works..
it's a new behavior for me, as i already used this technique under VB6
without problem.

Who do you think about that ?

Maileen
 
Maileen said:
Hi,

I have some strange behavior in my application.
Let's say I have 2 buttons and 1 Textbox.

1. when i click on button1, it writes "hello world" in my textbox.
i see it.

2. after that, i click on button2 to take the text of my textbox and do
something with it. but instead of that, button2 returns me an empty
value ....like textbox.text = "".

how is it possible ?
i was thinking to use update or refresh, but nothing works..
it's a new behavior for me, as i already used this technique under VB6
without problem.

Who do you think about that ?

Maileen

Can we see your code? Did you really call it "textbox.text"?

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top