Click here to Skip to main content
16,005,222 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: creating a folder on a remote server via VB.Net Web Application Pin
Tyquaun Hunter10-Aug-06 16:00
Tyquaun Hunter10-Aug-06 16:00 
QuestionScreen refresh Pin
Kschuler10-Aug-06 8:30
Kschuler10-Aug-06 8:30 
AnswerRe: Screen refresh Pin
eagertolearn10-Aug-06 8:48
eagertolearn10-Aug-06 8:48 
QuestionWNetOpenEnum Pin
giddy_guitarist10-Aug-06 7:38
giddy_guitarist10-Aug-06 7:38 
QuestionDTS Help. Pin
alexfromto10-Aug-06 7:30
alexfromto10-Aug-06 7:30 
AnswerRe: DTS Help. Pin
Corporal Agarn11-Aug-06 9:36
professionalCorporal Agarn11-Aug-06 9:36 
QuestionPull Data from a file on all network pc's Pin
bluibri10-Aug-06 6:46
bluibri10-Aug-06 6:46 
QuestionXML save error. :-/ [modified] Pin
spelltwister10-Aug-06 6:35
spelltwister10-Aug-06 6:35 
Hey all,

I'm getting a really annoying error when trying to save my xml document. I was using the example from the MSDN and it failed to with the same error. Here's the current code:

Friend Sub upload()

'create xml doc
Dim XMLDoc As New XmlDocument

'get all controls from form1
Dim ctrl As Control = f1.GetNextControl(f1, True)

'if the control is a special type called unitbox
If TypeOf ctrl Is UnitBox Then
'set it to x
Dim x = DirectCast(ctrl, UnitBox)

'if unitbox.unittype falls in the case
Select Case x.unitType
Case "infantry"

Dim inf As XmlElement = XMLDoc.CreateElement("infantry")
inf.SetAttribute("number", x.number)
inf.SetAttribute("location", x.endcountry)
inf.SetAttribute("owner", x.owner)

'also tried xmldoc.appendchild(inf) to no avail
XMLDoc.DocumentElement.AppendChild(inf)

'more cases... all the same stuff though
End Select
End If

'gives a system error
XMLDoc.Save("testxml.xml")

End Sub

Thanks a for any help Big Grin | :-D

Mike

Gaming at the GuildofBlades.com is the only way to really experiece the level 99 Soul-Sucking Sword!

QuestionRe: XML save error. :-/ Pin
Dustin Metzgar10-Aug-06 6:55
Dustin Metzgar10-Aug-06 6:55 
Questionhow to give login information to a crystal report at run time Pin
Pradip Kishore10-Aug-06 2:58
Pradip Kishore10-Aug-06 2:58 
QuestionCapture Keys Pin
nitin_ion10-Aug-06 2:15
nitin_ion10-Aug-06 2:15 
AnswerRe: Capture Keys Pin
Duncan Edwards Jones10-Aug-06 2:22
professionalDuncan Edwards Jones10-Aug-06 2:22 
AnswerRe: Capture Keys Pin
husni.adil10-Aug-06 17:37
husni.adil10-Aug-06 17:37 
QuestionPlease help in Browser Helper Object (VB.NET) Pin
cylix200010-Aug-06 1:18
cylix200010-Aug-06 1:18 
AnswerRe: Please help in Browser Helper Object (VB.NET) Pin
Dave Kreskowiak10-Aug-06 2:44
mveDave Kreskowiak10-Aug-06 2:44 
QuestionAxWebBrowser- switch off internet explorer keyboard shortcuts Pin
Dusty00910-Aug-06 1:04
Dusty00910-Aug-06 1:04 
QuestionListview Help! Pin
The ANZAC10-Aug-06 0:21
The ANZAC10-Aug-06 0:21 
AnswerRe: Listview Help! Pin
husni.adil10-Aug-06 17:35
husni.adil10-Aug-06 17:35 
GeneralRe: Listview Help! Pin
The ANZAC10-Aug-06 19:54
The ANZAC10-Aug-06 19:54 
QuestionDesktop Background Image Pin
The ANZAC10-Aug-06 0:13
The ANZAC10-Aug-06 0:13 
QuestionAccess Pin
rifan9-Aug-06 23:29
rifan9-Aug-06 23:29 
AnswerRe: Access Pin
Dave Kreskowiak10-Aug-06 2:41
mveDave Kreskowiak10-Aug-06 2:41 
GeneralRe: Access Pin
Paul Conrad10-Aug-06 10:31
professionalPaul Conrad10-Aug-06 10:31 
QuestionError, cant update access..?? [modified] Pin
campbells9-Aug-06 22:59
campbells9-Aug-06 22:59 
AnswerRe: Error, cant update access..?? Pin
Dave Sexton10-Aug-06 0:23
Dave Sexton10-Aug-06 0:23 

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.