Hi,
I'm sorry for my English.
I have a dll create in Vegas Studio whit two Forms. Form1 and Form2 in the same dll
I like to create a script cues. To call a specific form in the dll. One script to one form and another for the other Form
But I have a problem with object Vegas. The same error forever, null object!!
How can I work with the vegas object to get the data?
And not error in Visual Studio
Thanks for your time!!!
Visual Basic Form1
using ScriptPortal.Vegas;
using System;
using System.Windows.Forms;
namespace TESTEVARIOSFORMS
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
// ERROR NULL OBJECT!!!
label1.Text= EntryPoint.myVegas.Version.ToString();
}
}
public class EntryPoint
{
public static Vegas myVegas;
public void FromVegas(Vegas vegas)
{
myVegas = vegas;
}
}
}
And my cs:
using ScriptPortal.Vegas;
using System.Windows.Forms;
using TESTEVARIOSFORMS;
public class EntryPoint
{
public static Vegas myVegas;
public void FromVegas(Vegas vegas)
{
myVegas = vegas;
Form1 miForm = new Form1();
miForm.Show();
}
}
XML:
<?xml version="1.0" encoding="UTF-8" ?> <ScriptSettings> <AssemblyReference >C:\Users\adelpino\Documents\Visual Studio 2017\Projects\TESTEVARIOSFORMS\TESTEVARIOSFORMS\bin\Debug\TESTEVARIOSFORMS.dll</AssemblyReference> </ScriptSettings>