But with what? I mean, I have Actual Window Tools, my collegue has another virtual desktop manager (of which I don't know the name). This problem exists on 3 entirely different pc's, two being windows 7 and one windows vista; two being mine (which you could argue have the same software...
It doesn't get in an error because if I put something like below, it does get to the next line of code. Indeed it is cancelled, the question is why......
if dlg.ShowModal(me)=DialogResult.Cancel then
'it will get to this line of code
end if
Greetings,
Rick
Yep that' a typo indeed......
Anyway, the form in my vb test project doesn't have any buttons; it's an empty form doing nothing (except closing when I switch desktop.... :) )
Greetings,
Rick
Mansii thanks for going to all that trouble.
I recreated the problem a very basic VB app.
this is hte mainform, calling the popup:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
Inherits System.Windows.Forms.Form
'Form overrides dispose to...
Yeah, I thought about such "crappy" workarounds as well, but it is a hell of a lot of forms you need to attack with that, taking into acocunt that the form might be otherwise closed (such as in code) etc etc. Bottom line, I'm afraid, is that there's no real fix for this other than going back to...
Hi Sorwen thanks for your reply. I thoght about posting it in c# as well, but it isnt really c# related and didn't wnat to cross post. VB behaves exactly the same, it's just that currently I'm working on a c# app that the example code is c#...
Anyway:
Yes, it's setup to do a close on cancel...
Yes, the dlgDatabase form has accept and cancel buttons set. But other forms where this occurs do not have those buttons set. Also, there are no other events hooked to the form itself:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using...
There is really nothing special about that and it happens with every modal dialogbox in every dotnet app. An xample would be:
using (dlgDatabase dlg = new dlgDatabase(Connection.CurrentConnectionString))
{
if (dlg.ShowDialog(this) == DialogResult.Cancel)
{
//Do something after cancel...
Hi, I'm using Actual Windows Manager which has a virtual desktop switcher and a collegue of mine uses another virtual desktop manager (of which I don't know the name).
Both of us have the exact same problem: I show a modal dialog from my dotnet app (ShowModal(me/this)) and when I switch from my...
HI thanks for your response.
Yes I re-regeasm-ed with the /codebase attribute. I have the path in the registry now, which sould allow me to remove the assembly from the cache. However, it did not solve my problem.
But no, I did not check the Register for COM interop. I figured regasm would...
Hi,
I've created a C# executable with one class being comvisible. I've executed regasm on the excutable and got a valid typelibrary and also the registry settings seem to have been correctly entered. Still, I can't create an object out of the excutable. VB gives me the well-known "activeX...
Hi all,
I've installed the GUPTA SQLBase 9.0.1 server on my machine and can connect to the ISLAND database with SQL Talk without any problems. However, I've been trying to figure out how to make an ADO connection to this database for two days now without any success. Both the ODBC connection...
BSTR!=WCHAR* :
#if defined(_WIN32) && !defined(OLE2ANSI)
typedef WCHAR OLECHAR;
#else
typedef char OLECHAR;
#endif
typedef OLECHAR* BSTR;
So BSTR is either WCHAR* or char*. Furthermore when used for what it is actually to be used for (COM strings), BSTR!=OLECHAR*, since the BSTR is...
First off:
The way you have coded the on comm method is going to result in loss of data.
You have specified the rxthreshold at 1. This means that on every character that arives at the port an event will be generated. Since your data probably exists of more than one character and it probably...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.