473,774 Members | 2,191 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 3783
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
4830
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 query. I have a function GetCriteria() Private Function GetCriteria() As String Dim stDocCriteria As String
2
4990
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) through a command button. For example: cell C5 on the selected excel spread sheet = textbox2 in the current form. This is for a service repair type database. The service technicians work out in the field and currently create their service orders...
8
5498
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 area code. When a customer calls, I currently use Ctrl F with the HomePhone field highlighted. Then I enter the last 4 digits and use the find next option. This is cumbersome, so I have tried several methods (including a macro) using comand...
0
2602
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 function is called in mouse move event). I am facing two problems: 1. First is that when shift key is pressed and left mouse button is down. The listbox does not give the correct count of selected items. It gives only one item as selected...
1
2267
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 button_click function because the only way to find the listbox is: (listbox)e.item.findcontrol What s the solution to this problem?
1
1315
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, the 2nd listbox gets populated and writes some text to a
3
1906
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 side SelectedIndexChanged event of the listbox. Any help in VB.NET would be greatly appreciated. Thanks
0
1765
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 listbox: If IsNull(Me!) Then MsgBox "Sorry! No record selected"
16
2734
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 database has hundreds of forms and reports. I was asked to go through all the menu forms and determine if all the buttons worked, if there were any problems when either the form or report opened and to come up with a list of the forms and reports...
0
9621
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10267
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9915
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8939
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6717
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5358
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4014
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2852
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.