Scripting Is Interfering With Main Application?

May 19, 2009

Ok this is how it is, I have my main app form, and from there I open another seperate form for scripting, but they are both open at the same time, when I run a script from the scripting form, it interfers with the main window form code that's running, I'm guessing they are both running in the same thread or whatever, how do I fix it? I've tried using thread commands but obviously it's not working,

View 1 Replies


ADVERTISEMENT

Add Some Scripting Support To .NET-application

Jun 21, 2010

I would like to add some scripting support to my .NET-application (I usually code in VB.NET). Since VisualStudio 2008 won't let me use VSA to get scripting support, and the Windows ScriptControl crashes in 64-bit mode, I have been looking for an alternative solution to my problem.I would really like to be able to code the scripts in VBScript or VB.NET, because of the simple syntax.Would it be possible to implement some kind of sandbox inside my application to make it run a VB.NET application inside itself? Or is there any simpler way of getting scripting support?

View 2 Replies

C# :: Scripting Auto-mation Within Application?

Dec 30, 2009

The software company I work for offers data conversion as a service for new clients who have previously used other similar software. I've written a VB.NET application to automate common conversion operations, and have separate logic between known vendors.particular file layout has become rather common, but due to the nature of how this particular competitor's application stores information, certain fields mean one thing for one client, and another for a different client.Certain elements within this vendor's format change every time, so I've written the application to account for that. Because some data fields mean different things to different vendors, I have to change my mapping code every time. This wasn't an issue when I had one of these every six months or so, but these are becoming much more common and I would much rather find a way to further automate this process.

View 2 Replies

Way To Implement OO Scripting Support For An Application?

Feb 28, 2010

I have to implement OO scripting in VBS/JS, wondering what's the best way to do that.he scripting engine has to be able to create new methods for existing object in the application and allow calling the methods in other existing objects.

View 4 Replies

Add Scripting Capabilities To Windows Forms Application?

Dec 8, 2010

I want to allow the user to write a little script (JScript, VB, whatever) with a function called by my application that returns an XmlDocument object (a string would be ok).I did some research, and it looks like the scripting engines are obsolete.

The best solution I could find is here: [URL]..But I was wondering if there is a better and more "official" way.

View 7 Replies

Embed Ruby As A Scripting Language Into An Application?

Sep 10, 2009

I would like you all to give me some links about embeding scripting languages and I would like to ask if it is possible to embed Ruby into a Vb.net application. I only know Vb.net c# and ruby and would prefer not to have to learn c/c++ (even though i probably will have to in the very far future).

View 3 Replies

Scripting Error - Using An Application Provided By A Third Party ?

Jul 31, 2010

We are using an application provided by a third party. We applied their hotfix and are now receiving the error below. So far they haven't been able to provide us with a solution/answer as to why this is happening and how to fix it. They say we are the first customers with this problem.

Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30560: 'FileSystemObject' is ambiguous in the namespace 'Scripting'.

Source Error:

CODE:

View 1 Replies

Application Provided By A Third Party Facing A Scripting Error?

Jul 31, 2010

We are using an application provided by a third party. We applied their hotfix and are now receiving the error below. So far they haven't been able to provide us with a solution/answer as to why this is happening and how to fix it. They say we are the first customers with this problem.

I thought maybe the .net forum here will be able to guide me on how to solve the scripting error.

[code]...

View 2 Replies

MsgBox Interfering With Array?

Aug 6, 2009

I've built a quiz program that uses several arrays to store questions and answers. For debugging purposes I've inserted several msgboxes, when I remove them I get the same question in all of the question slots(same with answers) I spent a lengthy amount of time googling, and decided I needed to post.

Form2_load calls generateQuestion. If the msgbox is inside generateQuestion, the program works, if it is right after generateQuestion it works.

[Code]...

View 3 Replies

Make An External Application 'child' Of Main .Net Application

Jan 23, 2010

I use SetParent to make an external application a "child" of my Main .Net application. This works fine.What I need to know is why can't I use Me.MDIChildren(0)I thought that using SetParent would increase the number of children by 1, thus allowing me to reference it with the above code, but it shows there are no children in the array.I have been trying, without luck, for 2 days to try to maximize an external app being displayed in my app. I can get it to display, but I would love it if it could Dock to the same size as its container (a panel)

View 3 Replies

Application Start And Main Form?

Oct 2, 2009

I am developing a commercial application that needs to do some environment checking upon start up. I need to check things like the following. 1. Is there a registry entry on this machine that has various keys for paths to SQL Server 2. If it does not I need to create them. 3. Prompt user for the path to the SQL Server 4.Check the SQL Server to see if the database I need exists. 5. Create the DB if not. 6. Populate the DB with the tables I need 7. Create stored procs in the DB 8. Write the registry. I could do all this in the form load of the main form. However is there a better way? Like doing all these checks as part of a splash screen for example.

View 2 Replies

Application That Contains A MDI Form As Main Screen

Feb 25, 2009

I have an application that contains a MDI Form as the main screen. In the text field of the form, I am trying to display the version of the application using the following syntax:[code]Using the above code, it always looks like 1.0.0.0 when in reality I'm on version 1.0.0.6. What am I doing wrong?

View 11 Replies

IE Show Up On Top Of ParentForm (Main Application)?

Apr 20, 2010

When internet explorer open and have it maximized on the screen, and if then goback to my application and then click on menuitem. Which popups a child form. Upon closing child form, parent form loosing its focus and IE show uop on Top of my application. How i can i activate my Application when any child form closed.

View 1 Replies

Running Other Applications From Within Main Application?

Mar 16, 2012

I have created an application that will run several other Engineering applications from within it.

I have my main form which will have a button on it for each application that has to be run. All the other projects are complete and have their respective '.EXE' files, which I have added to the main project.

I have coded one of the buttons to start an application, this is as follows;

Private Sub btnCoordsCalc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCoordsCalc.Click
Process.Start(My.Computer.FileSystem.CurrentDirectory & "Hole_Coordinates_Calculator.exe")
End Sub

This method works OK and does start the application. So my question is; Is this the correct way to do it, or should I import the whole project into my main project?

View 1 Replies

Close Another Application When The Main Process Has Been Killed?

May 3, 2011

I have a vb application(1) which is made to launch another software(2) with specified parameters, but i wanna keep my application opened as long as the 2nd one is opened too, and I also want to close the second one automatically if mine has been force closed by the user in windows taskmanager, on the desktop, or in any way.

So I need something which detects if windows is closing the program and kill the second application auto.

I would like to avoid the task manager block, because that isn't necessary for this i guess.

View 7 Replies

Reload The Main Form Without Closing An Application?

Jun 12, 2009

I need to reload the form of my application. The application has only one form vb.net 2005. I need a button that will call the page_load event so I can restart and reload all my settings. basically I need to call the Sub private Page_load event().I just need to force the reloading of the form without having to close it and reopen it.This is the code which I need to reload:

Public Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
For Each URLname As String In My.Settings.URLtoTrackCollection
URLtoTrack.Add(URLname)

[code]....

View 8 Replies

Application Using Graphics Only Displays Red X's Over Main Window And Control?

Jul 26, 2010

the code i have that interacts with e.graphics is

'clear area
e.Graphics.FillRectangle(Brushes.Black, 0, 0, 600, 800)
'draw sand

[code]....

here are the variable areas of my two classes, along with their new functions; assume that the get lines do what you think they do.

Public Class Sand
Private x As Integer
Private y As Integer

[code]....

View 1 Replies

Call To Application.Run(New MyForm()) Not Working When Called Outside Sub Main?

May 2, 2012

I am using Compact Framework 3.5 on a Symbol MC50.In my Sub Main it first checks to see if a database exists. If it does, it shows a login screen using the following code:

Dim login As frmLogin = New frmLogin()
If login.ShowDialog() = DialogResult.OK Then
Application.Run(New frmMain())
End If

This all works correctly and, when I close frmMain, it exits the application as expected.However, if the database check in Sub Main fails, I call the ShowDialog() method of another form that is used to create and fill the database from a live server. Here is the code for calling this form:

If Not File.Exists(SETTINGS_LOCALDB) Then
databaseExists = False
MessageBox.Show("Local DB does not exist. The database must be created before using the application.")[code].....

All of this code is being hit and frmMain does indeed load. However, when I click the close button in the top right nothing happens, no event occurs. Its as though the Windows events are not occurring.

View 2 Replies

Close Only The Main Form In 2010 Without Terminating The Application?

May 7, 2011

I have a login form which I need to close without the entire application being terminated. I tried using Me.Close() , Me.Hide() as well. The login form is used as the main form as well.

View 2 Replies

Display Application Name In The Text Property Of Main Form?

Feb 25, 2012

I am wanting to display my Application name in the text property of my main form. This is the code I a using:
Me.text = My.Application.Info.Title & " " & My.Application.Info.Version.ToString I am wanting to change the name of my project from when I first created it and for this new name to be displayed via the above code.

I have changed the name under the properties setting, yet it is not updating.

View 2 Replies

How To Close External Application On Exit From Main Screen

Oct 14, 2009

I have a button in Main screen, which calls A.exe when you pressed on it.
Process.Start("A.exe").
If I exit from Main, how can I make sure A.exe is closed too? Application.Exit in Main doesnt seems to work.

View 2 Replies

Pass Constructor Arguments To Application Main Form?

Oct 23, 2010

I've constructed a custom System.Windows.Forms.Form that requires arguments to New. I want to use one of these as the MainForm in a Windows Forms Application. How do I get the Application Framework to pass those arguments as needed?

View 1 Replies

Start Project With A Sub Main By Disabling The Application Framework?

May 14, 2009

I want to start my project with a sub main by disabling the application framework. The problem is that if i do this then the application starts and then exits in a few moments. Is there a way which could hold it until the last form is closed.

View 7 Replies

VS 2010 - Process Exe Thread Is Halting Main Application?

Feb 10, 2012

I have two applications. For performing certain functions, i run a second exe, via a process, and wait till it is complete (exited) to continue with my main application. I run through many repetitive functions on different files.Everything runs fine however, when i am doing a run and it is on the x loop number, the main application seems to halt the secondary process exe. I can only assume this is what is happening as, if i close/stop (not pause) my main application in VB, the second exe continues from where it was halted until it completes.

View 4 Replies

VS 2010 Noobie: Make The Main Window For An Application?

Feb 17, 2012

I'm a noobie coming from VBA. i thought i'd try my hand in VB (because this stuff is fun). I'm trying to make the main window for an application. i've created 2 forms so far. one entitled "Main" and the other "Form1". I would like for "Main" to be the main window of the application.

View 2 Replies

Why Doesn't The Main Window In Application Allow The User To Resize

Jun 15, 2009

Why doesn't the main window in my application allow the user to resize?

View 3 Replies

WPF Single Instance - Cannot Override The Main Sub In Application.xaml

Mar 29, 2011

Has anyone using VB.NET 2010 been able to create a single instance application? I've followed the MSDN sample but it does not have an Application.xaml file. Converting any C# samples to VB doesn't work as I cannot override the Main sub in Application.xaml (C# calls it App.xaml).

View 2 Replies

Make The Controls Inside The Application, Resize According To The Main Window?

Jun 3, 2012

Let's say I make an application where the window (by default) is 1280x720, but the user is able to resize as How can I make the controls inside the application, resize according to the main window?

View 2 Replies

Minimizing A Modal Form Minimizes Parent Or Main Application?

Jun 2, 2009

Is it possible to have an application where form1 opens a second modal form (form2) and then allows the user to minimized form2 causing the entire application to minimize to the taskbar.(form2 is never shown in the taskbar) A simple example of this is winzip where a second modal progress window is opened which can be minimized?

View 10 Replies

Using 'Application.Designer.vb' To Set One Of Two Forms As Main-form For Splash Screen

May 25, 2009

I am using the following code in the 'Application.Designer.vb' to set one of the two forms as the the mainform for my splash screen.The global string array gSetupStr(0,1) only produces a correct result when any Msgbox is inserted before the 'If' statement.However,I do not want the Msgbox during a splash screen, but do want to control the mainform. [code]

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved