Click here to Skip to main content
15,896,606 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Variable Declared Pin
Christian Graus22-Jul-07 20:56
protectorChristian Graus22-Jul-07 20:56 
GeneralRe: Variable Declared Pin
Malcolm Smart22-Jul-07 21:00
Malcolm Smart22-Jul-07 21:00 
GeneralRe: Variable Declared Pin
Malcolm Smart22-Jul-07 20:58
Malcolm Smart22-Jul-07 20:58 
GeneralRe: Variable Declared Pin
Muhammad Nauman Yousuf22-Jul-07 22:00
Muhammad Nauman Yousuf22-Jul-07 22:00 
GeneralRe: Variable Declared Pin
J4amieC22-Jul-07 22:09
J4amieC22-Jul-07 22:09 
GeneralRe: Variable Declared Pin
Guffa22-Jul-07 23:14
Guffa22-Jul-07 23:14 
GeneralRe: Variable Declared Pin
Luc Pattyn23-Jul-07 2:31
sitebuilderLuc Pattyn23-Jul-07 2:31 
AnswerRe: Variable Declared Pin
Christian Graus22-Jul-07 18:57
protectorChristian Graus22-Jul-07 18:57 
AnswerRe: Variable Declared Pin
Sathesh Sakthivel22-Jul-07 19:23
Sathesh Sakthivel22-Jul-07 19:23 
QuestionData Transfer Pin
Le Hoang Viet22-Jul-07 18:34
Le Hoang Viet22-Jul-07 18:34 
AnswerRe: Data Transfer Pin
Christian Graus22-Jul-07 18:48
protectorChristian Graus22-Jul-07 18:48 
QuestionWebcam Server Pin
Le Hoang Viet22-Jul-07 15:51
Le Hoang Viet22-Jul-07 15:51 
AnswerRe: Webcam Server Pin
Christian Graus22-Jul-07 17:04
protectorChristian Graus22-Jul-07 17:04 
QuestionBinary into ASCII Pin
ScIeNcE_ErRoR22-Jul-07 15:01
ScIeNcE_ErRoR22-Jul-07 15:01 

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.