Results 1 to 20 of 20

Thread: VB program Frozen..

Threaded View

  1. #16

    Thread Starter
    Member
    Join Date
    Mar 2011
    Posts
    55

    Re: VB program Frozen..

    Really I think the easiest way would be to determine what units where initially selected and code in the radio button:
    If metric was initially selected and optImperial.Checked then
    Display RoundedImperialValue
    else if imperial was initially selected and optImperial.Checked then
    Display Imperial value
    Else if imperial was initially selected and optMetric.Checked then
    Display RoundedMetricValue
    Elseif Imperial was initially selected and optImperial.Checked then
    Display MetricValues
    Endif

    I know the syntax is not ok there but its just to give you an idea of what I am trying to do.

    EDIT1:
    Sorry didint see what you had just posted, And yes I realise that I should have structured the whole thing alittle better... This is my first VB program and its some special project my boss put me on so I am learning at the same time. But really everything else in the program is working great, only the radio button and conversions that are giving me a headache.
    I will try to re-structure the whole thing but do you think that this would work ? :
    If metric was initially selected and optImperial.Checked then
    Display RoundedImperialValue
    else if imperial was initially selected and optImperial.Checked then
    Display Imperial value
    Else if imperial was initially selected and optMetric.Checked then
    Display RoundedMetricValue
    Elseif Imperial was initially selected and optImperial.Checked then
    Display MetricValues
    Endif
    Thanks again for ure time
    Last edited by programmingpat; Apr 17th, 2011 at 04:04 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width