473,505 Members | 14,658 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to add Command Button inside Listbox

2 New Member
Hi Group,
How can I add a Command button inside a Listbox? I created a listbox and a command button on the form. now during the form_load event, I am trying to add command button to this listbox, but it does not work.. I am using VB 6. Since I am new to VB, can anyone help me in this regard..

Thanks in advance..
Oct 3 '06 #1
4 3770
Reena83
32 New Member
Hi Group,
How can I add a Command button inside a Listbox? I created a listbox and a command button on the form. now during the form_load event, I am trying to add command button to this listbox, but it does not work.. I am using VB 6. Since I am new to VB, can anyone help me in this regard..

Thanks in advance..
Why are you trying to add a command button in your listbox???
Oct 5 '06 #2
sashi
1,754 Recognized Expert Top Contributor
Hi there,

Am not sure on how to do that, but am sure you can do that with a little of API magic, try searching in Google.com. Good luck & take care my fren.. :)
Oct 5 '06 #3
yogitadesai
2 New Member
Why are you trying to add a command button in your listbox???
I wanted to align the button having direction(up/down arrow) against every entry in the list. Since the contents of the list are dynamic, i was just curious to know whether its possible to add buttons in the listbox.
Oct 8 '06 #4
Reena83
32 New Member
I wanted to align the button having direction(up/down arrow) against every entry in the list. Since the contents of the list are dynamic, i was just curious to know whether its possible to add buttons in the listbox.
Hi Yogi...
Did you mean to ask for the scroll function? Just lil confused here, coz usually when I get data from the database into a listbox when you have lots of data the scroll function is there! I'm just thinking right now perhaps thats what you were after!!!
Oct 10 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
4817
by: louise | last post by:
hi i am trying to set up a mail merge button which takes records from a multi-select listbox (the contents of which are decided by a query created by a search from) and not from a specific...
2
4978
by: Mr. Bungle | last post by:
When importing excel from access I am fully aware that one can import directly into a table. Can you get as specific via code or something to import data from an excel sheet to a FORM (Not Table)...
8
5469
by: jquest | last post by:
Hi Again; I have had help from this group before and want to thank everyone, especially PCDatasheet. My database includes a field called HomePhone, it uses the (xxx)xxx-xxx format to include...
0
2581
by: AK | last post by:
Hello, Listbox mulitselect property is set to true (extended). I am trying to implement drag and drop feature for a listbox. The drag & drop is done in the mouse move event (DoDragdrop...
1
2256
by: yamne | last post by:
I have a problem. When I click in edit datagrid button I show two listbox and two button. I use two button to move data between two listbox. My problem is that I can't call the listbox in the...
1
1296
by: Steve | last post by:
Hello, In my first (of 2) aspx page I have 2 listboxes. I populate the first listbox in the PageLoad event If Not IsPostBack Then .... When I select an item from the first listbox, lst1,...
3
1890
by: Raja | last post by:
I have a simple question, I have a datagrid and inside the grid, i have List box. I am able to render the page with the datagrid and the lisbox values. Now, my question is how to trap the server...
0
1736
by: jpr | last post by:
Hello, I use a listbox and a command button on a form as criteria to open another form. The click event of my cmdbutton has the following code that runs after selecting a record in the...
16
2694
by: Steve | last post by:
I am working on a database that has a main menu, many sub-menus and some sub-sub-menus. They are all forms that have numerous command buttons on them to open forms and reports in the database. The...
0
7216
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
7098
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
7303
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
7367
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
7471
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...
1
5028
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...
0
4699
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
407
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.