Forum
Digit Technology Discussion Forum
>
Portables, Peripherals and Electronics
>
QnA (read only)
Code to find Number of command buttons
User Name
Remember Me?
Password
Register
FAQ
Calendar
Mark Forums Read
QnA (read only)
Mods please help transfer the contents of this forum to proper sections. :)
LinkBack
Thread Tools
Search this Thread
Display Modes
05-12-2005, 09:05 AM
#
1
(
permalink
)
sid_b6505
Right Off the Assembly Line
Join Date: Apr 2004
Location: New Delhi
Posts: 39
Code to find Number of command buttons
Can any one plz help me in writing the code to find the number of command buttons in VB6.
Plz help
SID
__________________
Get In Touch With ME!!!!
SID
Advertisements. Register and be a member of the community to get rid of them.
Advertisement
06-12-2005, 10:02 AM
#
2
(
permalink
)
imported_dheeraj_kumar
Broken In
Join Date: Mar 2005
Location: Chennai, India
Posts: 198
why would you want such a code?
to find out the no. of cmd buttons in runtime?
i guess you can use command buttons as an array and find the size of the array to get the no. of cmd buttons
06-12-2005, 11:49 AM
#
3
(
permalink
)
siriusb
Wise Old Owl
Join Date: May 2005
Location: Chennai, India, Asia, the Earth, the Solar system, the Milky Way, the Local group, this Universe.
Posts: 1,171
dim cntrl as control
dim count as integer
for each cntrl in form.controls
If TypeOf cntrl Is CommandButton Then
count = count + 1
end if
end each
__________________
http://myxp.blogspot.com
-----------------------
Winchester 3200+ @2,500MHz
LeadTek 7900GT VOLT MODDED @ 680 core, 1800 mem
2x1GB Transcend DDR400 @ DDR454 2.5,3,3,5,1T
06-12-2005, 06:19 PM
#
4
(
permalink
)
sid_b6505
Right Off the Assembly Line
Join Date: Apr 2004
Location: New Delhi
Posts: 39
Thanx
Hey..
Thnx for your help. The code worked.
Thnx Again
SID
__________________
Get In Touch With ME!!!!
SID
Bookmarks
Digg
del.icio.us
StumbleUpon
Google
«
Previous Thread
|
Next Thread
»
Thread Tools
Search this Thread
Show Printable Version
Email this Page
Search this Thread
:
Advanced Search
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
On
Pingbacks
are
On
Refbacks
are
On
Forum Rules
Latest Threads
who wanna buy Galaxy s3?
- by
clmlbx
New gaming cafe in mumbai...need help
- by
nikimation
Official Android discussion thread
- by
amitabhishek
Windows 8 Thread.
- by
Sujeet
post your gaming hardware !
- by
NoasArcAngel
Samsung launches Galaxy S III in India at Rs 43,180!!
- by
gforz
Dead Space 3 Rumoured
- by
vickybat
Happy Birthday to MetalheadGautham and others..
- by
thetechfreak
the FOOTBALL channel
- by
Arsenal_Gunners
Increase Jar file size
- by
aseemshrey
Advertisement
All times are GMT +5.5. The time now is
03:44 PM
.
Contact Us
-
Thinkdigit.com
-
Archive
-
Top
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
LinkBack
LinkBack URL
About LinkBacks
Search Engine Optimization by
vBSEO
3.3.2