Click here to Skip to main content
15,918,808 members
Home / Discussions / C#
   

C#

 
GeneralRe: Ejecting a CD opened by explorer Pin
LordZoster14-Apr-09 4:20
LordZoster14-Apr-09 4:20 
GeneralRe: Ejecting a CD opened by explorer Pin
Giorgi Dalakishvili14-Apr-09 6:11
mentorGiorgi Dalakishvili14-Apr-09 6:11 
QuestionWMP how show picture.... Pin
VisualLive14-Apr-09 0:23
VisualLive14-Apr-09 0:23 
AnswerRe: WMP how show picture.... Pin
Eddy Vluggen14-Apr-09 1:22
professionalEddy Vluggen14-Apr-09 1:22 
GeneralRe: WMP how show picture.... Pin
musefan14-Apr-09 1:46
musefan14-Apr-09 1:46 
GeneralRe: WMP how show picture.... Pin
Eddy Vluggen14-Apr-09 6:19
professionalEddy Vluggen14-Apr-09 6:19 
AnswerRe: WMP how show picture.... Pin
musefan14-Apr-09 1:41
musefan14-Apr-09 1:41 
Questionhow to scroll the text from bottom to top Pin
mist_psycho14-Apr-09 0:13
mist_psycho14-Apr-09 0:13 
The following code reads data from excel and displays it in the listview...I want the data displayed in the listview to scroll / move from bottom to top automatically !!!!!..........
hw can i do it ????.....Plz help !!!

**************************************************************************************
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Excel;


namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{
string Path = @"c:\gg.xls";

Excel.ApplicationClass app = new ApplicationClass();

Excel.Workbook workBook = app.Workbooks.Open(Path, 0, true, 5, Type.Missing, Type.Missing, true, Excel.XlPlatform.xlWindows, "\t", false, false, 0, true);

Excel.Worksheet workSheet = (Excel.Worksheet)workBook.ActiveSheet;
int index = 0;

object rowIndex = 2;
object colIndex1 = 1;
object colIndex2 = 2;
try
{
while (((Excel.Range)workSheet.Cells[rowIndex, colIndex1]).Value2 != null)
{
rowIndex = 2 + index;
string firstName = ((Excel.Range)workSheet.Cells[rowIndex, colIndex1]).Value2.ToString();
string lastName = ((Excel.Range)workSheet.Cells[rowIndex, colIndex2]).Value2.ToString();
listView1.Items.Add(firstName);
//listView1.Items.Add("\n");
listView1.Items.Add(lastName);

index++;
}
}
catch (Exception ex)
{
app.Quit();

}
}
}
}



************************************************************************************
QuestionRe: how to scroll the text from bottom to top Pin
Eddy Vluggen14-Apr-09 1:19
professionalEddy Vluggen14-Apr-09 1:19 
AnswerRe: how to scroll the text from bottom to top Pin
mist_psycho14-Apr-09 4:40
mist_psycho14-Apr-09 4:40 
AnswerRe: how to scroll the text from bottom to top Pin
Eddy Vluggen14-Apr-09 6:27
professionalEddy Vluggen14-Apr-09 6:27 
GeneralRe: how to scroll the text from bottom to top Pin
mist_psycho14-Apr-09 19:39
mist_psycho14-Apr-09 19:39 
GeneralRe: how to scroll the text from bottom to top Pin
Eddy Vluggen14-Apr-09 22:39
professionalEddy Vluggen14-Apr-09 22:39 
QuestionResponse Headers Pin
grewin13-Apr-09 23:49
grewin13-Apr-09 23:49 
AnswerRe: Response Headers Pin
Eddy Vluggen14-Apr-09 1:18
professionalEddy Vluggen14-Apr-09 1:18 
GeneralRe: Response Headers Pin
grewin20-Apr-09 21:46
grewin20-Apr-09 21:46 
QuestionSaving exported Excel doc generates missing CSS file error Pin
shantanusenin13-Apr-09 23:13
shantanusenin13-Apr-09 23:13 
QuestionUm, NewLine char ain't workin' nomore. Pin
jas0n2313-Apr-09 23:07
jas0n2313-Apr-09 23:07 
AnswerRe: Um, NewLine char ain't workin' nomore. Pin
Dino Mulahusic13-Apr-09 23:11
professionalDino Mulahusic13-Apr-09 23:11 
GeneralRe: Um, NewLine char ain't workin' nomore. Pin
jas0n2313-Apr-09 23:29
jas0n2313-Apr-09 23:29 
AnswerRe: Um, NewLine char ain't workin' nomore. Pin
J4amieC13-Apr-09 23:20
J4amieC13-Apr-09 23:20 
QuestionUnusual question... Pin
jas0n2313-Apr-09 22:48
jas0n2313-Apr-09 22:48 
AnswerRe: Unusual question... Pin
SeMartens13-Apr-09 23:02
SeMartens13-Apr-09 23:02 
GeneralRe: Unusual question... Pin
jas0n2314-Apr-09 1:45
jas0n2314-Apr-09 1:45 
QuestionProblem with Convert.ToSingle Pin
pvphuc13-Apr-09 21:45
pvphuc13-Apr-09 21:45 

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.