QueryCAT Logo
Search 5,000,000+ questions and answers.

Frequently Asked Questions

How can I run another application or batch file from my Visual Basic .NET code?

Visual Basic Frequently Asked Questions
The answer for all of these examples is the same, you can use the classes and methods in System.Diagnostics.Process to accomplish these tasks and more. Example 1. Running a command line application, without concern for the results: Private Sub Button1_Click(ByVal sender As System.Object, _ Example 2. Retrieving the results and waiting until the process stops (running the process synchronously): Private Sub Button2_Click(ByVal sender As Object, _ Example 3.

Can I run Visual Basic 6.0 and Visual Basic .NET on the same machine?

Visual Basic Frequently Asked Questions
J. Henshaw asks "Is it possible to run both VB6 and VB.Net on the same machine,or do I have to remove VB6 to be able to use VB.NET", and the answer is a definite yes. You can run them both on the same machine. Many people, including myself, run VB6 on the same machine as their installation of Visual Basic .NET. If you look at this KB article from Microsoft Support, you will even see that it recommended to run VB6 and VB.NET on the same machine when upgrading projects from one to another.

What percentage of my Visual Basic .NET project will be converted?

Frequently Asked Questions (FAQ) about C-Sharpener For VB
The percentage of the project that will be converted is typically more than 99%. However, the percentage can vary greatly depending on the structure of your code. For instance, if Option Strict is On then it is significantly easier to convert your code because C# is more type strict. Please see Limitations and Workarounds (PDF file) for more details. You may also want to look at some sample converted projects.

Why did Visual Basic .NET introduce AndAlso and OrElse?

Visual Basic Frequently Asked Questions
Paul Vick, Technical Lead on VB.NET, and the author of the Visual Basic .NET Language Specification, discusses the new short-circuiting boolean operators added in Visual Basic .NET 2002.

How do I debug JavaScript and other script code in my application using Visual Studio .Net?

ASP .NET FAQ - Debugging and Error Handling
In IE go to Tools/Internet Options.../Advanced Tab and clear the "Disable Script Debugging" check box options. In VS.Net in your project properties dialog, select "Debugging" under "Configuration Properties" and make sure that "Enable ASP.Net Debugging" is turned on. You can then set break points in script code in VS.Net in custom script files or the application aspx file. VS.Net should give you detailed debugging information for variables in the scope just like other high-level languages.

How do I call a batch file from within another batch file?

Environment settings set by a batch file are not working.
It is possible to just enter the name of the batch file in a batch file which will run the called batch file however once completed it will not pass control back to the calling batch file leaving the rest of the calling batch file unrun. For example suppose we had the batch files If you then run calling.bat you would not get the line "Back to Calling bat" displayed as after called.bat terminates it does not return to calling.bat.

What is a batch file?

Environment settings set by a batch file are not working.
A batch file is just a text file with a .bat or .cmd extension that adheres to a syntax and a set of valid commands/instructions. To run a batch file just enter the name of the file, you don't need to enter the .cmd or .bat extensions. In line with programming tradition the first batch file we write will output "Hello World". Echo means output to the screen anything after it (the @ suppresses the command being printed to the screen, try it with and without the @).

Do you have Visual Basic sample code?

Lincoln & Co. - PageView PCL/PS Viewer FAQs
If the PCL contains a pagesize command, it will override the default. If the file is ASCII, the page size will be either the default or that size otherwise specified by the user. The default pagesize can be specified on the command line or in the .ini file.

How can I print to Pdf995 from my Visual Basic application?

PDF Create
Collate:=False, Background:=True, PrintToFile:=False, PrintZoomColumn:=0, _ PrintZoomRow:=0, PrintZoomPaperWidth:=0, PrintZoomPaperHeight:=0

What commands can be used in a batch file?

Environment settings set by a batch file are not working.
Windows NT 4.0 introduced some extensions to cmd.exe, so to use these make sure HKEY_CURRENT_USER\Software\Microsoft\Command Processor\EnableExtensions is set to 1. The following is a list of the more common commands you will use This is used to call one batch from inside another. The execution of the current batch file is suspended until the called batch file completes Used to stop batch file execution.

How can I pass parameters to a batch file?

Environment settings set by a batch file are not working.
When you call a batch file you may enter data after the command which the batch file refers to as %1, %2 etc, for example the batch file hello.bat if called as "hello.bat john" (you don't need to enter .bat extension, I just use it here as I used bad file names :-) ) expands %1 to a fully qualified path name. If you only passed a file name from the current directory it would expand to the drive/directory as well changes the meaning of n and x options to reference the short name.

How can I change colour within a batch file?

Environment settings set by a batch file are not working.
You can use the Windows NT Workstation 4.0 Color command to set the Command Prompt window colors. For example: sets the colour to yellow on black. The first part is background colour, the second the foreground and are:

How can I call a subroutine in a batch file?

Environment settings set by a batch file are not working.
An easy way to do this is to have the batch file call itself recursively and pass itself a couple of parameters, like so: Be careful! Recursive batch files can be dangerous, especially if your subroutine fires off another program. Note the syntax for calling subroutines (with parameters) and the special construct for returning (goto :eof).

How can I get the Visual Basic .NET 2003 software?

Frequently Asked Questions
Borrow the Visual Studio .NET 2003 Professional CD's from our SCC Computer Lab. If you don't bring them back you can't enroll again. Comment: If you are only going to take ITSE 1431 then the Standard Edition is OK. If you will continue studying VB .NET you need the Professional edition or better.

How do I run the code on my computer?

Internet Junkbuster Frequently Asked Questions
If you have a C compiler and are using UNIX ® or Windows 95 or NT, you download it, compile it, start it running, and then configure your browser. If you are using any other operating system you would need to port the code. You are welcome to do this, and if you would like us to consider publishing your ported version, please tell us.

What are the hardware and software requirements of Visual Basic .NET / Visual Studio .NET 2003?

Frequently Asked Questions
I recommend a fast computer with lots of hard disk space and lots of memory. Note that if you want to run all the features of VB .NET you need to have Windows 2000 Professional or Windows XP Professional.

What do I need to run a Visual WebGui application?

Faq
Visual WebGui requires IIS installed and .NET1.1 or .NET2.0 installed. You also need to install a new ".wgx" script map in the IIS with the same definitions as the ".aspx" script map but you should remove the "check file exist" checkbox as Visual WebGui uses virtual pages.

How do I reformat all Visual Basic code in all files in a project in Visual Studio?

IDE - Windows Forms FAQs
VB.NET can perform decent auto-formatting for code. Here is a macro that can call this Auto Formatting command for all the files in a project. Contributed from George Shepherd's Windows Forms FAQ

What languages in Microsoft Visual Studio .NET are supported?

Google SOAP Search API
The service has been tested with a C# client auto-generated from WSDL by the wsdl.exe tool. It should work fine from any .NET language.

Why does VB RezQ not recover the actual Visual Basic code within the subroutines?

VB RezQ for Visual Basic Source Recovery.
When VB source is compiled to Native Code the result is x86 machine code and in the process the VB compiler with its various code optimisation features erases much of the structure of the high level Basic language. It's a formidable job to try to reverse engineer this x86 code back into VB code and it's not at all clear to us that it's possible to automate the reversing process.
More Questions >>

© Copyright 2007-2012 QueryCAT
About • Webmasters • Contact