VB.Net and OmniPage Pro

  • Thread starter Thread starter Gianluca
  • Start date Start date
G

Gianluca

Hi,

I'm having a problem with an application that I developed in VB.Net.
This application has worked well until I installed OmniPage 12 on my
machine.
After that, when I open a certain window of my application I obtain
the following error message:

An unhandled exception of type ‘System.ArgumentException' occurred in
system.windows.forms.dll
Additional information: ‘-178871180 is not a valid value for length'

I discovered that OmniPage loads at Windows startup an executable
called 'opware12.exe'. Killing that process my application works fine.

Moreover, debugging the application, I discovered that the problem
reside in a class inherited from ComboBox that adds some feature to
the standard combo. I use this 'enhanced' combo in the window that
generates the error.

In the code of a property that I have added to my class I use the
following code to deselect the combo text:
Me.SelectionStart = 0 '<== this row throws the exception
Me.SelectionLength = 0

Instead it works well, also with OmniPage loaded, if I use this code:
Me.Select(0,0)

Someone has experienced this kind of problem, and can give me an
explanation?

Thanks in advance for your help

Gianluca
 
Hi Gianluca,

Now that is weird.

A couple of questions:
1. is the enhanced combobox managed code?
2. have you contacted the OmniPage Pro developers?
3. has MS approved OmniPage Pro for installation on XP's etc?

Bernie Yaeger
 
Hi Bernie,

The entire software is written in managed code, using Visual Basic.Net.
I don't know if MS approved OmniPage, but, as stated in the system
requirements, it can run also on Windows XP, but I haven't tried on Windows
XP without service pack 2.
By now, it seems that the workaround is working, but if I found other
problems I will try to contact the OmniPage support.

Thanks,
Gianluca
 

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

Back
Top