CFanatic

Go Back   CFanatic > Programming > C# Programming

Join CFanatic Forum Now

newby hashtable question topic posted under C# Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 04-28-2008, 07:50 PM
Junior Member
 
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
DariusC is on a distinguished road
| More
newby hashtable question

Hi all
Darius here, and as you will see from this question, Im new to the world of programming.

Im trying to write a program that i plan on using for the registration of students. It is Winform based, and consists of 9 textboxes that I use to gather data from the user. Now I have created a student class, and a hashtable to tempereraly store the gathered data in.
Now my Question is, how do I go about extracting the data from the hashtable, and displaying it in either a new window, or back in the original textboxes from where it came in the first place. So in other words, if I type in the student number(key) in the textBox.1, I want the values(the data from the other 8 textboxes) to reappear in those textboxes as they were entered.
I know there is no myTable.Show method, but im sure there has to be a way to do it. Can anyone tell me how?

Thank you all, for any and all help.
Darius
Reply With Quote
  #2  
Old 07-27-2008, 02:36 AM
Senior Member
 
Join Date: Jul 2008
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
xpi0t0s is on a distinguished road
| More
Re: newby hashtable question

How have you created the hash table? Is it a file that contains the data, or an array of structures within the program?
Reply With Quote
  #3  
Old 09-08-2008, 02:43 AM
Junior Member
 
Join Date: Jul 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
praspam is on a distinguished road
| More
Thumbs up Re: newby hashtable question

public static bool TChekStudentIdExists(string strstudentID)
{
IDictionaryEnumerator en = objstudent.GetEnumerator();

while (en.MoveNext())
{
string str = en.Key.ToString();
if (str == strstudentID)
return true;

}
if (objstudent.Count == 0)
return true;
else
return false;
}
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
question about so files ftom2 C++ Programming 1 08-18-2008 02:28 AM
View vs. Control - question JackBeans MFC Programming 1 07-15-2007 10:30 PM
C# debatable question MartijnMulder C# Programming 2 01-06-2007 12:42 AM
Beginners Question on 'return' MartijnMulder C# Programming 1 12-08-2006 02:33 PM
sorting question John C++ Programming 0 09-30-2006 04:57 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 03:48 PM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board