Dialog Result / Modal Form Problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tash.robinson@gmail.com

    Dialog Result / Modal Form Problem

    I have a modal form called like:

    myKeyboard.Show Dialog(Me)

    If myKeyboard.Dial ogResult = Windows.Forms.D ialogResult.OK Then
    result = myKeyboard.txtE ntry.Text
    Else
    result = defaulttext
    End If

    On the keyboard form three is an OK button and a cancel button with
    the corresponding DialogResult OK and cancel properties.

    This works fine on several machines. On one PC however, pressing the
    OK and cancel buttons does not seem to set the DialogResult and never
    closes the form. The click events for the buttons do fire though.
    What could cause this problem?? I am stumped, is it a missing dll or
    some bug in the framework? anyone else ever have a similar problem?
  • Stephany Young

    #2
    Re: Dialog Result / Modal Form Problem

    It is very unlikely that it is 'bug' in the framework or a missing dll. If
    it were either of these you would most likely see an exception of some
    description and the problem is more than likely to occur on more than 1
    machine.

    When you get at situation where something doesn't work properly on 1 machine
    but works fine on all other machines then you have no choice but to
    determine what is different about the 'problem' machine.

    BE IN NO DOUBT THAT THERE IS SOMETHING DIFFERENT.

    Isolating such a problem can be incredibly frustrating but you need to have
    patience and persevere.

    Although I cannot tell tell you exactly how to determine what is different,
    some of the places to start looking are, (not definitive by any meams):

    Regional settings

    Date/Time settings


    <tash.robinson@ gmail.comwrote in message
    news:d1baa8d8-e5c4-462c-90ec-b725b9f60ac0@w7 g2000hsa.google groups.com...
    >I have a modal form called like:
    >
    myKeyboard.Show Dialog(Me)
    >
    If myKeyboard.Dial ogResult = Windows.Forms.D ialogResult.OK Then
    result = myKeyboard.txtE ntry.Text
    Else
    result = defaulttext
    End If
    >
    On the keyboard form three is an OK button and a cancel button with
    the corresponding DialogResult OK and cancel properties.
    >
    This works fine on several machines. On one PC however, pressing the
    OK and cancel buttons does not seem to set the DialogResult and never
    closes the form. The click events for the buttons do fire though.
    What could cause this problem?? I am stumped, is it a missing dll or
    some bug in the framework? anyone else ever have a similar problem?

    Comment

    Working...