473,396 Members | 1,702 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,396 software developers and data experts.

Listbox: How do I empty the view in the window

Hi all,

I can't figure this out. I want the ability to delete an item in a
listbox and leave the window area blank, like it is when the listbox
is first created and nothing selected.

Right now the following is happening. If I simply delete the item in
the listbox, that item will stay in the view window until another item
is selected. Or I can select an item in the listbox as active and then
view it, but I don't want to do that.

I'm using the listbox to allow a user to either enter or select on
option. As a result, I need the ability to clear out the window so
they can type in their own selection.

Can someone tell me how to do this?

Thanks,
Marc
Jul 18 '05 #1
2 2455

"Marc" <mn******@airmail.net> schrieb im Newsbeitrag
news:43**************************@posting.google.c om...
Hi all,

I can't figure this out. I want the ability to delete an item in a
listbox and leave the window area blank, like it is when the listbox
is first created and nothing selected.

Right now the following is happening. If I simply delete the item in
the listbox, that item will stay in the view window until another item
is selected. Or I can select an item in the listbox as active and then
view it, but I don't want to do that.
Widgets are nor always aware whether their displayed view has been modified.
You can force this by:

widget.update()

I'm using the listbox to allow a user to either enter or select on
option. As a result, I need the ability to clear out the window so
they can type in their own selection.

Can someone tell me how to do this?


Is this another question? Have you considered to use some MPW widget as
ComboBox?

Kindly
MichaelP
Jul 18 '05 #2
Actually I was using the ComboBox but was just asking about the listbox part
of it. I was not aware of the .update() function. I had found a workaround
by deleting out the entryfield directly, but the update may be a cleaner
solution.

Thanks,
Marc
"Michael Peuser" <mp*****@web.de> wrote in message
news:bl*************@news.t-online.com...

"Marc" <mn******@airmail.net> schrieb im Newsbeitrag
news:43**************************@posting.google.c om...
Hi all,

I can't figure this out. I want the ability to delete an item in a
listbox and leave the window area blank, like it is when the listbox
is first created and nothing selected.

Right now the following is happening. If I simply delete the item in
the listbox, that item will stay in the view window until another item
is selected. Or I can select an item in the listbox as active and then
view it, but I don't want to do that.
Widgets are nor always aware whether their displayed view has been

modified. You can force this by:

widget.update()

I'm using the listbox to allow a user to either enter or select on
option. As a result, I need the ability to clear out the window so
they can type in their own selection.

Can someone tell me how to do this?


Is this another question? Have you considered to use some MPW widget as
ComboBox?

Kindly
MichaelP

Jul 18 '05 #3

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

Similar topics

1
by: Vengeance | last post by:
On the parent_form.aspx I have these controls <asp:listbox id="Operators" runat="server" Width="163px" SelectionMode="Multiple" Rows="2"></asp:listbox> <INPUT class="loButton" onclick="java...
3
by: Alan Lane | last post by:
Hello world: I have a Parent form with a combobox, where the user selects a Contract or Estimate number. Then, on a subform, I have a listbox that gets filled with the details of the selected...
3
by: Pafo007 | last post by:
Hi. I've built a small window, with some buttons and labels, and one listbox. During design time, I put five lines in the listbox and launch the program: the listbox appears empty! I can select...
1
by: yma | last post by:
Hi, I tried to use a listbox to display a column in MS Access 2000 nwind.mdb by using ole DataAdapter, Connection and dataset controls. But I got "It is already opened exclusively by another...
1
by: JMann101 | last post by:
I am writing a ASP.NET(VB) application and am having some trouble. I have a datagrid which list users and when an admin clicks "edit" a defined column becomes visible and a dynamic listbox control...
4
by: s | last post by:
I'm able to get the count of the filtered rows of the dataview from within the With view block, but when I try to bind the view to the listbox I don't get any count within the With lb1 block and my...
15
by: allansiu823 | last post by:
Hi I am new to MS Access and VBA and have been bothered by this problem for a looooong time. I have this listbox containing all the records (~1000) in a form and I want to be able to type something...
3
by: perrycheung221 | last post by:
Hi guys, I got 2 listboxes in a window form, one on left and one on right. The 1st listbox have some items while the 2nd listbox is empty. Also there are 2 buttons between the 2 listboxes which...
4
by: Dave | last post by:
I recently found out that the RequiredFieldValidator works differently for a ListBox than I needed; it checks to see if a row is selected, rather than checking to see if the listbox is empty. I...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.