473,324 Members | 2,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Dialog Result / Modal Form Problem

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?
Jun 27 '08 #1
1 2459
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
<ta***********@gmail.comwrote in message
news:d1**********************************@w7g2000h sa.googlegroups.com...
>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?
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: martin de vroom | last post by:
Hi, I have a web page that opens a modal dialog (client side) in the following manner onclick="window.showModalDialog('/dialog.asp',null,'dialogHeight: 200px; dialogWidth: 400px; dialogTop:...
5
by: rettigcd | last post by:
Hello, I need to create a custome form that operates similar to the MsgBox() and InputBox() functions. I can't figure out how to pass data to a MODAL dialog box (form). I've tried 3...
10
by: Guadala Harry | last post by:
I have a modal dialog that currently does all of the following except item 4. 1. lets users select a graphic from a list of thumbnails (and when selected, displays the full-size image in a...
8
by: tshad | last post by:
I am using Andy Smiths Dialog windows, which work really well. My only problem is I am trying to make the Dialogs Modal. Someone mentioned putting <base target="_self"> into the head section...
4
by: mpreston | last post by:
I'm following the example from the MSDN library on how to create modal dialog boxes in C#, but something isn't working properly. If I create a modal dialog box and show it using ShowDialog(), the...
2
by: John Brock | last post by:
At work we are using a virtual desktop manager called AltDesk (http://www.astonshell.com/), and it is causing a weird and extremely annoying problem with the VB.NET application I am developing. ...
4
by: rdemyan | last post by:
I'm using code from the following web page to open the API Browse Folder dialog http://www.mvps.org/access/api/api0002.htm It all works fine. But if the dialog box is open and the user closes...
11
by: Zytan | last post by:
I have created a new form from the main form. When I close the main form with the 'x' close button, its Form.FormClosed event is run, but not the dialog's. Is this normal? It is ok /...
11
by: VK | last post by:
In the continuation of the discussion at "Making Site Opaque -- This Strategy Feasible?" and my comment at http://groups.google.com/group/comp.lang.javascript/msg/b515a4408680e8e2 I have...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.