No of visitors who read this post: 275
Category: Visual basic
Type: Question
Author: BubAngus5
Your rating: None Average: 5 (1 vote)

How to write a program that will display the periodic table of elements? The atomic symbol and atomic number should be the only information visible in your table.

And a pop-up message containing the atomic name, atomic weight, density, melting point and boiling point of each element should appear once the element symbol is clicked.

periodic table of elements

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

#

1. I assume you are using Visual Basic 6.0 and created a solution that might be very easy to do, just check the attached picture and see if it will work, otherwise, you are using VB .NET, which I haven't done a solution for. Anyway, it would just be pretty same with the .NET thing, just a little modification of the code, same design could be applied.

Just follow the procedures and refer to the picture attached below to get what I am trying to say.
 
Hope it had helped you somehow.
 
  1. Open VB 6.0 /.NET.
  2. Standard EXE (6.0)/Windows Form Application (.NET).
  3. Design the interface.
  4. Put square shapes.
  5. Put labels and change their captions.
  6. Do these to complete your design in replicating Periodic Table.
  7. Code the program.
  8. Double click the symbol of element.
  9. The code editor window will be shown.
  10. Type the code for each element and change the values indicated.
  11. Run and test the program if it does the prescribed output.

Hope it had helped you somehow.

Design the interface-Put square shapes-Put labels and change their captions-code the program

symbol of element-The code editor window-Type the code for each element and change the values indicated- Run and test