Read Xml More Than 2 Level?
Sep 15, 2009ihave problem when read xml file. some xml file with level more than 2 level.i want put the result in datagrid. i have no problem when read simple xml like this:
[Code]...
ihave problem when read xml file. some xml file with level more than 2 level.i want put the result in datagrid. i have no problem when read simple xml like this:
[Code]...
I bet someone already asked this but i cant seem to find it. Ok i need is a global settings that can be updated which will affect all users. I was using xml files in the program filestill now and I need to get around using this because the files can be delete or over written incorrectly. I started using the settings option and realized application level is read only and i cannot use user scope because then it wont be global settings. Is there an alternative to this.
View 5 RepliesDefine a structure named product, The structure should contain 2 variables one as a string and the other as a decimal. The decimal is used to store the price and the string is used to store the item number.
Declare a module level array that contains 5 product structure variables
Code the main forms load event procedure so that it reads the item number and prices from the itemInfo.txt file The procedure should store the item numbers and prices in the module level array. It also should add the item numbers to the list box.
When the user selects an item in the list box the items price should appear in the xPriceLabel. code the appropriate procedure.
The code I have is as follows
' Project name: Glovers Project
' Project purpose: The project displays the price of an item.
' Created/revised: <your name> on <current date>
[Code].....
Seems the problem I am having is this line is returning a value less than 0.
itemprice = (itemnumber.Substring(productIndex, newLineIndex - productIndex))
I have a link on a VB.net aspx page that needs to open a folder in a subdirectory of a web site and provide read and write permissions so that files can be copied into and read from as well as deleted. ONLY from this folder.I have this funtionality working on a dev and demo PC but they are both on my domain. Clicking the link opens Windows Explorer and I can copy /cut & Paste, etc.The public/production PC is on the LAN, but not part of the domain. I know there are ways to allow folder read/write permissions on a public server like this but I am not too sure on the safest way to do this. The upside, the only users that need to have read/write/delete access are employees. Forms Authentication, ASP Membership directs non-employees to other pages within the site. Likewise, the membership directs employees to an admin section of the site.
View 1 RepliesI am creating an Excel add-in written in VB.NET. I would like to bind KeyDown and KeyUp events to the spreadsheet to record when the user presses and releases the arrow keys while navigating the spreadsheetIdeally, these events would be built into Excel alongside the native SheetActivate and SheetSelectionChange events, for example. Alas, they are not.
View 1 RepliesIn Visual Basic 2008, there's two different ways that I know of to accomplish the same thing:The Dim on the member level:
Dim counter1 as integer = 0
Dim counter2 as integer = 180
Public Sub SampleSub1()
[code].....
I have created a simple program which uses a two tier structure of SQL Tables.At the top level, one record holds the date of the activities and linked to it using its primary key as a foreign key, three subordinate tables hold time stamped records.The issue I have been unable to solve is that before adding any of the lower level records for a given date, a newly added top level record must be saved to the database.Doing this manually is simple - but can I rely on my users to remember to do this before they start plugging in the lower level data?I thought not, so I am looking to save the top level automatically.I've failed miserably but I refuse to believe that it's not possible.
View 14 RepliesI have multiple level of For Each and in each level, i have a Linq that is the 'In' criteria as in:
[Code]....
It will go inside each for (because the value is not nothing), however, it will only loop (next) in the very inner 'For Each t In tFor'. After it is finish inner loops, the outer Fors' or Next will not execute... even thought there are more than one values in that 'In'... like 'sFor' or 'fFor'. i've noticed while debuging, while break at the for (for example 'sFor', before stepping in), i get the error message:
"Enumeration yielded no results" when i expand the result for that variable and it will not step into it. but if i do not expand the result, it will step in. It seem that some how, once an element is accessed for that 'In' collection, it breaks (meaning does not loop for the rest of the elements) the next for that collection is this a bug or am i missing something in Linq? BTW: i believe it has something to do with the SqlDataReader in the Linq. I'm working with IAsyncResult.
U0161 import a Platinum level Advisor .jar to use with this Platinum level product key.How I can get this and import it to continue my completion of setup of mysql download?From where I can download that file?To enable this application, please provide a MySQL Enterprise Product Key or your MySQL Enterprise credentials.
View 1 RepliesHi Friends,
Hope you all are doing fine.
Brief
I have been into learning VB 2010 Express for around 2 months now; I have been doing it primarily on weekends with a nice book by James Foxall. At the moment I am in Chapter 22 of 24. I have been able to make some sense on what he says but have
been able to follow him well. I plann to read the book in full twice before doing with it at the end of August 2011.
Today's Question
In one of my previous threads 'Becoming a Programmer' @Renee Culver encourages me to try to get to a level deeper. There are many other experienced programmers who have given adivce with equal 'punch' but I like to begin with @Renee Culver's
approach.
James Foxall guides me learning smoothly but I now at the 22nd chapter out of 24 feel a little uneasy. It feels like James tells I do. In Chapter 22 dealing with automation he guides me to work on Excel through VB. The reference to the Server is
set through the VB interface. I like to know how to get to a level deeper on this today. Instead of using the VB interface can't I establish reference purely through VB code? During this weekend I like to try accessing the Google start page
Combo to get search results for 'Novak Djokovic'. Could you help me?
Thank you Friends.
ss
What should go into the top level namespace? For example, if I have MyAPI.WebLogic,MyAPI.Compression, etc. If I put classes into the top level namespace, am I violating the principle of encapsulation?
View 5 RepliesI want to be able to have the Level of my Mic in my Form. I want a Progressbar that tracks how high my voice is just like in Windows Movie Maker or In Msn Messinger when you are doing a voice Chat there is a Progressbar like object that shows how loud it is...
View 17 RepliesI want to do low level disk I/O using Visual Basic 2008.Particularly, I want to do track/sector read/writes to a disk (or equivalent hardware)Also important is to discover number of tracks/sectors available.
View 1 RepliesIn my tic tac toe game I'd like there to be three different levels; easy, medium, and impossible. There are 2 forms; the difficulty level form and the main game form. When the game first starts the user will be prompted with the difficulty level form which contains 3 radio buttons; easy, medium, and impossible.
I've coded three different functions based on the difficulty level; easyMove(), medMove(), and impMove(). These have all been coded in the main game form. How could I run the respective function based on the radio button that was selected in the previous difficulty level form?
If it was on the same form it wouldn't be a problem but because it is on a different form I'm unsure of how to do this.
.exe files security level
View 13 RepliesI was just wondering why there isn't a trace level in log4Net. This level seems to be missing and I sometimes feel the need to use it, for example to output what events are being executed in an application. This feature is a part of log4J. I know I can create a custom level like is talked about here but I don't want to put time and effort in something I feel should be part of the library itself. Do you know about a log4net extension library which implements this or why this wasn't a part of the port to .net ?
View 3 RepliesSuppose I have some XmlElement; let's call it element. If I want to get all of the child nodes of that element, I can call element.ChildNodes. If I want the text of the element and all its children, then I can go with element.InnerText.
[Code]...
EDIT: Sorry I didn't specify this initially: I'm looking for a solution not involving LINQ (we're in the Dark Ages over here with .NET 2.0).
I am a beginner in VB, and I would like to make an oscilloscope display - showing voltage level of microphone input.
View 3 Repliesfor an application I need to get the microphone input level and "display" it with a ProgressBar.
View 2 RepliesHow to get usb microphone input level ?
(i am refering to peak volume input)
what import statement, source code to use ?
[URL]...From this link, it explains the formula of how getting the critical level of the products, but I can't imagine how to automatic-compute it because every month and every year there's a computation to be done
View 3 RepliesI have a Form with textboxes,combobox and a button to calculate the discount level (comboBox) discount total (textbox), tax total (textbox) and total all these up into the total order (textbox) this is working except the discount total textbox,here's my code i have so far.[code]...
View 12 RepliesI know i can collapse all regions with Ctrl+M, Ctrl+O - but that also collapses all of the subs/functions/properties etc within the #Region.if it collapsed all of the sub regions too - just not the subs etc.Is there a way to collapse all top level regions only? Maybe an extension?
View 1 Repliesi a m using VB.NEt 2003, wat i did is , i tried to bring A FORM into a GroupBox Control by using handling method.Im using in VB 6 i got the expected output.but in .NET i m getting an error msg "cannot add a top level control to a control ". when i degug it comes from the line DirectCast(frmObject, Form).Parent = Me.gropboxso u please reply me ..
View 2 RepliesI want to know how to do a keydown at form level. If I am not using Form Level the right way, this is what I mean. In my Form there is nothing.I want it so when the user presses a key that it will msgbox() something.As I said, there is nothing on the form what so ever No ComboBox, Button, nothing.
View 2 RepliesI want to hook low level Mouse hook in vb, and after that I want to save the X-axis, Y-axis and clicks(Right/Left) into database for later use or automation..But I don't understand that how should I save the X-axis, Y-axis and clicks into a MS SQL databse and later retrieve them?
View 2 RepliesI'm writing a code to use it in a keyboard spy program , and I'm using hook techneque with this , but the problem is that : if I ForExamle clicked on Shift and number 2 it doesn't give me At (@), I want it to give me at (@) ..
[Code]....
I don't know how to run my application with system level privilleges, so that it does not encounter any UNAUTHORISED ACCESS in any case and when in seen in TASK MANAGER the user shown will be SYSTEM.
View 6 RepliesI don't know how to run my application with system level privilleges, so that it does not encounter any UNAUTHORISED ACCESS in any case and when in seen in TASK MANAGER the user shown will be SYSTEM.
View 19 RepliesI have an application that plays wav and mp3 files using the Microsoft.DirectX.AudioVideoPlayback.Audio()function. It works fine, and I can easily set the volume level of the playback... within limits.
That limit is the system volume level. I can set the playback level for the mp3, but if the system volume is muted or set real low it may still play softly.
So how do I set the master volume level, including making sure it isn't muted?