VB6 Input and getting Output.

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2008
Posts: 92
Reputation: bharanidharanit is an unknown quantity at this point 
Solved Threads: 2
bharanidharanit bharanidharanit is offline Offline
Junior Poster in Training

VB6 Input and getting Output.

 
0
  #1
Dec 8th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 710
Reputation: Teme64 will become famous soon enough Teme64 will become famous soon enough 
Solved Threads: 114
Teme64's Avatar
Teme64 Teme64 is offline Offline
Master Poster

Re: VB6 Input and getting Output.

 
0
  #2
Dec 9th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 92
Reputation: bharanidharanit is an unknown quantity at this point 
Solved Threads: 2
bharanidharanit bharanidharanit is offline Offline
Junior Poster in Training

Re: VB6 Input and getting Output.

 
0
  #3
Dec 9th, 2008
Originally Posted by Teme64 View Post
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 710
Reputation: Teme64 will become famous soon enough Teme64 will become famous soon enough 
Solved Threads: 114
Teme64's Avatar
Teme64 Teme64 is offline Offline
Master Poster

Re: VB6 Input and getting Output.

 
0
  #4
Dec 9th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 92
Reputation: bharanidharanit is an unknown quantity at this point 
Solved Threads: 2
bharanidharanit bharanidharanit is offline Offline
Junior Poster in Training

Re: VB6 Input and getting Output.

 
0
  #5
Dec 9th, 2008
Originally Posted by Teme64 View Post
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 710
Reputation: Teme64 will become famous soon enough Teme64 will become famous soon enough 
Solved Threads: 114
Teme64's Avatar
Teme64 Teme64 is offline Offline
Master Poster

Re: VB6 Input and getting Output.

 
0
  #6
Dec 9th, 2008
Sorry, it seems I understood your question totally wrong.

Here's how to launch VB6 from VB.NET
  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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 92
Reputation: bharanidharanit is an unknown quantity at this point 
Solved Threads: 2
bharanidharanit bharanidharanit is offline Offline
Junior Poster in Training

Re: VB6 Input and getting Output.

 
0
  #7
Dec 9th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 710
Reputation: Teme64 will become famous soon enough Teme64 will become famous soon enough 
Solved Threads: 114
Teme64's Avatar
Teme64 Teme64 is offline Offline
Master Poster

Re: VB6 Input and getting Output.

 
0
  #8
Dec 10th, 2008
No, it's not possible. I did explain that in my previous postings.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC