Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: Last node is not visible in TreeView because of scroll bar. Pin
daxbakken2-Mar-10 9:02
daxbakken2-Mar-10 9:02 
GeneralRe: Last node is not visible in TreeView because of scroll bar. Pin
spif20013-Jun-10 4:01
spif20013-Jun-10 4:01 
QuestionRe: An exception thrown that I can't figure out how to fix Pin
Darrall28-Jan-10 16:26
Darrall28-Jan-10 16:26 
AnswerRe: An exception thrown that I can't figure out how to fix Pin
Roger Wright28-Jan-10 17:42
professionalRoger Wright28-Jan-10 17:42 
JokeRe: An exception thrown that I can't figure out how to fix Pin
Richard MacCutchan28-Jan-10 22:38
mveRichard MacCutchan28-Jan-10 22:38 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
Roger Wright29-Jan-10 2:21
professionalRoger Wright29-Jan-10 2:21 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
Darrall29-Jan-10 4:40
Darrall29-Jan-10 4:40 
QuestionAn exception thrown that I can't figure out how to fix Pin
Darrall28-Jan-10 13:35
Darrall28-Jan-10 13:35 
This is from a tutorial from Home & Learn:

http://www.homeandlearn.co.uk/csharp/csharp_s13p3.html[^]

The problem I am having is with an uninitialized variable but I can't figure out how to do it:

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

namespace Multiple_Forms
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        Form2 secondForm = new Form2();
        public static TextBox tb = new TextBox();

        private void btnFormTwo_Click(object sender, EventArgs e)
        {
            secondForm.ShowDialog();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            
            tb = txtChangeCase;
        }
    }
}

The problem is with the last line.
I can see why...just can't figure out what to do to fix it.
Anyone know the answer?
QuestionRe: An exception thrown that I can't figure out how to fix Pin
harold aptroot28-Jan-10 13:47
harold aptroot28-Jan-10 13:47 
AnswerRe: An exception thrown that I can't figure out how to fix Pin
Darrall28-Jan-10 13:55
Darrall28-Jan-10 13:55 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
harold aptroot28-Jan-10 14:17
harold aptroot28-Jan-10 14:17 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
Luc Pattyn28-Jan-10 14:33
sitebuilderLuc Pattyn28-Jan-10 14:33 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
Luc Pattyn28-Jan-10 14:32
sitebuilderLuc Pattyn28-Jan-10 14:32 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
AspDotNetDev28-Jan-10 20:43
protectorAspDotNetDev28-Jan-10 20:43 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
Luc Pattyn28-Jan-10 22:05
sitebuilderLuc Pattyn28-Jan-10 22:05 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
DaveyM6928-Jan-10 15:14
professionalDaveyM6928-Jan-10 15:14 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
Darrall29-Jan-10 4:52
Darrall29-Jan-10 4:52 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
DaveyM6929-Jan-10 6:03
professionalDaveyM6929-Jan-10 6:03 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
Darrall29-Jan-10 7:59
Darrall29-Jan-10 7:59 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
DaveyM6929-Jan-10 13:03
professionalDaveyM6929-Jan-10 13:03 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
Darrall29-Jan-10 15:44
Darrall29-Jan-10 15:44 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
DaveyM6930-Jan-10 1:41
professionalDaveyM6930-Jan-10 1:41 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
Darrall30-Jan-10 7:12
Darrall30-Jan-10 7:12 
AnswerRe: An exception thrown that I can't figure out how to fix Pin
Dan Mos28-Jan-10 14:31
Dan Mos28-Jan-10 14:31 
QuestionIterating through MatchCollection Pin
uglyeyes28-Jan-10 12:54
uglyeyes28-Jan-10 12:54 

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.