Click here to Skip to main content
15,906,463 members
Home / Discussions / C#
   

C#

 
Questionglossary Pin
vimala soujanya22-Jul-07 20:29
vimala soujanya22-Jul-07 20:29 
AnswerRe: glossary Pin
Christian Graus22-Jul-07 20:52
protectorChristian Graus22-Jul-07 20:52 
Questiondropdown list problem Pin
srinivassam22-Jul-07 20:26
srinivassam22-Jul-07 20:26 
AnswerRe: dropdown list problem Pin
Christian Graus22-Jul-07 20:37
protectorChristian Graus22-Jul-07 20:37 
QuestionHow to disable right click menu/ context menu of datagrid Pin
Software_Guy_12322-Jul-07 20:03
Software_Guy_12322-Jul-07 20:03 
AnswerRe: How to disable right click menu/ context menu of datagrid Pin
Martin#22-Jul-07 20:16
Martin#22-Jul-07 20:16 
GeneralRe: How to disable right click menu/ context menu of datagrid Pin
Software_Guy_12322-Jul-07 20:45
Software_Guy_12322-Jul-07 20:45 
AnswerRe: How to disable right click menu/ context menu of datagrid Pin
Software_Guy_12330-Jul-07 19:54
Software_Guy_12330-Jul-07 19:54 
QuestionMutlithreading:-Playing Mutiple Video files CPU 100% Pin
leoiser22-Jul-07 19:51
leoiser22-Jul-07 19:51 
AnswerRe: Mutlithreading:-Playing Mutiple Video files CPU 100% Pin
Luc Pattyn23-Jul-07 2:25
sitebuilderLuc Pattyn23-Jul-07 2:25 
GeneralRe: Mutlithreading:-Playing Mutiple Video files CPU 100% Pin
leoiser23-Jul-07 2:55
leoiser23-Jul-07 2:55 
GeneralRe: Mutlithreading:-Playing Mutiple Video files CPU 100% Pin
Luc Pattyn23-Jul-07 3:10
sitebuilderLuc Pattyn23-Jul-07 3:10 
QuestionHow to start C# application along with windows. Pin
Janu_M22-Jul-07 19:22
Janu_M22-Jul-07 19:22 
AnswerRe: How to start C# application along with windows. Pin
leoiser22-Jul-07 19:56
leoiser22-Jul-07 19:56 
GeneralRe: How to start C# application along with windows. Pin
Janu_M22-Jul-07 21:56
Janu_M22-Jul-07 21:56 
AnswerRe: How to start C# application along with windows. Pin
Ravi Bhavnani22-Jul-07 20:56
professionalRavi Bhavnani22-Jul-07 20:56 
GeneralRe: How to start C# application along with windows. Pin
Janu_M22-Jul-07 21:56
Janu_M22-Jul-07 21:56 
QuestionQuick Listbox Question Pin
Michael Fritzius22-Jul-07 18:55
professionalMichael Fritzius22-Jul-07 18:55 
AnswerRe: Quick Listbox Question Pin
Christian Graus22-Jul-07 18:58
protectorChristian Graus22-Jul-07 18:58 
AnswerRe: Quick Listbox Question Pin
Paul Conrad22-Jul-07 19:28
professionalPaul Conrad22-Jul-07 19:28 
AnswerRe: Quick Listbox Question Pin
Luc Pattyn23-Jul-07 2:30
sitebuilderLuc Pattyn23-Jul-07 2:30 
AnswerRe: Quick Listbox Question Pin
Michael Fritzius23-Jul-07 5:19
professionalMichael Fritzius23-Jul-07 5:19 
Got it.

Here's how it worked out:

using System;<br />
using System.Collections.Generic;<br />
using System.ComponentModel;<br />
using System.Data;<br />
using System.Drawing;<br />
using System.Text;<br />
using System.Windows.Forms;<br />
<br />
namespace WindowsApplication1<br />
{<br />
    public partial class Form1 : Form<br />
    {<br />
        public Form1()<br />
        {<br />
            InitializeComponent();<br />
        }<br />
<br />
        private void button1_Click(object sender, EventArgs e)<br />
        {<br />
            //see if textbox1.text is found, in part or whole, against the items in the listbox<br />
            foreach(string item in listBox1.Items)<br />
            {<br />
                if (item.ToString().Contains(textBox1.Text))<br />
                {<br />
                    textBox2.Text += ("Substring found in entry " + item.ToString() + "\r\n");<br />
                }<br />
                <br />
            }<br />
        }<br />
    }<br />
}<br />


Thanks for your help guys, something about all three replies kind of "came together" for me Big Grin | :-D
QuestionVariable Declared Pin
Muhammad Nauman Yousuf22-Jul-07 18:45
Muhammad Nauman Yousuf22-Jul-07 18:45 
AnswerRe: Variable Declared Pin
Guffa22-Jul-07 18:54
Guffa22-Jul-07 18:54 
GeneralRe: Variable Declared Pin
Muhammad Nauman Yousuf22-Jul-07 20:23
Muhammad Nauman Yousuf22-Jul-07 20:23 

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.