blah blah blah is here! blah blah » Close

0
votes
1 answers

Problem In Returning Value in C# [Method]

I'm creating a game in which I've used Random number system and user number to match.. simple logic this is.. here, i've to give +5 marks to the user if he/she is right.. in txtPoint else, if wrong then -1 from the score. I've made this ...

2
votes
1 answers

access value in combobox

I've got a combobox: To populate it, we have: [code]cmbNotes.DataSource = Globals.LookUpHash[EnumList.LookupColumn.NOTES_ID.ToString()]; cmbNotes.DisplayMember = "Name"; cmbNotes.ValueMember = "Id";[/code] But w ...

0
votes
1 answers

about integers

q12
349

I have a file containing a number in its name. How do I extract that number and increment for each new file i make? For example, when i create a new file, the name of it will be [ztest_1_obs.txt]. [code] FileInfo[] fi = di.GetFiles(); ...

1
votes
1 answers

Double LinkedList trouble, object won't copy by value! Help.

Hello, I read an article on double linked lists on your previous site: http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=176 I implemented my version of the LinkedList. Even though C# has an excellent LinkedList class, ...

0
votes
2 answers

Handle null value

I'm carrying a value from one form to another, it nearly works but i'm getting the following error: System.NullReferenceException was unhandled The line of code throwing the error is: [code]NewApp.textBox1.Text = ap.ResourceIndex.ToSt ...

0
votes
1 answers

Simple problem C# (returning a xmlNode)

I had to split up my function with a if but the function does not allow returning values defined in the if() if (nodeHeader == "SUBJ:"){ XmlNode T1 = d.CreateNode(XmlNodeType.Element, "ap", "Topic", "x ...

0
votes
1 answers

My slide shows

C # I am doing my college work and done my best but now i had enuf i am stuck from last 3 days. any help would be great [code]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using Sys ...

0
votes
1 answers

find in a dataset if the next value is the same

Hi, I'm trying to find in a dataset if the next value is the same and if it is take its value in another var. ex. abc 100 200 abc 150 100 abc 100 250 abx 100 230 abv 100 200 abv 150 100 the data set is ordered... and i want t ...

0
votes
1 answers

Getting some certain value from Xml document

I have an Xml document which contain some records like this : [code]<?xml version="1.0" encoding="utf-8"?> <Root> <Koneksi> <TipeKoneksi>Prepaid Connection</TipeKoneksi> < ...

1
votes
2 answers

Get selected value from dropdown

foamy
2499

Hi all, Perl question for you: Been trying for hours and it seems I'm just missing something. I have a form with a dropdown list on it. I want to get the selected value (the "option value" part) and store it in a variable fo ...

Feedback