Dialog Result / Modal Form Problem

T

tash.robinson

I have a modal form called like:

myKeyboard.ShowDialog(Me)

If myKeyboard.DialogResult = Windows.Forms.DialogResult.OK Then
result = myKeyboard.txtEntry.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?
 
S

Stephany Young

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top