943,602 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 1722
  • VB.NET RSS
Dec 8th, 2008
0

VB6 Input and getting Output.

Expand Post »
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.
Similar Threads
Reputation Points: 8
Solved Threads: 3
Junior Poster
bharanidharanit is offline Offline
140 posts
since Nov 2008
Dec 9th, 2008
0

Re: VB6 Input and getting Output.

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.
Reputation Points: 218
Solved Threads: 201
Veteran Poster
Teme64 is offline Offline
1,024 posts
since Aug 2008
Dec 9th, 2008
0

Re: VB6 Input and getting Output.

Click to Expand / Collapse  Quote originally posted by Teme64 ...
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.
Thankyou sir,
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.
Reputation Points: 8
Solved Threads: 3
Junior Poster
bharanidharanit is offline Offline
140 posts
since Nov 2008
Dec 9th, 2008
0

Re: VB6 Input and getting Output.

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.
Reputation Points: 218
Solved Threads: 201
Veteran Poster
Teme64 is offline Offline
1,024 posts
since Aug 2008
Dec 9th, 2008
0

Re: VB6 Input and getting Output.

Click to Expand / Collapse  Quote originally posted by Teme64 ...
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.
Hello Sir,
I added it to my project. But i dint find any way to run it with my button click on form, from VS2005
Reputation Points: 8
Solved Threads: 3
Junior Poster
bharanidharanit is offline Offline
140 posts
since Nov 2008
Dec 9th, 2008
0

Re: VB6 Input and getting Output.

Sorry, it seems I understood your question totally wrong.

Here's how to launch VB6 from VB.NET
VB.NET Syntax (Toggle Plain Text)
  1. Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
  2. '
  3. Dim MyProcess As New Process
  4. Dim RetVal As Boolean
  5. Dim FileName As String
  6.  
  7. ' This my path to VB6, change it to match yours
  8. FileName = "D:\Program Files\Microsoft Visual Studio\VB98\VB6.exe"
  9. ' Set process properties
  10. MyProcess.StartInfo.UseShellExecute = True
  11. MyProcess.StartInfo.FileName = FileName
  12. MyProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal
  13. ' Start the application and check if it started
  14. RetVal = MyProcess.Start()
  15. If Not RetVal Then
  16. MessageBox.Show("Unable to start application", _
  17. "Error", _
  18. MessageBoxButtons.OK, _
  19. MessageBoxIcon.Information)
  20. End If
  21.  
  22. End Sub
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.
Reputation Points: 218
Solved Threads: 201
Veteran Poster
Teme64 is offline Offline
1,024 posts
since Aug 2008
Dec 9th, 2008
0

Re: VB6 Input and getting Output.

Thankyou sir,
I am able to do that, But it is running separately
Is it possible to run that project in the new form of myproject, with form splitted into two,
Leftside - coding
Rightside - Output
Reputation Points: 8
Solved Threads: 3
Junior Poster
bharanidharanit is offline Offline
140 posts
since Nov 2008
Dec 10th, 2008
0

Re: VB6 Input and getting Output.

No, it's not possible. I did explain that in my previous postings.
Reputation Points: 218
Solved Threads: 201
Veteran Poster
Teme64 is offline Offline
1,024 posts
since Aug 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: The API
Next Thread in VB.NET Forum Timeline: File editor (Unicode?)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC