|
try Environment.Exit(exitCode)
topcoderjax - Remember, Google is your friend.
|
|
|
|
|
VB6 doesn't have an Environment class, so you have to call into the Win32 API to set the exit code your you VB6 app before it exists:
Private Declare Sub ExitProcess Lib "kernel32" (ByVal uExitCode As Long)
.
.
. ' Somewhere in your code, just before it exits, do this...
ExitProcess somenumber
But, as with everything, there's always a catch[^].
|
|
|
|
|
hi ,
can i do some coding work for exit code ? (Exitcode which tells the installer abt the suucessful completion of an Exe which the installer fires during its execution. Exitcode-1 shows that application hasn't cpmpleted successfully.. whereas Exitcode-0 shows successful completion of the application.. upon getting which the installer proceeds further! ) in the deployment project.
|
|
|
|
|
Assign the value to the Environment.ExitCode property.
---
single minded; short sighted; long gone;
|
|
|
|
|
Is it possible to to write the code line(Environment.ExitCode) in the deployment project(vb.net 2005).
Please provide an example.
|
|
|
|
|
Of course not. YOu need to add code to the command line application to return the code you want it to.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
Hi ,
I was trying to set the Yahoo.com as the start page using the following registry.
My Computer\HKEY_CURENT_USER\Software\Microsoft\Internet Explorer\Main\start page
It is done successfully.
Now my query is based on disabling the textbox , which is placed in the
Tools\Internet Options\Address.
I mean can i disable the address textbox by manipulating the regstry values.
|
|
|
|
|
I doubt it. You may be able to *hide* it, as that is an IE toolbar setting.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
No , I need to disable it.
Is there any way out?
|
|
|
|
|
You can only hide it as far as I know. What is a browser without browsing capabilities?
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
Hi ,
My question is based on the textbox in the internet option\Tools\address textbox not the address box in the window explorer.
is there any way out to disable that textbox which exist there in the internet option\Tools\address .
and one moe thing i wanted this thing to be done in the current user account .not in evry account.
Please Help .
|
|
|
|
|
This is normally done using Group Policy. Using GP's you can set the home page and disable the tab page it's on. No, you cannot disable JUST that textbox.
None of this requires any code to be written. Just an understanding of how Group Policy works. I suggest picking up the Windows XP or Windows Server 2003 Resource Kit.
|
|
|
|
|
Sir, U suggested picking up the Windows XP or Windows Server 2003 Resource Kit.
Is there any link for the above said resources that explaing these things to accomplish my task?????????
|
|
|
|
|
Amazon[^] will ship you the books.
Group Policy takes up LARGE portions of these two books.
|
|
|
|
|
HI!
how can i convert "200706" string to datetime format? its actually 2007 June
cheers
|
|
|
|
|
DateTime.ParseExact("200607","yyyyMM", null)
topcoderjax - Remember, Google is your friend.
|
|
|
|
|
will that be null or system.dbnull or shall i just do
Dim frmt As IFormatProvider
DateTime.ParseExact("200607","yyyyMM", frmt)
|
|
|
|
|
DBNull is a database null. What's in his code example is null, or Nothing in VB.
|
|
|
|
|
VB.NET 2005 (NET 2.0), Window Form, CheckedListBox
I want to reorder (move) single item inside one CheckedListBox, maybe even with autoscoll and draw a line where item will be inserted (like VB6).
sorry, but i search to inet over and over and read a lot of tutorials, it just killing me.
Any hint would be very great! Thanx!
|
|
|
|
|
can u please elaborate ur problem a little more?
|
|
|
|
|
I have a custom control that inherits from the menustrip, when i compile it, put it in a test form and run it, it says the compiled dll contains no reference to user control. Has anyone else had this issue and/or know how to fix it?
Posted by The ANZAC
|
|
|
|
|
Did you set a reference to the System.Windows.Forms.DLL in your control project?
|
|
|
|
|
where do you mean, set what reference where?
Posted by The ANZAC : "WWBD, What Would Buffy Do?" : "I don't know man, she's stronger than me"
|
|
|
|
|
Sorry, it says my dll doesn't contain any user control types, why is this happening? It's a menustrip dervied from the menustrip which is a user control...right? It's also throwing it as an argument exception.
Posted by The ANZAC : "WWBD, What Would Buffy Do?" : "I don't know man, she's stronger than me"
|
|
|
|