Click here to Skip to main content
15,893,564 members
Home / Discussions / C#
   

C#

 
GeneralRe: Simple question about ending loops Pin
Colin Angus Mackay27-Nov-07 14:14
Colin Angus Mackay27-Nov-07 14:14 
GeneralRe: Simple question about ending loops Pin
martin_hughes27-Nov-07 14:52
martin_hughes27-Nov-07 14:52 
QuestionAutomatically generate Release Notes from code Pin
kozu27-Nov-07 10:31
kozu27-Nov-07 10:31 
AnswerCross post. Please ignore this thread. Pin
Pete O'Hanlon27-Nov-07 10:56
mvePete O'Hanlon27-Nov-07 10:56 
JokeRe: Cross post. Please ignore this thread. Pin
Paul Conrad27-Nov-07 12:23
professionalPaul Conrad27-Nov-07 12:23 
Questionpopulating a listview from another class Pin
kenwen27-Nov-07 9:55
kenwen27-Nov-07 9:55 
AnswerRe: populating a listview from another class Pin
pmarfleet27-Nov-07 10:19
pmarfleet27-Nov-07 10:19 
GeneralRe: populating a listview from another class Pin
kenwen27-Nov-07 10:37
kenwen27-Nov-07 10:37 
Thanks Paul, Here is the bit of code that opens SQL and the recordset

using System;
using System.Data.SqlClient;
using System.Windows.Forms;

namespace LoomScheduler
{
///
/// Summary description for LoadLooms.
///

public class LoadLooms
{
private System.Data.SqlClient.SqlDataReader SqlReader;

public LoadLooms()
{

SqlConnection myConnection = new SqlConnection("user id=username; password=sa;" +
"server=Brintons_NT03; Trusted_Connection=yes; database=LoomSchedules; connection timeout=30");

SqlCommand LoadLooms = new SqlCommand("Select LoomNo, Type," +
"ShortType From tblLoomMastShortVersion Where Plant = '12'" +
"Order By ShortType, LoomNo",
myConnection );

cnSchedule.Open();

SqlReader = LoadLooms.ExecuteReader();

while(SqlReader.Read())
{
ListViewItem lvi = new ListViewItem();

lvi.Text = (SqlReader["LoomNo"].ToString());

// Here I want to add each record to a listview called lvTopLooms on a form called frmMain
//lvTopLooms Items.Add(lvi.Text);

}



}
}
}
GeneralRe: populating a listview from another class Pin
pmarfleet27-Nov-07 10:49
pmarfleet27-Nov-07 10:49 
GeneralRe: populating a listview from another class Pin
kenwen27-Nov-07 10:57
kenwen27-Nov-07 10:57 
Questionwhen i can buy visual studio 2008 ? Pin
E_Gold27-Nov-07 8:55
E_Gold27-Nov-07 8:55 
AnswerWell Pin
Ennis Ray Lynch, Jr.27-Nov-07 8:58
Ennis Ray Lynch, Jr.27-Nov-07 8:58 
GeneralRe: Well Pin
Christian Graus27-Nov-07 9:21
protectorChristian Graus27-Nov-07 9:21 
GeneralHrmm Pin
Ennis Ray Lynch, Jr.27-Nov-07 9:23
Ennis Ray Lynch, Jr.27-Nov-07 9:23 
GeneralRe: Hrmm Pin
Christian Graus27-Nov-07 9:35
protectorChristian Graus27-Nov-07 9:35 
AnswerRe: when i can buy visual studio 2008 ? Pin
martin_hughes27-Nov-07 11:57
martin_hughes27-Nov-07 11:57 
QuestionWebBrowser Control and HTTP requestes to server question Pin
Khoramdin27-Nov-07 8:26
Khoramdin27-Nov-07 8:26 
AnswerRe: WebBrowser Control and HTTP requestes to server question Pin
Dave Kreskowiak27-Nov-07 8:49
mveDave Kreskowiak27-Nov-07 8:49 
GeneralRe: WebBrowser Control and HTTP requestes to server question Pin
Khoramdin27-Nov-07 9:22
Khoramdin27-Nov-07 9:22 
AnswerRe: WebBrowser Control and HTTP requestes to server question Pin
Dave Kreskowiak27-Nov-07 9:25
mveDave Kreskowiak27-Nov-07 9:25 
GeneralRe: WebBrowser Control and HTTP requestes to server question Pin
Khoramdin27-Nov-07 9:33
Khoramdin27-Nov-07 9:33 
GeneralRe: WebBrowser Control and HTTP requestes to server question Pin
Dave Kreskowiak27-Nov-07 9:47
mveDave Kreskowiak27-Nov-07 9:47 
Questioncom port Pin
mehrdadc4827-Nov-07 7:17
mehrdadc4827-Nov-07 7:17 
AnswerRe: com port Pin
led mike27-Nov-07 7:38
led mike27-Nov-07 7:38 
AnswerRe: com port Pin
Ravi Bhavnani27-Nov-07 8:26
professionalRavi Bhavnani27-Nov-07 8:26 

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.