Groups | Blog | Home
all groups > vb.net controls > november 2004 >

vb.net controls : Can anybody tell me which control i should use?


Terry Olsen
11/24/2004 9:35:24 PM
As the old adage states: "If it ain't broke, don't fix it." We have an
application that does a similar task. What it does is keep a log of status
messages (by appending to a text file), and it shows the latest message in a
label at the top of the app in Bold, Red, Large font.


[quoted text, click to view]

Herfried K. Wagner [MVP]
11/25/2004 8:39:48 AM
"norton" <nortonwong@hotmail.com> schrieb:
[quoted text, click to view]

I think the listbox is OK if there are only simple texts. For more complex
items, you can use a ListView control.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
norton
11/25/2004 10:11:11 AM
Hi All,

I am writing a simple win application which will run from day to day,
the application will always check the email and, once it got the email, some
business logic will perform and the process log / result will display to the
win form application. Currently i am using a list box and using
ListBox.addItem("Message") to add the message, then select the last item
index to show the latest message to user (and it works well)

Just wanna to know if there any other control that is more suitable for this
purpose? Thx for your help!!!


Regards,
Norton


Brian Schwartz
11/26/2004 1:59:52 PM
Your listbox sounds good, but I have also used a read-only textbox for
something like this on occasion. It allows for more verbose messages (if
that's appropriate) because it'll word-wrap, and the text can be highlighted
and copied. Again, just depends on what you need for your situation.

Brian

--

Brian Schwartz
FishNet Components
http://www.fishnetcomponents.com
Building better tools for developers - Be part of it!



norton
11/29/2004 11:14:55 AM
oic .~
thx all of your kindest advise!

Btw, when i am using ListView Control, how can i select and highlight the
last item ?

thx a lot ~



"norton" <nortonwong@hotmail.com> ¼¶¼g©ó¶l¥ó·s»D
:e3azbdp0EHA.2196@TK2MSFTNGP14.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button