Click here to Skip to main content
15,909,530 members
Home / Discussions / C#
   

C#

 
GeneralRe: converting pixel array to image Pin
Mark Salsbery7-Aug-08 8:02
Mark Salsbery7-Aug-08 8:02 
Questionchild within child Pin
benjamin yap6-Aug-08 22:38
benjamin yap6-Aug-08 22:38 
AnswerRe: child within child Pin
DaveyM697-Aug-08 0:41
professionalDaveyM697-Aug-08 0:41 
QuestionN Products Pin
Brendan Vogt6-Aug-08 22:03
Brendan Vogt6-Aug-08 22:03 
AnswerRe: N Products Pin
Pete O'Hanlon6-Aug-08 22:42
mvePete O'Hanlon6-Aug-08 22:42 
AnswerRe: N Products Pin
Colin Angus Mackay6-Aug-08 22:50
Colin Angus Mackay6-Aug-08 22:50 
AnswerRe: N Products Pin
Alan Balkany7-Aug-08 3:54
Alan Balkany7-Aug-08 3:54 
QuestionListView Pin
benjamin yap6-Aug-08 21:52
benjamin yap6-Aug-08 21:52 
Hi, i got 2 list view on 1 form. the first list view shows the product name and the other listview show the supplier name.

the user have to first select a item from the product list view , then select another item from the supplier list view.

By now, both selected items should be highlighted.

When i press the ok button, i wan to know in product list box, what the user selected and in the supplier list box, what the user selected.

However when i select 1 item from product, then i select the other item from supplier, the product list view is being disselected


DataTable dt = new DataTable();
dt = pa.GetData();
foreach (DataRow rows in dt.Rows)
{
    ListViewItem product = new ListViewItem();
    product = listView1.Items.Add(Convert.ToString(rows["productID"]));
    product.SubItems.Add(Convert.ToString(rows["name"]));
    product.SubItems.Add(Convert.ToString(rows["modelNo"]));
}

DataTable dt1 = new DataTable();
dt1 = sa.GetData();

foreach (DataRow rows in dt1.Rows)
{
    ListViewItem supplier = new ListViewItem();
    supplier = listView2.Items.Add(Convert.ToString(rows["companyName"]));
    supplier.SubItems.Add(Convert.ToString(rows["contactName"]));
}

AnswerRe: ListView Pin
Kjetil Svendsen6-Aug-08 22:21
Kjetil Svendsen6-Aug-08 22:21 
QuestionC# Coding Pin
jonhbt6-Aug-08 21:52
jonhbt6-Aug-08 21:52 
AnswerRe: C# Coding Pin
Rob Philpott6-Aug-08 22:18
Rob Philpott6-Aug-08 22:18 
AnswerRe: C# Coding Pin
jonhbt6-Aug-08 22:33
jonhbt6-Aug-08 22:33 
GeneralRe: C# Coding Pin
Rob Philpott7-Aug-08 1:23
Rob Philpott7-Aug-08 1:23 
AnswerRe: C# Coding Pin
blackjack21506-Aug-08 22:28
blackjack21506-Aug-08 22:28 
AnswerRe: C# Coding Pin
Thomas Stockwell7-Aug-08 1:31
professionalThomas Stockwell7-Aug-08 1:31 
QuestionSSL samples and ServerCertificateValidationCallback Pin
George_George6-Aug-08 21:38
George_George6-Aug-08 21:38 
AnswerRe: SSL samples and ServerCertificateValidationCallback Pin
leppie7-Aug-08 2:57
leppie7-Aug-08 2:57 
GeneralRe: SSL samples and ServerCertificateValidationCallback Pin
George_George9-Aug-08 0:03
George_George9-Aug-08 0:03 
Questionrating of an artilcle in c# Pin
r aa j6-Aug-08 21:34
r aa j6-Aug-08 21:34 
AnswerRe: rating of an artilcle in c# Pin
Colin Angus Mackay6-Aug-08 23:07
Colin Angus Mackay6-Aug-08 23:07 
AnswerRe: rating of an artilcle in c# Pin
Manas Bhardwaj7-Aug-08 5:25
professionalManas Bhardwaj7-Aug-08 5:25 
GeneralGreat,,,,,,,,,,,,,, Pin
r aa j7-Aug-08 18:29
r aa j7-Aug-08 18:29 
Questioncheck for updates Button Pin
laziale6-Aug-08 20:33
laziale6-Aug-08 20:33 
AnswerRe: check for updates Button Pin
Programm3r6-Aug-08 20:45
Programm3r6-Aug-08 20:45 
QuestionThread Question Pin
Programm3r6-Aug-08 20:28
Programm3r6-Aug-08 20:28 

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.