blah blah blah is here! blah blah » Close

0
votes
1 answers

how do i change a listboxitem's line color in c# wpf?

i have a listbox and i want the text to all be black, except for one listboxitem line's color i want to be red. how do i change this using c#? i'm using listbox.Items.Add("something i want to be red"); is there a way to make th ...

0
votes
3 answers

TextBox updates

AK01
15

Hi! i don't know if that's a feature... but the thing is that as I click rows in a ListView the corresponding updates of TextBoxes go a bit slow. Here is that I mean: 1. I have a Listbox with 2 columns 2. I have 2 Textboxes which filled ...

0
votes
1 answers

Listbox - programatically getting to the listbox

I want to assign something to a listbox. My listbox names are lstGroup1, lstGroup2, ... I want to assign content to the last empty listbox and I am keeping track of the number used. So I want to do something like if (maxgroups==I)//wh ...

1
votes
1 answers

listBox problem

Hello everyone! I've got a little problem with listBox. It's connected to the Ms Access database. I use an 'Edit' button to edit some information from db and display in the listBox. Everything works well. But when I click 'Clear' button to ...

0
votes
1 answers

firing an event inside another event(monthcalender & listbox)

Yo, I've been having a little bit of a problem recently, I've been wondering, how you would go about firing a date selected event inside of a listbox mouse click event, on the same form... Any help? thanks

0
votes
1 answers

Dates and status issue(using monthcalender control)

yo, I've been struggling with this problem for a few weeks now, so I'm hoping you guys can help a dude out... I'm using a monthcalender control and a listbox;which displays roomnames, if it's available or not(roomstatus), it's price and ...

1
votes
3 answers

mysql problem

lios
30

Hello I have an mysql table that have 8 columns! I wand to read one of the column (tameio) and display the raws in a list box string MyConString = "SERVER=192.168.0.1;" + "DATABASE=mydata;" + "UID=user;&quo ...

0
votes
1 answers

How to...?

btab
30

Hi Is there some way to populate a listbox with the text values from a radiobuttonlist that are not checked? Let say I have 4 different text values, red, green, blue and yellow. If only red is checked then I want to populate the listbox ...

1
votes
4 answers

C# load textfile contents to ListBox

My code below is able to easily load textfile contents to a textBox, with Multiline. FileInfo myFile = new FileInfo(@"D:\output.txt"); TextReader myData = myFile.OpenText(); textBox1.Text = myData.ReadToEnd(); myData.Close ...

0
votes
0 answers

C# WinForms: Customized ListBox

in my C# Winforms, when user presses a first button, a first item is added to the ListBox. When user presses another second button, another second item is added to the ListBox. I would want all those items added to the ListBox to have strai ...

0
votes
1 answers

Problem With multiple instances of the same form.

I have a form that contains a Listbox. When I open two instances of this form (let's call them Instance1 and Instance2) as MDI children, the Datasource of both forms's listbox is [b]the same IList[/b] located in the MDI Parent form. Here ...

0
votes
1 answers

Populate listbox from database

Hi I'm doing a winform application in VS2008 with a sql database, and I have 2 questions. First question is, is it possible to populate a listbox direct from a databinding? It doesn't work for me the way I'm doing it. Code sample here: ...

0
votes
1 answers

Different color for each listbox item

Howdy, Please help me. I wonder how to give a different color for each listbox item. I've try to make a short line of code to handle that but it was failed. [code] if(this.listBox1.InvokeRequired==true){ this.listB ...

0
votes
1 answers

Asp (C#) Listbox group items

Hi, Is there a way to group items in an <asp:listbox>, the same way as with traditional html select menus. In traditional html form controls it looks like this: <select name="Example" id="Example" multi ...

1
votes
1 answers

Removing selected Item from Array and Listbox

Hi, I am creating an addressbook where you can add First Name, Last Name, Address, City, State and Zip into textboxes and have them display in a listbox on the add button click event. Now I need to be able to remove the selected Item from ...

Feedback