How to finalizing my vb project that when i press on programs icon twise it runs program without instaling something?
Printable View
How to finalizing my vb project that when i press on programs icon twise it runs program without instaling something?
I assume you're talking about compiling your program. You should Click File, Make Exe...
This will produce your program's executable
I cant make exe. file. I highlight problem in the picture, can you know solution?
(AboutScr. - variable not defined)
Attachment 30503
That is obviosly a problem with your syntax. You'll have to post your code here please. But as far as I can tell, your AboutScr form doesn't exist
Nope. Code has to compile BEFORE it can create an .EXE that will be trusted NOT TO CRASH when it runs on any OS. Would you click an exe that gives you a BLUESCREEN? Your code just might do that if it was compiled incorrectly.
Then you probably have a library in use that can't be legally copied...
Most likely it is because you are not starting it with full compile when in the IDE.
When you test your code in VB by default it only compiles code that will be executed as it is about to be executed.
This means that if you have a module or sub routine that is not being called when you test the program then you will not get an error but when you try to build the exe it checks everything and if there are problems it will stop the compile process and point out the troublesome code.
You must either fix the problems or remove that part from your project if it is not needed.
I find another solution. In project i add more forms but i rename. It is a blank form with name o prevouslyerror. Lets say if apears "AboutScr" error, i add form with that name and error no more. So i ask you, can this blank form somehow affect my real program?
Attachment 30519
Well it would appear that you are trying to work with code that was written by someone else and are not sure what it needs or doesn't need.
To answer your question, yes anything you change will have an effect. It the form is not used then it shoudl not be there and the code that relates to it should be removed.
Yes if the form is referred to in the code somewhere then a form by that name is required before it will compile. likewise if a control in that form is referred to somewhere then that control must exist as well as any subs or functions.
Using a dummy form with the same name will not really hurt anything if the form is not being called when you run your program but then again as I said if it is not going to be used it should not be there and the code that refers to it should be removed as it is not needed and will only serve to make your code harder to debug and maintain.
Since we know nothing about your project it is hard to say what you should do beyond what I have pointed out.
The form you mention would typically be linked to a help about option on the menu