473,407 Members | 2,320 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Text not visible in ListBox

Hi NG !
I have an application which writes information for the user in a
ListBox. This works very good on my computer and also on other
computers. But there are some computers on which the text (Welcome text
after start the application) in the ListBox is not visible. If i do
some actions in the application on this computer, all text would be
shown. But why not the welcome text ? I do a refresh after writting the
text in the ListBox. What could it be ?

Thanks
regards
Marcel

Jul 5 '06 #1
4 3477
"schaf" <sc***@2wire.chwrote:
I have an application which writes information for the user in a
ListBox. This works very good on my computer and also on other
computers. But there are some computers on which the text (Welcome text
after start the application) in the ListBox is not visible. If i do
some actions in the application on this computer, all text would be
shown. But why not the welcome text ? I do a refresh after writting the
text in the ListBox. What could it be ?
Hard to tell without knowing more. Is your welcome text conditional on
anything? Is there a race condition somewhere? What event are you using
to write your welcome text?

-- Barry

--
http://barrkel.blogspot.com/
Jul 5 '06 #2
Hi Barry
Hard to tell without knowing more. Is your welcome text conditional on
anything? Is there a race condition somewhere? What event are you using
to write your welcome text?
I add the text as item to the ListBox and do that in the constructor of
the form. In the Activated event I always do a refresh.
First I thought that it could be because i do it in the constructor,
but if that would be a problem, it would be one on all computers. ???

Thanks

Jul 5 '06 #3
Hi ,
I add the text as item to the ListBox and do that in the constructor of
the form.
Just make sure it's after the call to initializecomponent
In the Activated event I always do a refresh.
You do not need to do this. unless you have something else going around.
First I thought that it could be because i do it in the constructor,
but if that would be a problem, it would be one on all computers. ???
Most probably. You could move it to the OnLoad event but I don't think it
will be different at all.
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Jul 5 '06 #4
Hi Ignacio
I add the text as item to the ListBox and do that in the constructor of
the form.

Just make sure it's after the call to initializecomponent
I did it after the call of InitializeComponent
In the Activated event I always do a refresh.

You do not need to do this. unless you have something else going around.
Thanks, I removed it.
First I thought that it could be because i do it in the constructor,
but if that would be a problem, it would be one on all computers. ???

Most probably. You could move it to the OnLoad event but I don't think it
will be different at all.
Unfortunately it didn't help. The texts are not shown on this computer.

Thanks

Jul 5 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Alan | last post by:
In windows form I just created a ListBox. Added some items with String Collection Editor. When I run it - these entries are not visible. When I Expand Drop down I see empty space only. If I click...
9
by: Megan | last post by:
Hi- I'm creating a database of music bands with their cds and songs. I'm trying to program an SQL statement so that I can enter a string of text in a textbox, press the 'Enter' key, and have...
1
by: Rulin Hong | last post by:
Supposed I have 100 items or datarows to bind listBox control. and the control can only display 10 rows. So I need to tell the scope of the visible rows. Thanx in advance
2
by: Sin Jeong-hun | last post by:
Is it possible to get current visible rect when there is a scrollbar on the ListBox? Say, if the ListBox is in Details mode, and there are 1000 lines. The user has scrolled down to 500th line...
4
by: james.hunt | last post by:
I am using VB.Net 2003 on a Windows 2000 machine to load directory contents into a ListBox. For some unknown reason the text is not visible, however, if I assign a label to the selected item in...
3
by: Riun | last post by:
Hi, The Listbox on my form contains 7columns. In the OnClick event, the data in the row which is clicked on, is written to different textboxes. the last 3 columns contain data that need to be...
4
by: DanWeaver | last post by:
Due to the lack of persistence in a listbox element across postbacks I have been forced to use textboxes to gather eg removed items (removed via a javascript) so that the listbox can be repopulated...
0
by: Vincent | last post by:
I have a large list box with the multiselect property turned on and a vertical scrollbar. For every row that is selected, a designated document prints out. If the document successfully prints, I...
6
by: BerkshireGuy | last post by:
On an unbound form, I have a combobox called 'cboproducttype' and a text box called 'txtamountappliedfor'. I have an Add button that I would like the user to be able to hit once a product and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.