What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Command Button VB Help

Command Button VB Help
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Command Button VB Help
quote:
Originally posted by mwe99
lol wow am i confused :P
no wonder :P

First of all disregard everything Blade has said... sorry Blade, but yours make no sense at all. As Segosa said, that isn't even logic programming code.

quote:
Originally posted by Millenium_edition
if you would have used arrays of buttons, you'd only have to write one procedure and it would have been much easier. :-/
indeed. And this is the way to go for something like this...

code:
Option Explicit

Dim CurrentBox As Byte

Private Sub Form_Load()
  CurrentBox = 1
  Call ClearBoxes
End Sub

Private Sub cmdColor_Click(Index As Integer)
  cmdFinal(CurrentBox).BackColor = cmdColor(Index).BackColor
  CurrentBox = CurrentBox + 1
  If CurrentBox = 5 Then
    Call Validate
    '
    CurrentBox = 1
    Call ClearBoxes
  End If
End Sub
see attached zip for full example code

.zip File Attachment: Form1.zip (1.16 KB)
This file has been downloaded 88 time(s).
.-= A 'frrrrrrrituurrr' for Wacky =-.
04-29-2005 08:41 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Command Button VB Help - by mwe99 on 04-28-2005 at 05:15 PM
RE: Command Button VB Help - by .blade// on 04-28-2005 at 05:25 PM
RE: Command Button VB Help - by Stigmata on 04-28-2005 at 05:27 PM
RE: Command Button VB Help - by mwe99 on 04-28-2005 at 05:30 PM
RE: Command Button VB Help - by .blade// on 04-28-2005 at 05:37 PM
RE: Command Button VB Help - by mwe99 on 04-28-2005 at 05:39 PM
RE: Command Button VB Help - by .blade// on 04-28-2005 at 05:42 PM
RE: Command Button VB Help - by mwe99 on 04-28-2005 at 05:45 PM
RE: Command Button VB Help - by Stigmata on 04-28-2005 at 05:47 PM
RE: Command Button VB Help - by mwe99 on 04-28-2005 at 05:52 PM
RE: Command Button VB Help - by .blade// on 04-28-2005 at 06:03 PM
RE: Command Button VB Help - by mwe99 on 04-28-2005 at 06:09 PM
RE: Command Button VB Help - by .blade// on 04-28-2005 at 06:12 PM
RE: Command Button VB Help - by Millenium_edition on 04-28-2005 at 06:15 PM
RE: Command Button VB Help - by segosa on 04-28-2005 at 09:08 PM
RE: Command Button VB Help - by CookieRevised on 04-29-2005 at 08:41 AM
RE: Command Button VB Help - by mwe99 on 04-29-2005 at 07:09 PM
RE: Command Button VB Help - by CookieRevised on 04-30-2005 at 02:20 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On