The Daily Click ::. Forums ::. Non-Klik Coding Help ::. VB6 Dynamic Switchboard Buttons
 

Post Reply  Post Oekaki 
 

Posted By Message

Kai Proton



Registered
  31/01/2005
Points
  201

Wii Owner
7th September, 2012 at 07/09/2012 12:30:29 -

Ive created a Program in VB6.

Its a switchboard application, I designed it for my supervisor, as the previous one retired, and when the new one took over, he does not know where all the files are on our network,

currently there is a limit of 20 buttons(0-19)

and they are all invisible, all details of each button are stored in Registry, and it loads it each time the program loads, and saves on unload.

the buttons are a control array, but I want the buttons to be custom, so if a user wants 22 buttons for file links, they can add the others,

Ive looked online, and Cannot find anything,
Does anyone here use VB6 and how do I create a button from another button press ?


I figure the Saving of each button from a Reg Value, to check and create, based on that, I even wrote that in the original code, then got stuck, and ended up using the control Array..


 
----------------------
Time for a Sexy Party!
----------------------

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
8th September, 2012 at 08/09/2012 20:19:19 -

not sure how exactly in VB but in most other languages I would just have a button list, and add and remove buttons from it at will. You can use delegates or interfaces to assign actions to the buttons (or not depending on how flexible you need each button to be).

Also this is a community primarily based in Click products and other game creation software. A handful of us do know how to do real programming, but this is hardly the place to get any sort of useful/helpful information.

Might i recommend http://stackoverflow.com/

 
n/a

Kai Proton



Registered
  31/01/2005
Points
  201

Wii Owner
13th September, 2012 at 13/09/2012 07:54:43 -

Thanks C,
I will Check out Stack overflow,



 
----------------------
Time for a Sexy Party!
----------------------
   

Post Reply



 



Advertisement

Worth A Click