Call Vb6 Exe File On Application?
Dec 17, 2010
I want to call vb6 exe file on vb.net application that I am currently working on. The VB6 Application has the login screen and I don't want it to be displayed as the start-up screen. As soon as I call the VB6 appl the program must activate the enter key, so that I cannot put the login credentials manually.
So How do I make my program press the ENTER key?
This is my code for calling the vb6 application </Process.Start("C:\Importing.exe")>
View 4 Replies
ADVERTISEMENT
May 24, 2011
I have a self-hosted WCF service (VB) residing on a server. This service has a method, which I call from another application, that is supposed to kick off a .cmd file which calls a 3rd party program.
My WCF has used both the old Shell() command and the Process() object. Both can call the .cmd file (located on the server's local drive). The .cmd file looks like this:
CODE:
Now I know the .cmd file (saved as Letter.cmd) is firing because when I check the txt file after testing my app, the before/after statements have been written. However, the 3rd party application does not start.
Now the weird part -- if I double click the cmd file from explorer, the test statements are written to the text file AND the 3rd party application kicks off. Runs great.
I've double-checked the application and corresponding files to make sure NETWORK_SERVICE has permissions and my service is running under that account.
View 1 Replies
Aug 2, 2011
I have a windows forms application written in VB.NET which scrapes information from serveral web pages (who doesn't right)? Anyway, I am having problem with one particular site where partway through the page navigation my application hangs. When I press pause (or break) in the debugger, it stops on a call to System.Windows.Forms.Application.DoEvents.
Resuming execution shows that it really is stuck on this line (it does not reach the next line of code). It also hangs about the same point each time I run it (at least its consistent). Since System.Windows.Forms.Application.DoEvents yields to other threads on the same processor and then resumes execution of the current thread, I think the problem is that some other thread is not behaving well (not returning from some event handling code). I thought Windows 7 was pre-emptive, which makes me
doubt that theory but I really don't know.
[Code]...
The program scrapes somewhere between 12 and 14 pages before it gets stuck on the call to DoEvents. Does anyone have a clue why this would happen? Why would any call to DoEvents hang?
View 1 Replies
Aug 17, 2011
I Have one Windows Application in which i have one MDI Form (Say App1). And I too have another Windows Application in which I have a Child Form (Say App2). So now i want to Call App2 from App1 .. And want to Display App2 form As MDIChild in App1 MDI Form . I am Able to open the Form of App2 , But how to set It As App1' Child .
View 2 Replies
Aug 27, 2010
I'm going to make a Skype application using Visual Basic, I use them "Skype4COM.
Below is a link on the page somewhere in the middle Skype4COM. It is the DLL that I use.
But my question is, how can I in my application that I call you? Not that you're on the phone but if someone phoned you before you've pressed record.
View 2 Replies
Jun 3, 2011
I'm trying to use the Shell to have my application call an external application but its not working...I don't understand why. I get the following error: 'System.windows.shell' is a namespace and cannot be used as an expression!
Heres my code....any ideas what I'm doing wrong. Its got to be a simple...stupid error.
Private Sub mnuUpgrade_Click(ByVal Ctrl As Microsoft.Expression.Web.Interop.Legacy.CommandBarButton, ByRef CancelDefault As Boolean) Handles mnuUpgrade.Click
[CODE].....................
View 2 Replies
Nov 12, 2009
My problem is when i try to call Application.Run() in a application without a form i get "Object reference not set to an instance of an object." when i run it outside VS. but if ran in debug or release mode it works just fine. i may just be forgetting to setup application right, but ive done it before in this same manor and it worked fine.
Sub main() 'this runs first.
AddHandler Application.ApplicationExit, AddressOf ExitEventHandler
dbg_f("handle added")
[CODE]...
Commented out init_timer and init_ready, and now it causes the same error for the myName line. there seems to be something wrong with class Application. btw theres seems to be something wrong with the forum code formatting.
View 4 Replies
Apr 11, 2009
How do I call/use a VB6 dll in VB.NET application? Welcome to the All-In-One Code Framework! If you have any feedback
View 1 Replies
Oct 12, 2010
I need to call a VB.NET DLL in VB6 application
View 2 Replies
Nov 28, 2010
When I call a different sub from the main sub in my console application, I have to type in the word twice for it to go to the sub. But I have noticed that it only does that when I have it to be recognized at the second instance (I think I used that right). What I mean by that is this.
Sub Main()
if console.readline = "Test1"
call _Exit_()
[Code].....
If I type Test1, it will call the _Exit_ no problem. But if I call _New_, I have to type it in twice.
I also tried putting them both into if statements instead of elseif.
I have also change the order of the calls, this is where it get interesting to me. If I were to change the call from "Test1" to _New_ ()(So, instead of calling _Exit_(), it will call _New_()) If I do this, then the _New_() will work no problem
and I don't have to type it in twice, but I do for the _Exit_() now.
View 4 Replies
Oct 15, 2009
If I have a Windows Application WinApp that has a public function pubFun, how can I call it from a different windows application --> WinApp.pubFun() ?
View 2 Replies
May 16, 2012
I am looking to make a database call based on user input. The line I am using is:general_read.CommandText = "SELECT * FROM general WHERE Business_Name = '" & business_name & "';"
business_name is dynamically loaded from:Protected Sub btnLoad_Click(sender As Object, e As System.EventArgs) Handles btnLoad.Click business_name = txtName.Text
[Code]...
The error that is being shown is: Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.I'm assuming it has something to do with the variable not being set before the database call is made, but I'm not entirely sure.
View 1 Replies
Feb 17, 2012
I have a function written in vb Public Function abc (ByVal x as Integer, ByVal y as String) As String
End Function
I want to call this function on click of a button in C# applcation.
View 2 Replies
Dec 22, 2010
I am re-posing this question because the prior post has gotten really full of side issues so I fear the main problems has been lost.I have a windows forms application written in VB.NET which scrapes information from serveral web pages? I am having problem with one particular site where partway through the page navigation my application hangs. When I press pause (or break) in the debugger, it stops on a call to System.Windows.Forms.Application.DoEvents.
View 7 Replies
Jun 16, 2011
How to make an application in VB .net that can transfer voice call on (LAN). Just like the capabilities of "Skype" or "Yahoo messenger". Or it is much better if you have it for online using ASP .net.
View 1 Replies
Apr 8, 2011
I have an application written in .NET 4.0 that i compile into a DLL file. I want to be able to use this DLL file in a Windows Forms .NET 2.0 application. I don't need the application to really interact much, except just passing a couple string values to the 4.0 DLL. The DLL is pretty much a bunch of Windows which i converted to UserControls and i just need to be able to reference them to display the UserControls from the 2.0 application without having to use a different exe and having to package them separately.
What is the best way to do this? Because when i try to add the reference to the DLL to the 2.0 application, it gives me and error saying the DLL is built in a newer version of .NET so i can't do it that way. Is this where a COM object would come in?
View 2 Replies
Aug 27, 2010
How to call the .net windows service from VB application
I have only the executable for VB application. Through the exe , I am able to view the .Net service, but it does not allow to install the .net services.
View 1 Replies
Aug 5, 2010
I have a desktop application which reads files from a specified folder, then deposits the files to a folder in a third party document management system based on criteria that the user provides.
is it possible to somehow provide different parameters to the code, depending on which shortcut of the application the user clicked on to start it up?
View 3 Replies
Feb 2, 2012
I do an application for taking screenshots during the game (CoD2) - DirectX game, currently I have made the program but it does not take screenshot of game!How to take screenshots of the DirectX game?
View 14 Replies
Apr 18, 2006
Can somebody tell me the steps to follow so that i can call my windows application (.exe) file from my windows service in C# (.Net 2003
View 2 Replies
Feb 8, 2010
I am using SendKeys.Send("{HOME}") in a MaskedTextBox to bring the cursor to the beginning of the textbox when the text is empty. When I try to close the project the application freezes if it doesn't have focus. How do I put this application in focus before I call SendKeys? [Code]
View 2 Replies
Aug 31, 2010
I've decided to make my own simple scripting language parser. I've created about 50% of it and it works great! I need to implement "functions". What ever program uses my parser needs to be able to connect functions to my parser for customization. I've implemented "Lua", a scripting language, in a vb.net application of mine. To connect functions to the Lua Parser it used reflections.I need to be able to (by only knowing the name of the function and its structure) call a function connected through the implementing application.
View 2 Replies
Sep 8, 2006
I have written a windows service to do some operation (in .net), im calling the same in .net it works quite fine without any issues. Now my problem is i need to call the same service which is written in .net from an VB application.
View 4 Replies
May 25, 2010
I have a WPF Keyboard Application, it is developed in such a way that an application could call it and modify its properties to adapt the Keyboard to do what it needs to. Right now I have a file *.Keys.Set which tells the application (on open) to style itself according to that new style. I know this file could be passed as a command line argument into the application. [code]...
View 1 Replies
Mar 26, 2009
I have a simple program made in VB .NET 2003 with a few functions. I want to call these function from another application with automation.How can i do this?
View 3 Replies
Mar 17, 2010
mobile phones attached via USB odr WLAN or BT do no support TAPI
I have 2 questions:
1. is there an possibility, to send a call-Command to my mobile phone (Windos Mobile 6) ?
2. when i click to a "callto:"-link in my sugar-crm - skype opens is there a way to tell windows to open a different application ?
View 3 Replies
Jun 5, 2009
I had been looking for a way to move and resize an external window from my application and I came across this method: [Code] now this does not work, after looking around I many threads about how api calls in .net are different.
View 6 Replies
Nov 25, 2009
I have an application in VB.NET. I want to call that application from a remote system by using Java servlets. Can anybody tell me the methods for that?
View 1 Replies
Mar 4, 2010
I'm running in to a problem that I was able to fix with Application.DoEvents, but don't want to leave that in because it might introduce all sorts of nasty problems. Background: Our app is primarily a desktop app that makes many calls to a web service. We control everything but changes to the overall system design are not going to be seriously considered. One of those calls, Calculate, is used very often, and occasionally can take a few minutes to process all the data to return valid results.
[Code]...
View 1 Replies
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