VS 2008 How To Get Values From XML
Apr 29, 2012I need to get each Hour values to own labels of this XML.I got labels for each hour to clicks and conversions where those values should go.[code]
View 10 RepliesI need to get each Hour values to own labels of this XML.I got labels for each hour to clicks and conversions where those values should go.[code]
View 10 RepliesAm New To This Fourm So Forgive Me If I Have Put This In The Worng Place I HAve Been Programming For 3 Years And Need A Project I Am Doing.I Am Using Visual Basic 2008 Express EditionOutlineI Want To Be Able To Add A Dword Value To A Exsisting Location and add a value to that Dword Value
Example: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList and then Add a new Dword Value that is not there such as Administrator
[code].....
I have to make a program that reads a txt file after reading it, show it in a richtext box and in another tab make the average of the grades the input received sort it by the student id and then in the same rtb sort it by the average of their grades, and finally save it on a new text file.The text file input is something like this
12 3 10.0 6.9 7.3
19 2 6.7 9.3
10 3 4.5 9.3 4.5
[code]....
I'm doing a job in background (another thread) and do not know its progress, so I can't put values in progress bar. I'm looking for a progressbar that is just 'walking' from left to right and vice versa, until the job is finished (Microsoft uses it sometimes). Where can I find that progress bar?
View 2 Replieslike to be able to add up (and insert) all the values of a column in the datagridview but can't work out how to do it.I would like to insert a value into the ApplicantID column and read a value entered in the Grade column when a button is clicked
View 5 RepliesI want to run a simple app i am making, with an value set to it. I don't know how to call it, but for example in php it would be: text.php?value=string here
View 12 RepliesI have a DataGridView on a WinForm that has a column with a combo box in it. The combo is populated from a datasource and all works great. My problem is this: How do I get the value selected (or the text) in the combobox for a specific row when a button is pressed?
View 3 RepliesI'm having a bit of trouble getting values from my .xml file.
vb.net
<Main>
<PrimaryFields>
<City>City Name</City>
[Code].....
basically, i get "Object reference not set to an instance of an object" on the line:
example Dim x As Integer = objPlayer.Hand.Count
this line is in the object Dealer, but as far as i can tell i've declared everything correctly ...
i was told that i had to pass the values to the object or something, but not how to do it
For the past 2 days i have been trying to come up with a simple solution for this problem, but i have turned up nothing so far.[code]What i am thinking now, is if there was a way to get the "name" and "value" field with the 1 regular expression, instead of having to do the 2, would that be possible?
View 4 RepliesBeen at this for ages now experimenting different ways to do this, i have fields in my html file that look like:[code]is it possible for me to get both the numeric values 18621335 and the username graham23s in the same regular expression?
View 1 RepliesI have a subclass created called symbol with 4 sub values of integer type, left/right/above/below I am storing them all in an array, adding them one by one, each time I re generate the "symbol" and assign its values using randomize + rnd() Yet for some obscure reason everytime I put a new symbol in my array, all the older symbols all change. No where at all in my script do I manipulate their values, they just change on their own.
I'm thinking it might be some kind of benign compiler error where it is actually assigning a pointer to rnd()'s value to a int in a class in an array, as opposed to its actual value at that point in time.It's the only thing I can think of. I'l try storing them in a list instead but I'm also trying to store the array's of symbols I generate in a second array, creating a 2 dimensional array of symbols (of which I then proceed to convert into actual symbols based on the 4 random numbers generated and then combine into a string which I output to text)
Thus I'd need to make a 2 dimensional list, which is not nearly as easy as a 2 dimensional array >.< Everything else in my program works fine except for the fact that because of this error every single symbol is exactly the same.I know this is all happening because I stepped through the process watching it line by line in debug mod and monitoring the values. The values all change the moment I reassign a new Randomize, every one of them changes.
I have a Excel sheet which containes time. 2 cells are being compared in a formula. Sometimes a value is missing in one of the cells, this will cause a negative date. Negative dates in Excel is shown as ####. how i can set this value to zero? Ex: Value A is compared with value B. If value b is missing, theres a negative time.
20:05:20..space..20:31:5300:26:33
20:43:43 ..space..empty cell..####
In my program, I can place an order for glasses.To do this, I have 4 text boxes:
StockNumber: [12345]
GlassOrPlastic: [Glass/Plastic]
ScratchCoating: [Yes/No]
UVFilter: [Yes/No]
Currently, it works fine... BUT I need to type in Glass or Plastic, I need to type Yes/No and same for each thing, wondering would checkboxes be more effecient or how would I do it?How do I even use checkboxes to get the same values...(If I type in Glass it adds �30 to the price, if I type in Plastic only �15 is added...)So if a Yes answer = �20 and a No = �10 How can I do that with checkboxes or whatever...My code for when I click the order button, myAddNew just adds my information in..
Private Sub OrderButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OrderButton.Click
Dim myValue As Integer ' Base value of frames
Dim myValue1 As Integer ' Glass or plastic value
[code]....
have looped through the cookies in the cookiejar and they appear to hold the correect values i need, the thing is i need to be able to use the cookie value outside the for each i did:
Dim cookie1 As String
Dim cookie2 As String
For Each tempCookie As Cookie In GETResponse.Cookies
[code].....
how can I 'randomise' the share values? (I am wanting to have some shares to have a higher risk than others, usually the ones with the higher value.)
View 3 RepliesI want to split my string into two values, I can split it at a point such as , or ? but how can I split it so AAAA will be AA and AA or ABC will be A and BC the only thing normal is the last two will be one and the first one or two will be the other. There will always be a string or 3 or 4 letters.
View 3 RepliesReading a book, the following examples are given regarding value and reference types. This example is noted as a value example. ptY display {x = 10, y = 20}
Dim ptX As New System.Drawing.Point(10, 20)
Dim ptY As New System.Drawing.Point
ptY = ptX
ptX.X = 200
Console.WriteLine(ptY.ToString())
This example is noted as a reference example. objY displays "Hello Test".
Dim objX As New System.Text.StringBuilder("Hello World")
Dim objY As System.Text.StringBuilder
objY = objX
objX.Replace("World", "Test")
Console.WriteLine(objY.ToString())
The idea is simple enough, but I just can not tell the difference between the two. Could someone explain how the heap, the stack and the New keyword play a role in accessing directly and indirectly objects and variables?
I am Working Windows Appl .Net08.My DB is Access Db.The below image is from Access DB only.In the image the table called Contacts having one of the column called 'ContactMedium'. In this Column having values like 'Mobile' , 'email'.Now i want to saperate these values and create new columns in the same table.How can make these values as a new columns ?If i create Crosstab Query it giving error like Value type is not Aggr.
View 12 RepliesI have a groupbox with a number of textboxes. I want to loop through all the textboxes, get their value( text) and add them all together and show it in a final totaltextbox outside the groupbox. This is what i have done but it does not work. The totaltextbox values do not change. Here is my code :
Private Sub AGroupBox_VisibleChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles AGroupBox.VisibleChanged
Dim xxx As Integer
Dim tota, ax As Integer
[code]....
Right now I am trying to make a combobox from a SQL table, it looks something like the following:
id|name|
---------
1|square
2|round
3|triangle
The combobox that I want should display the "name" parts, and I have made the code to display it correctly:
Dim dr As OdbcDataReader
cmd = New OdbcCommand(query, con)
dr = cmd.ExecuteReader
[code]....
I need to check the size of textboxes in a webpage. I have already written the function which retrieves the maximum size of textbox and which writes the html codes of the webpage in a textfile. suppose i have these lines in my textfile:
<input type=text name=firstname size=30/>
<input type=text name=surname size=50/>
<input type=text name=address size=40/>
How can i change the size of all textboxes to 50 (the maximum size) in the textfile itself?
I need to get all the different values from my dgv, but no duplicates, and add them as rows to my dataset.for example if my dgv col1 have the following values:
a
b
c
[code]....
the procedure must get the values from dgv1 and add it to a dataset if the values isnt already there.My dataset should have this:
a
b
c
d
e
update values in a CSV file.I would prefer to use ADO and write a query to update the values.
View 2 RepliesI am having some major problems with byte arrays. First off the bigger array I have the more values go missing, I originally wanted to make a huge array and just dump like a 100mb chunk of memory in it but when I did that every byte in the array returned 0. So I experimented a bit and found 4kb to be the biggest chunk size to reliably not return 0.. ok I figured I'll just loop the 4kb and glue them back together later but no such luck, after being combined into the main array the bigger the number gets the more values that should be there just aren't.
Here's a code sample:
Dim retval(4095) As Byte
Dim combval(RLen) As Byte
For i = 0 To RLen - 4095 Step 4096
ReadProcessMemory(ProcAccess, i, retval, 4096, 0)
retval.CopyTo(combval, i)
Next i
WriteLine(combval(321603964))
WriteLine(ReadMemory(321603964, 1)(0))
So with the last 2 lines if I pull up some smaller number like 8 digits or so it reports back no problem but anything slightly bigger like the number i have written in there right now is just 0. After some additional research I discovered that the reason why 4kb is the max size I can reliably get is coz that's the size memory chunks are made of, "page" as they call it. Why the memory reading drops off at higher addresses alltho I suspect it has something to do with the way memory is structured and I am just not hitting the startpoint of a page anymore due to an offset or something somewhere.
I have tried to solve this myself and I know I am probably doing something really silly here what I have is two different registry values that control what is displayed in the combobox on my form RegistryKey1 has the following values:0,1 or it does not existRegistryKey2 has the following values2,3, or 4 the combobox has the following values 0,1,2,3 However here is the problem if the RegistryKey2 is 2 then it further has to be checked if RegistryKey1 is either 0,1 or does not exist
if it is 1 then the selectedindex = 0
if it is 0 or does not exist then the selectedindex = 1
if RegistryKey2 is 3 then the selectedindex = 2
[code].....
as title says. and if it has the same values, delete one of them and add (2)
so itll be like: - before the filter:
[Code]....
What is the difference between these two methods for defining property value defaults? [code] Is there a reason to use one method over the other for defining the default property values in a class?
View 24 RepliesI can't seem to see a solution to this problem, i have this function:
vb.net
Function functionDisplayLoggedInAccountData(ByVal HTML As String)
Dim testStr As String = HTML
[code].....
I want a msg box to display when the values in a textbox are between 1 and 17. Should I use Integers and if statements?And if so how?
View 8 Replies