Click here to Skip to main content
15,920,632 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Simple Question on a form like msgbox Pin
RichardBerry10-Feb-06 0:38
RichardBerry10-Feb-06 0:38 
AnswerRe: Simple Question on a form like msgbox Pin
Dave Kreskowiak10-Feb-06 4:23
mveDave Kreskowiak10-Feb-06 4:23 
GeneralRe: Simple Question on a form like msgbox Pin
cylix200012-Feb-06 16:11
cylix200012-Feb-06 16:11 
GeneralRe: Simple Question on a form like msgbox Pin
Dave Kreskowiak13-Feb-06 16:41
mveDave Kreskowiak13-Feb-06 16:41 
GeneralRe: Simple Question on a form like msgbox Pin
cylix200013-Feb-06 19:42
cylix200013-Feb-06 19:42 
GeneralRe: Simple Question on a form like msgbox Pin
Dave Kreskowiak14-Feb-06 2:22
mveDave Kreskowiak14-Feb-06 2:22 
General[Solved by Dave] Pin
cylix200013-Feb-06 19:54
cylix200013-Feb-06 19:54 
QuestionWindows started and stopped immediately? Pin
chiyinhk9-Feb-06 19:53
chiyinhk9-Feb-06 19:53 
Hi I am making a windows service that monitors a folder and transfer the files created in that folder to another folder on the network.

I put the following in the OnStart routine:

xtr = New Xml.XmlTextReader("e:\setup.xml")
While xtr.Read
If xtr.NodeType = Xml.XmlNodeType.Element Then
If xtr.Name = "Target" Then

xtr.Read()
s_path = xtr.Value
ElseIf xtr.Name = "Dest" Then
xtr.Read()
d_path = xtr.Value
End If
End If
End While

I put the source folder to be monitored and the destination folder to copy to in the XML file, and set the value of s_path and d_path accordingly.

The problem is that when I start the service it just stop immediately. But if i set the value of s_path and d_path to something else before the first line of the above code, and set the values that correspond to the xml file when the above code run, the windows service start sucessfully.

The XML is created correctly cuz I have tested it with a VB Windows application with the same code as above. Does anyone know why that happen?
AnswerRe: Windows started and stopped immediately? Pin
Dave Kreskowiak10-Feb-06 4:15
mveDave Kreskowiak10-Feb-06 4:15 
QuestionVS2005, ReportViewer Pin
ingwaar9-Feb-06 19:13
ingwaar9-Feb-06 19:13 
QuestionHow To Copy Files To a Network computer in vb.net Pin
Prasant_Panda9-Feb-06 18:17
Prasant_Panda9-Feb-06 18:17 
AnswerRe: How To Copy Files To a Network computer in vb.net Pin
Dave Kreskowiak10-Feb-06 4:11
mveDave Kreskowiak10-Feb-06 4:11 
GeneralRe: How To Copy Files To a Network computer in vb.net Pin
Prasant_Panda10-Feb-06 20:54
Prasant_Panda10-Feb-06 20:54 
GeneralRe: How To Copy Files To a Network computer in vb.net Pin
Dave Kreskowiak11-Feb-06 3:28
mveDave Kreskowiak11-Feb-06 3:28 
GeneralRe: How To Copy Files To a Network computer in vb.net Pin
Prasant_Panda11-Feb-06 4:38
Prasant_Panda11-Feb-06 4:38 
GeneralRe: How To Copy Files To a Network computer in vb.net Pin
Dave Kreskowiak11-Feb-06 15:22
mveDave Kreskowiak11-Feb-06 15:22 
GeneralRe: How To Copy Files To a Network computer in vb.net Pin
Prasant_Panda12-Feb-06 17:17
Prasant_Panda12-Feb-06 17:17 
GeneralRe: How To Copy Files To a Network computer in vb.net Pin
Dave Kreskowiak13-Feb-06 16:43
mveDave Kreskowiak13-Feb-06 16:43 
QuestionMs Access Data Updation using VB.Net Pin
mayhem_rules9-Feb-06 18:06
mayhem_rules9-Feb-06 18:06 
AnswerRe: Ms Access Data Updation using VB.Net Pin
Dave Kreskowiak10-Feb-06 4:04
mveDave Kreskowiak10-Feb-06 4:04 
GeneralRe: Ms Access Data Updation using VB.Net Pin
mayhem_rules12-Feb-06 20:41
mayhem_rules12-Feb-06 20:41 
GeneralRe: Ms Access Data Updation using VB.Net Pin
Dave Kreskowiak13-Feb-06 16:54
mveDave Kreskowiak13-Feb-06 16:54 
QuestionQuestion on Word automation in VB.NET Pin
cylix20009-Feb-06 17:48
cylix20009-Feb-06 17:48 
QuestionDeveloping Office Application in dot net Pin
rahul_7608759-Feb-06 16:33
rahul_7608759-Feb-06 16:33 
AnswerRe: Developing Office Application in dot net Pin
Steve Pullan10-Feb-06 12:17
Steve Pullan10-Feb-06 12:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.