MIDI-OX User Forum (http://www.midiox.com/cgi-bin/yabb/YaBB.pl)
MIDI-OX >> Scripting Questions >> help in Visual Studio 2005 (visual basic .net)
(Message started by: davelanton on Jul 14th, 2008, 12:34pm)

Title: help in Visual Studio 2005 (visual basic .net)
Post by davelanton on Jul 14th, 2008, 12:34pm
I am trying to use the COM interface from within a visual basic app in Visual Studio 2005.

I successfully create an instance of MIDI-OX and it calls the trigger procedure mwire.Midi_Input when data is received.

The problem is that certain commands within the procedure simply don't run. For example:

select case data1
case 1
vumeter1.level = data2
case 2
vumeter2.level = data2
end select

This works fine, and sets my ocx Vumeter value to the value of data2.

However, if I try to do something as simple as update the text in a textbox, nothing happens!  It also prevents any commands following it to execute.

For example:

textbox1.text = data1
textbox2.text = data2

I get no result.  And if I put my case statement for the vumeters after the textbox statements, they also do not execute.

Has anyone else run into problems like this?  Any help is greatly appreciated!



Title: Re: help in Visual Studio 2005 (visual basic .net)
Post by Jamie OConnell on Jul 22nd, 2008, 2:37am
All I can think of is you may need to convert data1 and data2 to text (they are numbers).




MIDI-OX User Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.