Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Visual Basic question. (Currency; change rate.)?

Greetings all, I'm currently working on a assignment which I've been assignment to create a currency program. So I have created all sort of forms needed, and I have created the currency exchange rate but I don't know the code for entering the rate on the form (Not in the codes) So people can change the currency rate by themselves. Here's my screenshot, thanks in advance.

Attachment image

1 Answer

Relevance
  • AJ
    Lv 7
    6 years ago

    How I would program this is to create a dialog form with a listbox that has all the various currency conversion ie USD to Euro or Euro to Yen. When you select it, on a different part of form it displays the 2 currency and direction of Exchange along with a numericUpDown control to handle the rate. then do a confirmation of change messagebox to verify the change.

    Remember for each combination of 2 currencies there are 2 different exchange rates. A -> B and B -> A. I'm guessing you have a class that stores the 2 types of currencies and the 2 different exchange rates.

Still have questions? Get your answers by asking now.