| | |
VB6 Input and getting Output.
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2008
Posts: 92
Reputation:
Solved Threads: 2
Hello sir,
I am using visual studio 2005.
I want to split the form into 2 parts.
On the left side i wil give the VB coding.
On the right side i want output for that coding.
Similar to this link
http://www.w3schools.com/html/tryit....ml_paragraphs1
But the link is for HTML coding, But i want it for VB.
Thankyou sir.
I am using visual studio 2005.
I want to split the form into 2 parts.
On the left side i wil give the VB coding.
On the right side i want output for that coding.
Similar to this link
http://www.w3schools.com/html/tryit....ml_paragraphs1
But the link is for HTML coding, But i want it for VB.
Thankyou sir.
Your link didn't work.
If you mean working with IDE, code displayed in one pane and running app in the second pane, the answer is no way.
Since VB code is compiled before execution, running the app would "lock" the exe file which prevents compiling the code. The best you get with VB is Edit & Continue feature i.e. you can stop debugger, edit source code and then continue debugging. And that's a really great feature!
AFAIK VB 2005 does not support dual monitor setups. Maybe VB 2008 does support dual monitor, but still edit & execute might not work in the way I think you mean.
If you mean working with IDE, code displayed in one pane and running app in the second pane, the answer is no way.
Since VB code is compiled before execution, running the app would "lock" the exe file which prevents compiling the code. The best you get with VB is Edit & Continue feature i.e. you can stop debugger, edit source code and then continue debugging. And that's a really great feature!
AFAIK VB 2005 does not support dual monitor setups. Maybe VB 2008 does support dual monitor, but still edit & execute might not work in the way I think you mean.
Teme64 @ Windows Developer Blog
•
•
Join Date: Nov 2008
Posts: 92
Reputation:
Solved Threads: 2
•
•
•
•
Your link didn't work.
If you mean working with IDE, code displayed in one pane and running app in the second pane, the answer is no way.
Since VB code is compiled before execution, running the app would "lock" the exe file which prevents compiling the code. The best you get with VB is Edit & Continue feature i.e. you can stop debugger, edit source code and then continue debugging. And that's a really great feature!
AFAIK VB 2005 does not support dual monitor setups. Maybe VB 2008 does support dual monitor, but still edit & execute might not work in the way I think you mean.
Is it possible to run VB6 projects in VS2005 with a button click.
(ie) In an IDE when i click some button i need VB6 projects to run in VS2005.
From VB IDE's menu "Tools\External Tools" you can add external apps to IDE, like VB6.EXE (VB6 IDE). And you get that to the "Toolbar Buttons" with Customize Toolbar.
I use VB2005 EE, in VS you might have more (=better) ways to do this.
I use VB2005 EE, in VS you might have more (=better) ways to do this.
Teme64 @ Windows Developer Blog
•
•
Join Date: Nov 2008
Posts: 92
Reputation:
Solved Threads: 2
•
•
•
•
From VB IDE's menu "Tools\External Tools" you can add external apps to IDE, like VB6.EXE (VB6 IDE). And you get that to the "Toolbar Buttons" with Customize Toolbar.
I use VB2005 EE, in VS you might have more (=better) ways to do this.
I added it to my project. But i dint find any way to run it with my button click on form, from VS2005
Sorry, it seems I understood your question totally wrong.
Here's how to launch VB6 from VB.NET
Just change the file name to start any application. The application (VB6) starts as its own process i.e. after running the code above, you'll have VB.NET and VB6 as separate processes. If you try to run VB6 "inside" of the VB.NET, that's not possible.
Here's how to launch VB6 from VB.NET
VB.NET Syntax (Toggle Plain Text)
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click ' Dim MyProcess As New Process Dim RetVal As Boolean Dim FileName As String ' This my path to VB6, change it to match yours FileName = "D:\Program Files\Microsoft Visual Studio\VB98\VB6.exe" ' Set process properties MyProcess.StartInfo.UseShellExecute = True MyProcess.StartInfo.FileName = FileName MyProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal ' Start the application and check if it started RetVal = MyProcess.Start() If Not RetVal Then MessageBox.Show("Unable to start application", _ "Error", _ MessageBoxButtons.OK, _ MessageBoxIcon.Information) End If End Sub
Teme64 @ Windows Developer Blog
![]() |
Similar Threads
- receive sms using vb6(codes) (Visual Basic 4 / 5 / 6)
- Extracting strings from a multi-byte string (Visual Basic 4 / 5 / 6)
- how to calculate time duration? (Visual Basic 4 / 5 / 6)
- How to automatically update temperature on the form load? (Visual Basic 4 / 5 / 6)
- VB6/Excel - Using Char(10) to fit a long rcrdset as two lines within same recordset (Visual Basic 4 / 5 / 6)
- Locator Database - I'm lost. (Visual Basic 4 / 5 / 6)
- making a stream server code (VB6) (Visual Basic 4 / 5 / 6)
- source for LED using parallel port codes (Visual Basic 4 / 5 / 6)
- serial comunication with a projector (Visual Basic 4 / 5 / 6)
Other Threads in the VB.NET Forum
- Previous Thread: The API
- Next Thread: File editor (Unicode?)
| Thread Tools | Search this Thread |
.net .net2008 2008 access add advanced application array basic beginner browser button buttons center click code combo cpu cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic employees excel exists fade filter forms generatetags html images input intel internet listview map mobile module monitor msaccess mysql net number objects open pan panel pdf picturebox picturebox2 port position print printing printpreview problem regex reuse right-to-left save search searchvb.net serial settings shutdown socket sqldatbase sqlserver storedprocedure survey temperature textbox timer timespan transparency txttoxmlconverter user usercontol vb vb.net vba vbnet vista visual visualbasic visualbasic.net visualstudio.net web winforms wpf wrapingcode xml year





