Hello to all.
I developed a windows service that always have connection to a Oracle database.
I control (KILL) this connection when the service is stopped.
Protected Overrides Sub OnStop()
' Add code here to perform any tear-down necessary to stop my
service. And kill all db...
Hello to all.
Houston we have a problem.... :)
I'm developing a website that have a login page.
I'm have a masterpage for all site, that have a menucontrol. (empty at beginning)
If the user is validate i call a webservice that gives me the items menu for that user, and show the welcome page...
Thanks you guys for yours posts.
I believe that found the best solution to my project.
Realy, have a function that return an instance of a response custom Class. It is the best solution for my project.
Well, in 99% of situations. :)
One more time, thanks very much for your time and posts...
I didn't use byref...
I was assign to review all webservices/webmethods from my company... and last developer define this
public function Hello(byval name as string, byref secondName as string, byref lastName as string) as boolean
I find so strange that i had to put here the question :)
i...
I didn't put all the code ;)
WindowsForm
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim helloRes As New Hello()
helloRes.Hello("XPTO")
MessageBox.Show(helloRes.Answer)
End Sub
Hello.vb
Public Class Hello...
Ok.. sorry i don't explain right.
For example;
from a Windowsforms i can use both subs from a class Hello.vb ...
Public Sub Hello(ByVal name As String, byref answer as string)
answer = String.Format("Hello {0}.", name)
End Sub
I can get the answer by byref.
Or
Public Sub...
Hello to all.
A simple question... more for curiosity.
There are any advantages of using properties vs byref?
Where i can read more for properties VS byref?
Thanks in advance.
Some how i find the answer... :rolleyes:
Dim psi As ProcessStartInfo = New ProcessStartInfo("cmd.exe")
psi.RedirectStandardOutput = True
psi.RedirectStandardInput = True
psi.UseShellExecute = False
psi.CreateNoWindow = True
Dim p As Process =...
Thanks JuggaloBrotha.
It work for ren a.txt b.txt but (my mistake :o) the command could be ren or other DOS command
I find this solution (but to much code :) ) create file, run shell, and then delete file.... has to have another way.
If File.Exists("c:\a.txt") Then
Try...
Hello to all.
This is my first post, i believe that is easily solve :)
I have a file a.txt in c:\ and want to rename it to b.txt, this should run in "batch" i have this code to do it.
If File.Exists("c:\a.txt") Then
Dim p As Process
p = New Process...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.