Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 06-21-2008, 03:36 AM   #1 (permalink)
 
Newb Techie

Join Date: Jun 2008

Posts: 1

kashthealien is on a distinguished road

Default VB 2005 control array

how can I shorten the following code effectively provided I have buttons 3 to 6 in a collection named group

Private Sub button3_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.MouseHover
button3.visible =false
End Sub
Private Sub button4_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button4.MouseHover
button4.visible =false
End Sub
Private Sub button5_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button5.MouseHover
button5.visible =false
End Sub
Private Sub button6_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button6.MouseHover
button6.visible =false
End Sub
kashthealien is offline  
Old 06-25-2008, 09:51 PM   #2 (permalink)
oldskool's Avatar
 
Electrical Systems Design

Join Date: Jun 2008

Location: Maine, USA

Posts: 1,648

oldskool has a spectacular aura aboutoldskool has a spectacular aura about

Default Re: VB 2005 control array

Thought I would respond, but I don't have anything I can say other than I haven't worked with arrays hardly at all. I think once actually, in class. I had an intro VB course, and we only slightly touched on that, as the focus of the course was to give an overview of what VB can do.

To add, I am problably the last person to give you advice on reduced code writing, I always wrote way more code than other classmates LOL. We had to do a Fibonacci series thing in class and I had about 3 times the code that I needed. hahaha

Sorry I couldn't help but good luck.
oldskool is online now  
 
Closed Thread

Tags
code, control array, vb 2005

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Black Viper's Top tweaks for a faster PC xXxexpertxXx Overclocking, Case Mod, Tweaking PC Performance 0 02-21-2008 10:04 PM
Control Engineering Win2000/Remote Control Software, Going Network david55 Windows Operating Systems and Software 4 11-28-2007 10:06 AM
Control you Wii with your finger tips Osiris Nintendo & Wii 1 11-28-2007 05:11 AM
Hijack This Log Sobriquet. HijackThis Logs (finished) 25 04-27-2007 02:07 PM