Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

Centering UADataDialog

More
03 Jul 2024 19:50 #12913 by ZParham
Replied by ZParham on topic Centering UADataDialog
The customer confirmed that this is not urgent or important, just something that would be nice to have in the future.

Thank you!

Please Log in or Create an account to join the conversation.

More
03 Jul 2024 18:44 #12911 by ZParham
Replied by ZParham on topic Centering UADataDialog
Thank you very much for your swift reply and the additional information regarding the "why."

I have asked the customer how important this is to his implementation and will let you know how he responds.

Thank you again!

Please Log in or Create an account to join the conversation.

More
03 Jul 2024 16:57 #12909 by support
Replied by support on topic Centering UADataDialog
Hello Z,

short answer: Unfortunately this is not currently possible.

Longer answer: It would not be difficult to add more control over the location as a new feature (in a new version). Let me know how important that is.

The current design, however, uses something called "Windows default location" (learn.microsoft.com/en-us/dotnet/api/system.windows.forms.formstartposition ), whatever that is, to initially display the dialog. On subsequent invocations (when using the same UADataDialog object!), the position and size should be retained from the previous invocation (so, if the user decided to move or resize the dialog, it should reappear at the place and in size it had before closing).

Best regards

Please Log in or Create an account to join the conversation.

More
03 Jul 2024 16:26 #12908 by ZParham
One of our customers raised an interesting question, and I was wondering if you have any insight into how best to handle this.

When launching an instance of the UADataDialog, the dialog box is not centered on the screen. Is there a way to force this?

UADataDialog does not seem to have a property that allows you to set the location of the dialog box, since the Windows CommonDialog class does not either.

Have you seen any interesting workarounds for this, or do you have any ideas? In looking around online, I have seen some people suggest the use of another form, but I just wanted to check in and see if there may be a cleaner way or a property that I am missing for UADataDialog.

As always, thank you!

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.047 seconds