Hi,

I have Windows 2000 SP4, Visual Studio 2003 (Microsoft Development
Environment 2003 / Version 7.1.3088), with Microsoft >NET Framework 1.1
(Version 1.1.4322 SP1).

Using C#, C++, or VB I create an application with
one form containing only a listbox, a textbox and a button.
The only code I type is for the button: when clicked
the code copies the text from the textbox to the listbox:

in C#:
private void button1_Click(object sender, System.EventArgs e) {
listBox1.Items.Add(textBox1.Text);
}

It appears the text is copied (I can select it), but
no text appear in the listbox.

When run the compiled program on a colleague's Windows XP
computer the result was the same!


Is this a framework issue (I hardly believe that!)?
Something on our computer's setup?

Any suggestion appreciated.
Many thanks

Re: listbox shows blank items by Herfried

Herfried
Mon Nov 08 15:30:08 CST 2004

"2989coder" <coder2989@nospam.invalid.com> schrieb:
> I have Windows 2000 SP4, Visual Studio 2003 (Microsoft Development
> Environment 2003 / Version 7.1.3088), with Microsoft >NET Framework 1.1
> (Version 1.1.4322 SP1).
>
> Using C#, C++, or VB I create an application with
> one form containing only a listbox, a textbox and a button.
> The only code I type is for the button: when clicked
> the code copies the text from the textbox to the listbox:
>
> in C#:
> private void button1_Click(object sender, System.EventArgs e) {
> listBox1.Items.Add(textBox1.Text);
> }
>
> It appears the text is copied (I can select it), but
> no text appear in the listbox.

If you are using McAfee AntiVirus 8 or a similar virus scanner, turn off
buffer overflow protection.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Re: listbox shows blank items by BVM

BVM
Mon Nov 08 18:28:23 CST 2004

I have a textbox that does not respond to Enter key(happen in my PC only).
Is it also because of McAfee AntiVirus?

Dennis


"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:Oqu3dodxEHA.1264@TK2MSFTNGP12.phx.gbl...
> "2989coder" <coder2989@nospam.invalid.com> schrieb:
>> I have Windows 2000 SP4, Visual Studio 2003 (Microsoft Development
>> Environment 2003 / Version 7.1.3088), with Microsoft >NET Framework 1.1
>> (Version 1.1.4322 SP1).
>>
>> Using C#, C++, or VB I create an application with
>> one form containing only a listbox, a textbox and a button.
>> The only code I type is for the button: when clicked
>> the code copies the text from the textbox to the listbox:
>>
>> in C#:
>> private void button1_Click(object sender, System.EventArgs e) {
>> listBox1.Items.Add(textBox1.Text);
>> }
>>
>> It appears the text is copied (I can select it), but
>> no text appear in the listbox.
>
> If you are using McAfee AntiVirus 8 or a similar virus scanner, turn off
> buffer overflow protection.
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>



Re: listbox shows blank items by Herfried

Herfried
Tue Nov 09 01:26:54 CST 2004

"BVM" <DennisH@TBH.com.au> schrieb:
>I have a textbox that does not respond to Enter key(happen in my PC only).
>Is it also because of McAfee AntiVirus?

I don't know. Do you use McAfee AntiVirus?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Re: listbox shows blank items by 2989coder

2989coder
Tue Nov 09 05:37:24 CST 2004

Sorry for the delay in answering.

That was it!
Thank you very much.


After a few tests I realised the buffer overflow protection only has to be
off when compiling the code, not when it is run.




Re: listbox shows blank items by BVM

BVM
Tue Nov 09 22:45:20 CST 2004

PLease tell me how to turn it off.

Thanks,

Dennis

"2989coder" <2989coder@nospam.invalid.com> wrote in message
news:112c4570ad9e585a6f6a695c8c9dadb2@localhost.talkaboutsoftware.com...
> Sorry for the delay in answering.
>
> That was it!
> Thank you very much.
>
>
> After a few tests I realised the buffer overflow protection only has to be
> off when compiling the code, not when it is run.
>
>
>



Re: listbox shows blank items by BVM

BVM
Tue Nov 09 22:45:38 CST 2004

Yes

Dennis Huang

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:eWSA71ixEHA.3376@TK2MSFTNGP12.phx.gbl...
> "BVM" <DennisH@TBH.com.au> schrieb:
>>I have a textbox that does not respond to Enter key(happen in my PC only).
>>Is it also because of McAfee AntiVirus?
>
> I don't know. Do you use McAfee AntiVirus?
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>



Re: listbox shows blank items by Herfried

Herfried
Wed Nov 10 05:51:40 CST 2004

"BVM" <DennisH@TBH.com.au> schrieb:
> Yes

Does temporarily turning it off solve the problem?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Re: listbox shows blank items by 2989coder

2989coder
Wed Nov 10 08:28:30 CST 2004

Well ... I right-click the McAffee icon next to
the clock and select "VirusScan Console...".

After that I get a window with a number of tasks.
I select the "Buffer Overflow Protection" task
and click the "Stop" icon in the toolbar (the 3rd icon).




What do you mean the textbox does not respond to the
Enter key?
AFAICT there is no method for the textbox specifically
associated with <ENTER>. You have to define a default
button which will trigger its click action when <ENTER>
is pressed in the textbox (I think).


Re: listbox shows blank items by BVM

BVM
Wed Nov 10 22:06:44 CST 2004

Last week I typed on the textbox(have tried both Rich textbox and normal
textbox), I typed Enter then the text just returned. Last weekend some admin
guys have done/installed something on my machine(including Antivirus
software, I think), then this problem happens.It's very weird. I can type
text, but not the ENTER key anymore. Sevral of us have this problem. Just
don't know what causes it.

Thanks,

Dennis


"2989coder" <2989coder@nospam.invalid.com> wrote in message
news:abc094733563314915f2109080830ea5@localhost.talkaboutsoftware.com...
> Well ... I right-click the McAffee icon next to
> the clock and select "VirusScan Console...".
>
> After that I get a window with a number of tasks.
> I select the "Buffer Overflow Protection" task
> and click the "Stop" icon in the toolbar (the 3rd icon).
>
>
>
>
> What do you mean the textbox does not respond to the
> Enter key?
> AFAICT there is no method for the textbox specifically
> associated with <ENTER>. You have to define a default
> button which will trigger its click action when <ENTER>
> is pressed in the textbox (I think).
>



Re: listbox shows blank items by BVM

BVM
Wed Nov 10 22:07:15 CST 2004

No.

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:upWGluxxEHA.2984@TK2MSFTNGP10.phx.gbl...
> "BVM" <DennisH@TBH.com.au> schrieb:
>> Yes
>
> Does temporarily turning it off solve the problem?
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>



Re: listbox shows blank items by 2989coder

2989coder
Thu Nov 11 08:35:19 CST 2004

After last update (now I have VirusScan Enterprise
8.0.0 with Scan engine 4320 and Buffer Overflow
Protection Deifnitions 131; Patch Versions
1, 4, 5, 7,8, 9) the problem disappeared!



Re: listbox shows blank items by John

John
Mon Dec 20 13:01:05 CST 2004

Thank you very much, I have spent all my spare time for the past 2 days
trying to figure this out.

John

"Herfried K. Wagner [MVP]" wrote:

> "2989coder" <coder2989@nospam.invalid.com> schrieb:
> > I have Windows 2000 SP4, Visual Studio 2003 (Microsoft Development
> > Environment 2003 / Version 7.1.3088), with Microsoft >NET Framework 1.1
> > (Version 1.1.4322 SP1).
> >
> > Using C#, C++, or VB I create an application with
> > one form containing only a listbox, a textbox and a button.
> > The only code I type is for the button: when clicked
> > the code copies the text from the textbox to the listbox:
> >
> > in C#:
> > private void button1_Click(object sender, System.EventArgs e) {
> > listBox1.Items.Add(textBox1.Text);
> > }
> >
> > It appears the text is copied (I can select it), but
> > no text appear in the listbox.
>
> If you are using McAfee AntiVirus 8 or a similar virus scanner, turn off
> buffer overflow protection.
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>
>
>

Re: listbox shows blank items by George

George
Mon Jan 24 07:01:02 CST 2005

I have the same problem with the Listboxes and MessageBoxes (blank text),
when the Buffer Overflow Protection is enabled. Where can I find these patch
versions (1, 4, 5, 7, 8, 9). I searched in Mcafee and I found nothing.

"2989coder" wrote:

> After last update (now I have VirusScan Enterprise
> 8.0.0 with Scan engine 4320 and Buffer Overflow
> Protection Deifnitions 131; Patch Versions
> 1, 4, 5, 7,8, 9) the problem disappeared!
>
>
>