Click here to Skip to main content
15,908,661 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to fill Combobox & ListBox in PopUp Windows Forms Pin
rzthebeginner14-Feb-07 21:04
rzthebeginner14-Feb-07 21:04 
GeneralRe: How to fill Combobox & ListBox in PopUp Windows Forms Pin
Ed.Poore15-Feb-07 0:20
Ed.Poore15-Feb-07 0:20 
GeneralRe: How to fill Combobox & ListBox in PopUp Windows Forms Pin
rzthebeginner15-Feb-07 1:10
rzthebeginner15-Feb-07 1:10 
Questiondatetime [modified] Pin
debnathrubs13-Feb-07 23:27
debnathrubs13-Feb-07 23:27 
AnswerRe: datetime [modified] Pin
dipswitch@ownage4u.nl13-Feb-07 23:35
professionaldipswitch@ownage4u.nl13-Feb-07 23:35 
AnswerRe: datetime Pin
dipswitch@ownage4u.nl14-Feb-07 0:11
professionaldipswitch@ownage4u.nl14-Feb-07 0:11 
QuestionExporting DataGrid contents to Excel Pin
Imthu13-Feb-07 23:27
Imthu13-Feb-07 23:27 
AnswerRe: Exporting DataGrid contents to Excel Pin
debnathrubs13-Feb-07 23:34
debnathrubs13-Feb-07 23:34 
at first you have to select the reference named:microsoft excel 10.0 object lib and microsofr office 10.0 object lib
then u may use this or some thing like this
==>
string Path = @fileName;
// initialize the Excel Application class
Excel.ApplicationClass app = new ApplicationClass();
// create the workbook object by opening the excel file.
Excel.Workbook workBook = app.Workbooks.Open(Path,0,true,5,pass1,pass2, true,
Excel.XlPlatform.xlWindows,"\t",false,false,0,true,1,0);
// get the active worksheet using sheet name or active sheet
Excel.Worksheet workSheet = (Excel.Worksheet)workBook.ActiveSheet;

// This row,column index should be changed as per your need.
// i.e. which cell in the excel you are interesting to read.
int row=2;
while ( ((Excel.Range)workSheet.Cells[row,1]).Value2 != null )
{
for(int a=1;a<=col;a++)
{
if(((Excel.Range)workSheet.Cells[row,a]).Value2 != null )
totSiz[row-2,a]= ((Excel.Range)workSheet.Cells[row,a]).Value2.ToString();
}
row++;
}
Questionget ipaddress Pin
Nekshan13-Feb-07 22:53
Nekshan13-Feb-07 22:53 
AnswerRe: get ipaddress Pin
virendra patel13-Feb-07 22:58
virendra patel13-Feb-07 22:58 
GeneralRe: get ipaddress Pin
Nekshan13-Feb-07 23:03
Nekshan13-Feb-07 23:03 
GeneralRe: get ipaddress Pin
virendra patel13-Feb-07 23:48
virendra patel13-Feb-07 23:48 
AnswerRe: get ipaddress Pin
Blue_Boy13-Feb-07 23:20
Blue_Boy13-Feb-07 23:20 
QuestionUser Controls [modified] Pin
mark_w_13-Feb-07 22:50
mark_w_13-Feb-07 22:50 
AnswerRe: User Controls Pin
Martin#13-Feb-07 23:22
Martin#13-Feb-07 23:22 
GeneralRe: User Controls Pin
mark_w_13-Feb-07 23:39
mark_w_13-Feb-07 23:39 
AnswerRe: User Controls Pin
Martin#14-Feb-07 0:06
Martin#14-Feb-07 0:06 
GeneralRe: User Controls Pin
mark_w_14-Feb-07 0:27
mark_w_14-Feb-07 0:27 
QuestionRun SQL Server script from C# code Pin
Sushant Duggal13-Feb-07 22:15
Sushant Duggal13-Feb-07 22:15 
AnswerRe: Run SQL Server script from C# code Pin
Blue_Boy13-Feb-07 22:33
Blue_Boy13-Feb-07 22:33 
AnswerRe: Run SQL Server script from C# code Pin
Pete O'Hanlon13-Feb-07 22:41
mvePete O'Hanlon13-Feb-07 22:41 
GeneralRe: Run SQL Server script from C# code Pin
Sushant Duggal14-Feb-07 0:28
Sushant Duggal14-Feb-07 0:28 
AnswerRe: Run SQL Server script from C# code Pin
Colin Angus Mackay13-Feb-07 23:59
Colin Angus Mackay13-Feb-07 23:59 
AnswerRe: Run SQL Server script from C# code Pin
Sushant Duggal14-Feb-07 0:30
Sushant Duggal14-Feb-07 0:30 
Questionrichtextbox question Pin
frossie13-Feb-07 22:03
frossie13-Feb-07 22:03 

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.