Click here to Skip to main content
15,899,556 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hello guys, for about one year ago i made a program to log drops from a specific monster on a game called runescape.. In this program i had a search function that could search for an item and select all of the found items.. This is how it looks like:

http://gyazo.com/54442ad07abc0087ac211c4ce77afc30.gif[^]

I would like to do the same search function in another program that i'm working on for another monster.. But i can't remember how to do it, can anyone help please?
Posted
Updated 8-Mar-14 15:10pm
v2
Comments
Andreas Gieriet 8-Mar-14 19:32pm    
Don't you have the sources of that program anymore?
Andi
Gramas19 8-Mar-14 21:10pm    
Nope, i've lost it :/
ZurdoDev 8-Mar-14 20:34pm    
Help what?
Gramas19 8-Mar-14 21:10pm    
How to do that search function
ZurdoDev 8-Mar-14 21:38pm    
This does not make any sense at all. If I told you to send me code so I could have a search function, what would you do?

If it is C#, you can use ILSpy[^] to reverse-engineer your assembly.
Cheers
Andi
 
Share this answer
 
Comments
agent_kruger 9-Mar-14 5:14am    
+5 vote, a good link sir but does this thing really works ?
Gramas19 9-Mar-14 8:25am    
I tried to download it but the only thing i can do is open source codes etc but I can't find what i'm looking for :/
agent_kruger 9-Mar-14 8:27am    
sir, is it generated code through the exe.
Andreas Gieriet 9-Mar-14 9:00am    
What are you looking for? If you load the executable into the ILSpy, it will provide the C# code as much as it can guess it, assuming it was coded in C# in the first place. The code you see is most likely not compilable, but still gives you a hit how you implamented it in the first place.
If that was your code I assume it triggers some memory - if it's not your code, ask the author of the code.
Cheers
Andi
PS: Hey, you tell us you lost your source code. Having no backup of crucial data bares some cost. Be glad having at least the executable and the ILSpy. If this does not help, write it from scratch - it cannot be so difficult if you did it already once. Only the third version of a piece of software is the mature one ;-) I hope you learn now (the hard way) to backup your data rigidly.
agent_kruger 9-Mar-14 12:28pm    
sir, this is not my question but i am glad that you answered it. Thank you sir, once again.
To loop through a listbox and look for text you can do something similar to:

C#
for (Int32 i = 0; i < list.Items.Count; i++)
{
  if (list.Items[i].ToString()=="value")
   {

  }
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900