By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,461 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

VB.Net and OmniPage Pro

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

"Gianluca" <mo**********@hotmail.com> wrote in message
news:56**************************@posting.google.c om...
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

Nov 21 '05 #2

P: n/a
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

"Bernie Yaeger" <be*****@cherwellinc.com> ha scritto nel messaggio
news:uT*************@TK2MSFTNGP12.phx.gbl...
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

"Gianluca" <mo**********@hotmail.com> wrote in message
news:56**************************@posting.google.c om...
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


Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.