Library tutorials & articles
Windows Forms and Controls
Compiling the project
I’m now going to compile this on the command line. Paste the complete code
into notepad and save it in it’s own directory. Now create a .bat file in the
same directory and paste this into it:-
%windir%\Microsoft.NET\Framework\v1.0.3705\vbc.exe
/target:winexe /out:frmMain.exe
/r:system.dll,system.drawing.dll,system.windows.forms.dll frmMain.vb
O.k. what the hell is this I hear you cry. Well this is a call to the VB.Net
compiler vbc.exe using the generic %windir% to get your windows directory. Note
you should check you are using v1.0.3705 of the framework otherwise the directory
may be different and may not even work. I then specify with switches what I want.
I want it to create a Windows Executable - /target:winexe, to create an exe called
frmMain.exe - /out:frmMain.exe, I’m referencing various .dlls using the /r which
can also be /reference and finally the file to compile is frmMain.vb.
Run this batch file and it should create frmMain.exe in the same directory.
Run that exe and it should be exactly the same as what you created in VS.Net.
VS.Net Is referred to as an IDE. That is it is an aid to creating .Net applications
and as such is not an absolute requirement to do so.
O.k. I hope this helped, I hope it didn’t confuse and if it didn’t work then
let me know and I’ll see if I can sort out where you’re going wrong. I’ve been
a long time VB/Asp Developer and I have to admit I’m very excited about .Net.
It’ll take some time to get a grasp of everything you can do with it but I think
it’ll be well worth it.
Happy Programming.
Related articles
Related discussion
-
How to write a query set to excel using vb.net
by BarbaMariolino (1 replies)
-
Very Urgent regarding deleting the images from a folder
by rameshbandi (2 replies)
-
Block Accessing MSSQL 2000
by militia (0 replies)
-
.NET Developer in Ghana Required....
by sysview (0 replies)
-
Sending SMS to mobile using secure gateway from VB.net 2008 c#
by pratikasthana17 (0 replies)
Related podcasts
-
xpert to Expert: Inside Concurrent Basic (CB)
"Concurrent Basic extends Visual Basic with stylish asynchronous concurrency constructs derived from the join calculus. Our design advances earlier MSRC work on Polyphonic C#, Comega and the Joins Library. Unlike its C# based predecessors, CB adopts a simple event-like syntax familiar to VB progr...
Only 5 years after the last post eh :) Anyway because things may have changed I recommend you look at the microsoft docs on this - http://msdn.microsoft.com/en-us/library/ms229597(VS.80).aspx
It may not work with mdi children.
I use VB.Net (framework 1.0.3705) on Windows 2000, and I noticed the 'MinimumSize' property doesn't seem to have any effect on my forms (MDIChildren). Does that property really prevent users from resizing a form to a smaller size than the MinimumSize? Any other experiences?
Thank you,
This thread is for discussions of Windows Forms and Controls.