|
I am writing a vb.net windows app that can be called from a scheduler or run
as an application.
How do I set a return or exit code for the application.
i.e 0 if successfull or 1 if not.
Thank you
|
|
|
|
|
It is possible do this by setting the App Startup to Main startup, instead of a form. You can do this in the Project Properties. But, you must add a class to the project and add a main function something like this:
Function Main() as Integer
The this main must start the first form in your program, if you have one.
You can use the help in Visual Studio or on MSDN and search for "Structure of a Visual Basic Program" to find an example.
RageInTheMachine9532
|
|
|
|
|
Thanks I read this and picked up alot.
It works though if anyone is curious the VS.IDE debugger always
returns a 0 in that window. I had to use the windows scheduler
to see the return code.
Thats again
|
|
|
|
|
how can i developpe an client/server application with vb.net, the client and the server are a winform and may give and take some informations in "datatables" "dataset"....
is it like java ?? may i use port, sokets...
thanks
|
|
|
|
|
It sounds like you're starting brand new to VB.NET, yes?
If so, you may want to review the QuickStart tutorials for WinForms. It's a good place to start.
http://samples.gotdotnet.com/quickstart/winforms/[^]
If you're looking for socket-type programming, the .NET Framework contains classes in the System.Net namespace that you can investigate. If you're looking to create a Client/Server database application, you may be fine with the ADO.NET support in the Framework. The QuickStart tutorials introduces ADO.NET.
|
|
|
|
|
I have a listview in details mode, and I want to be able to double click on it and a varaiable return with the information that I click on.
Is this possible?
Thanks in advance
Code_Gopher
|
|
|
|
|
Would something like this work? (Assuming a control on the form called ListView1)
Private Sub ListView1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) _
Handles ListView1.DoubleClick
'-- get the item selected following the double-click
Dim sel As ListViewItem
sel = ListView1.SelectedItems(0)
'-- display the selected item text
If Not (sel Is Nothing) Then
MessageBox.Show(sel.Text)
End If
End Sub
|
|
|
|
|
Hi,
I'm relatively new to vb .net. Right now I'm working on a project where actual database is in SQL Server. But the "Access Project" file has been created to connect to SQL Server database.
I can not connect to SQL Server directly, basically no one has access to SQL Server directly. So if we need to access it we have to go thru the access project that have been created.
I'm using vb .net to create an application that involves this database, but I dont know how can I connect to "access project" file to access SQL Server database using vb .net???
Is it at all possible? can u guys help me with this?
shatru2k
|
|
|
|
|
Why cant you connect directly to the SQL server?
IT Admins?
|
|
|
|
|
well, first of all I dont have rights to access a server machine where the sql server database is... so i have to go to thru this machine here they have set ms access project...
and secondly this is what a client has requested to do... I can ask him if it is not at all possible to connect to sql server via access project in vb .net
|
|
|
|
|
I'm trying to automate some tasks using VB/VBA. I would like to do something similar along the lines of the article found here:
http://www.codeproject.com/tools/VssReporter.asp
More specifically, I would like the click a 'Browse' button within a Word document that would have a VSS explorer (or something like that) window come up. I am able to access the basic ssapi.dll methods, but am lost beyond the basics. Any help would be much appreciated.
|
|
|
|
|
I have some incredibly large insurance quote forms that are too big to render properly on older computers or computers on a dial-up. What is the best way to break-up the form to make it user-friendly? (similar to Geico or Progressive) Thanks for the help
rjcarney
|
|
|
|
|
I have a little application I've been developing, and it moves a set of controls around a panel using drag and drop. If the panel is set with AutoScroll as enabled, the controls can be dragged out of the default visible area. However, when the control is dragged back slightly closer to the default area, it leaps suddenly and the scroll bars vanish (when there are no other controls, otherwise they stay, but all the other controls outside of the default area fly past as the control 'leaps' to the default area.
Has anyone heard of this / encountered this? Most oblidged!
|
|
|
|
|
How can I control the IExplorer-Bar (Tip Of The Day) from within HTML or JavaScript/VBScript?
Is there a way to active or deactive this pane per combinationkey?
Thanx a lot.
Nortorfer
|
|
|
|
|
Even though I have administrator rights under a particular domain, I'm not able to register any dlls which are necessary for running a web-site. But I am able todo the same using a local admin username & password. why is it so? how can I rectify it.
Shenthil
|
|
|
|
|
That is because the account your using has admin rights to the website, NOT the server it's running on. You need at least Power User privileges to install software on the server, this includes registering controls and .DLL's.
RageInTheMachine9532
|
|
|
|
|
Hi,
I have administrator rights. Still, I have this problem.
Shenthil
|
|
|
|
|
You posted in you first message that you're using an account that has admin rights to the domain. Is this account a member of the machine's Administrators local group?
RageInTheMachine9532
|
|
|
|
|
Thanks a Lot.
Thats where the problem was.
|
|
|
|
|
i need to know how can i check for user name and password from textboxs to from a wizard generated connection i used oledbdataadapter ..database = SQL server ..
please help .
''tHe dAy V mEt , AnGeLz wIspred PeRfAcT...!''
|
|
|
|
|
HI All,
I want to open a bmp file from visual basic. I want to start it in MsPaint by only locating the file path dynamically (without using open dialog) of bmp file,,
How would i solve this problem? when i use shell command to directly open bmp file it dosn't works..
Help me out
Thnx
bye
|
|
|
|
|
What your looking for is in this[^] post. Or, if your using VB.NET, you can use Process.Start and Process.StartInfo to do the same thing. Docs on that can be found here[^].
RageInTheMachine9532
|
|
|
|
|
I have been trying to monitor the handshake (signal) from
a printer for each page it printed but i have not been
able to do so. Can any out there help me.
|
|
|
|
|
|
Hello All:
I'm using an SDK from a device that uses the USB to communicate in the SDK theres is a function that Initializes the port but there is no function or method to free the port, I already try to contact the vendor but I am not having any responce so if someone can helpme whit this, I will very tankful.
JA
|
|
|
|