Click here to Skip to main content
15,923,222 members
Home / Discussions / C#
   

C#

 
AnswerRe: Excel file format saving as XMLSpreadsheet Pin
Wolfram Steinke20-Oct-09 18:58
Wolfram Steinke20-Oct-09 18:58 
GeneralRe: Excel file format saving as XMLSpreadsheet Pin
Sridaran Sriram21-Oct-09 7:17
Sridaran Sriram21-Oct-09 7:17 
Questionreg clr type.. Pin
madeline_veda16-Nov-08 19:42
madeline_veda16-Nov-08 19:42 
AnswerRe: reg clr type.. Pin
Guffa16-Nov-08 21:15
Guffa16-Nov-08 21:15 
QuestionHow and Where to store passwords,Credit card number,Username etc on my computer? Pin
Sandeep Kalra16-Nov-08 19:24
Sandeep Kalra16-Nov-08 19:24 
AnswerRe: How and Where to store passwords,Credit card number,Username etc on my computer? Pin
Muhammad Shahid Farooq16-Nov-08 19:31
professionalMuhammad Shahid Farooq16-Nov-08 19:31 
AnswerRe: How and Where to store passwords,Credit card number,Username etc on my computer? Pin
Shyam Bharath16-Nov-08 19:33
Shyam Bharath16-Nov-08 19:33 
QuestionCreate DataGridView at Runtime??? Pin
zeeShan anSari16-Nov-08 18:48
zeeShan anSari16-Nov-08 18:48 
hi all,
I have static class where is a CompileRooms() method . Which is as :
 public static void CompileRooms()
        {

            try
            {
                frmTimetablePopup objfrmTimetablePopup = (frmTimetablePopup)Application.OpenForms["frmTimetablePopup"];
                DataGridView grd = new DataGridView();
                grd.Location = new Point(310, 200);
                grd.Size = new System.Drawing.Size(300, 200);
                DataGridViewTextBoxColumn grdCol = new DataGridViewTextBoxColumn();
                grdCol.HeaderText = "Days";
                grdCol.Name = "Col1";
                grdCol.Width = 50;
                grdCol.DefaultCellStyle.BackColor = Color.CornflowerBlue;
                grd.Columns.Add(grdCol);
                objfrmTimetablePopup.Controls.Add(grd);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
}



but an error occur :"Object reference not set to an instance of an object."
problems is here ->objfrmTimetablePopup.Controls.Add(grd); Frown | :( Frown | :( Frown | :(
AnswerRe: Create DataGridView at Runtime??? Pin
PavanPareta16-Nov-08 20:11
PavanPareta16-Nov-08 20:11 
GeneralRe: Create DataGridView at Runtime??? Pin
zeeShan anSari16-Nov-08 20:27
zeeShan anSari16-Nov-08 20:27 
GeneralRe: Create DataGridView at Runtime??? Pin
PavanPareta17-Nov-08 0:53
PavanPareta17-Nov-08 0:53 
Questioncreate a contact form Pin
nandababu16-Nov-08 18:13
nandababu16-Nov-08 18:13 
AnswerRe: create a contact form Pin
Giorgi Dalakishvili16-Nov-08 19:19
mentorGiorgi Dalakishvili16-Nov-08 19:19 
AnswerRe: create a contact form Pin
Reza Raad16-Nov-08 19:55
Reza Raad16-Nov-08 19:55 
QuestionIterate through custom collections using Reflection Pin
FyreWyrm16-Nov-08 16:45
FyreWyrm16-Nov-08 16:45 
AnswerRe: Iterate through custom collections using Reflection Pin
Gideon Engelberth16-Nov-08 17:59
Gideon Engelberth16-Nov-08 17:59 
QuestionCould not use ''; file already in use Pin
dec8216-Nov-08 16:00
dec8216-Nov-08 16:00 
AnswerRe: Could not use ''; file already in use Pin
N a v a n e e t h16-Nov-08 16:23
N a v a n e e t h16-Nov-08 16:23 
AnswerRe: Could not use ''; file already in use Pin
Paul Conrad16-Nov-08 17:45
professionalPaul Conrad16-Nov-08 17:45 
Questionxsl ? Pin
dec8216-Nov-08 15:56
dec8216-Nov-08 15:56 
AnswerRe: xsl ? Pin
Brij16-Nov-08 17:40
mentorBrij16-Nov-08 17:40 
GeneralRe: xsl ? Pin
dec8216-Nov-08 18:09
dec8216-Nov-08 18:09 
AnswerRe: xsl ? Pin
Guffa16-Nov-08 18:15
Guffa16-Nov-08 18:15 
GeneralRe: xsl ? Pin
dec8216-Nov-08 18:28
dec8216-Nov-08 18:28 
GeneralRe: xsl ? Pin
Guffa16-Nov-08 21:18
Guffa16-Nov-08 21:18 

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.