Click here to Skip to main content
16,004,977 members
Home / Discussions / C#
   

C#

 
Generaltextbox validation Pin
mahenputta20-Feb-08 1:12
mahenputta20-Feb-08 1:12 
AnswerRe: textbox validation Pin
Hamza Nadim20-Feb-08 4:23
Hamza Nadim20-Feb-08 4:23 
Questionhow to transfer files ? Pin
E_Gold20-Feb-08 1:09
E_Gold20-Feb-08 1:09 
AnswerRe: how to transfer files ? Pin
Judah Gabriel Himango20-Feb-08 5:08
sponsorJudah Gabriel Himango20-Feb-08 5:08 
AnswerRe: how to transfer files ? Pin
TheGreatAndPowerfulOz20-Feb-08 13:49
TheGreatAndPowerfulOz20-Feb-08 13:49 
QuestionRemoving rows after validation in datagridview Pin
samreengr820-Feb-08 0:53
samreengr820-Feb-08 0:53 
GeneralRe: Removing rows after validation in datagridview Pin
Xmen Real 20-Feb-08 7:56
professional Xmen Real 20-Feb-08 7:56 
GeneralSetting variable having found it in a HashTable search Pin
tobriain20-Feb-08 0:44
tobriain20-Feb-08 0:44 
I'm connecting to an external program to register for some updates to some values. The external program periodically returns updates to a method in my class. I submit a reference id when registering for all the different updates, and the external program returns the reference id I submitted and the relevant update. My problem is this. . .

When I get the update (with the reference id as a string also returned to me), if I search a hastable that has the reference id as a KEY, can I directly set the relevant variable by putting it in as the VALUE part of the Hashtable? Which other way could I do this, because if I have to hard code multiple Switch statements to implement it, I'll have lots of duplicate coding etc.

Here are some code snippets of what I'd like to implement:

Int Price = 0;
. . . .. . . . . . .. .
Hashtable TopicsForRegistering = new Hashtable();
TopicsForRegistering["PRICE"] = Product.Price;
. . . . . ... . . . .
[I have to implement this interface here. . ]
ExtProg.RegisterForUpdates("PRICE", , ,, , ,,, ,)
. . . . . . .. . . . .
[I have to implement this interface here also. .I collect an array with two columns and one row]
System.Array Updates = ExtProg.CollectUpdates();
int ReferenceID = Convert.ToInt32(Updates.GetValue(0,0);
int UpdateValue= Convert.ToInt32(Updates.GetValue(1,0);
TopicsForRegistering [ReferenceID] = UpdateValue;
[At this point, I'd like the value of the original Product.Price to have changed, not just the value in the Hashtable. . . . ]

I'd appreciate any help at all on this.

Best regards,

Tom.
GeneralTreeview problem!!! Pin
Neo Andreson19-Feb-08 23:48
Neo Andreson19-Feb-08 23:48 
GeneralRe: Treeview problem!!! Pin
DaveyM6920-Feb-08 4:03
professionalDaveyM6920-Feb-08 4:03 
GeneralRe: Treeview problem!!! Pin
LongRange.Shooter20-Feb-08 7:34
LongRange.Shooter20-Feb-08 7:34 
Questionform management Pin
Sonia Gupta19-Feb-08 23:17
Sonia Gupta19-Feb-08 23:17 
QuestionHow to increase or decrease font size of control Pin
D i x y19-Feb-08 23:14
D i x y19-Feb-08 23:14 
AnswerRe: How to increase or decrease font size of control Pin
phannon8619-Feb-08 23:28
professionalphannon8619-Feb-08 23:28 
GeneralRe: How to increase or decrease font size of control Pin
Roger Alsing20-Feb-08 4:49
Roger Alsing20-Feb-08 4:49 
AnswerRe: How to increase or decrease font size of control Pin
Hamza Nadim20-Feb-08 4:46
Hamza Nadim20-Feb-08 4:46 
Generaldownloading files from FTP Pin
pavya_Cool19-Feb-08 23:05
pavya_Cool19-Feb-08 23:05 
QuestionWhy no hand in "MessageBoxIcon.Hand"? Pin
Adeel Chaudhry19-Feb-08 21:14
Adeel Chaudhry19-Feb-08 21:14 
AnswerRe: Why no hand in "MessageBoxIcon.Hand"? Pin
phannon8619-Feb-08 22:05
professionalphannon8619-Feb-08 22:05 
GeneralRe: Why no hand in "MessageBoxIcon.Hand"? Pin
Adeel Chaudhry19-Feb-08 23:06
Adeel Chaudhry19-Feb-08 23:06 
Questioncan anybody knows how to use vwd(visual web developer)? Pin
Member 393358619-Feb-08 21:10
Member 393358619-Feb-08 21:10 
Generalhide the maximize,minimize box from mdi child form Pin
Miss Maheshwari19-Feb-08 20:37
Miss Maheshwari19-Feb-08 20:37 
AnswerRe: hide the maximize,minimize box from mdi child form Pin
Eslam Afifi19-Feb-08 21:21
Eslam Afifi19-Feb-08 21:21 
GeneralRe: hide the maximize,minimize box from mdi child form Pin
phannon8619-Feb-08 21:59
professionalphannon8619-Feb-08 21:59 
GeneralRe: hide the maximize,minimize box from mdi child form Pin
sathish s19-Feb-08 23:19
sathish s19-Feb-08 23:19 

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.