Click here to Skip to main content
15,889,931 members
Home / Discussions / C#
   

C#

 
Questiontabcontrol with contextMenu Pin
Erdinc2727-Nov-10 1:12
Erdinc2727-Nov-10 1:12 
AnswerRe: tabcontrol with contextMenu Pin
Erdinc2727-Nov-10 2:36
Erdinc2727-Nov-10 2:36 
GeneralRe: tabcontrol with contextMenu Pin
OriginalGriff27-Nov-10 4:24
mveOriginalGriff27-Nov-10 4:24 
Questiontransfer arithmetical operation to executable ascii code Pin
igalep13227-Nov-10 0:16
igalep13227-Nov-10 0:16 
AnswerRe: transfer arithmetical operation to executable ascii code Pin
JF201527-Nov-10 0:21
JF201527-Nov-10 0:21 
QuestionHow to use image from button1 and use it in button2 Pin
pancakeleh27-Nov-10 0:01
pancakeleh27-Nov-10 0:01 
AnswerRe: How to use image from button1 and use it in button2 Pin
nitin bhoyate27-Nov-10 1:51
nitin bhoyate27-Nov-10 1:51 
GeneralRe: How to use image from button1 and use it in button2 Pin
pancakeleh27-Nov-10 3:18
pancakeleh27-Nov-10 3:18 
private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                OpenFileDialog open = new OpenFileDialog();
                open.Filter = "Image Files(*.jpg; *.jpeg; *.gif; *.bmp)|*.jpg; *.jpeg; *.gif; *.bmp";
                if (open.ShowDialog() == DialogResult.OK)
                {
                    pictureBox1.Image = new Bitmap(open.FileName);
                    textBox1.Text = open.FileName.ToString();

                    Bitmap finalImage = new Bitmap(pictureBox1.Image, 320, 240);
                    pictureBox1.Image = finalImage;
                }

            }
            catch (Exception)
            {
                throw new ApplicationException("Failed loading image");
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            try
            {
                OpenFileDialog open = new OpenFileDialog();
                open.Filter = "Image Files(*.jpg; *.jpeg; *.gif; *.bmp)|*.jpg; *.jpeg; *.gif; *.bmp";
                if (open.ShowDialog() == DialogResult.OK)
                {
                    pictureBox2.Image = new Bitmap(open.FileName);
                    textBox2.Text = open.FileName.ToString();

                    Bitmap DatabaseImage = new Bitmap(pictureBox2.Image, 320, 240);
                    pictureBox2.Image = DatabaseImage;
                }

            }
            catch (Exception)
            {
                throw new ApplicationException("Failed loading image");
            }
        }

        private void button3_Click(object sender, EventArgs e)
        {
}

I want to make use of finalImage and DatabaseImage in button3_Click event how shld i go abt it? i tried declaring above all emthod but it dont seems to be working.
}
GeneralRe: How to use image from button1 and use it in button2 Pin
Dave Kreskowiak27-Nov-10 3:27
mveDave Kreskowiak27-Nov-10 3:27 
GeneralRe: How to use image from button1 and use it in button2 Pin
pancakeleh27-Nov-10 4:22
pancakeleh27-Nov-10 4:22 
GeneralRe: How to use image from button1 and use it in button2 Pin
nitin bhoyate28-Nov-10 17:39
nitin bhoyate28-Nov-10 17:39 
Questioncontrol webcam for another application Pin
Zvi Balas26-Nov-10 20:45
Zvi Balas26-Nov-10 20:45 
AnswerRe: control webcam for another application Pin
Dave Kreskowiak27-Nov-10 3:25
mveDave Kreskowiak27-Nov-10 3:25 
AnswerRe: control webcam for another application Pin
Not Active27-Nov-10 3:48
mentorNot Active27-Nov-10 3:48 
AnswerRe: control webcam for another application Pin
RaviRanjanKr28-Nov-10 5:12
professionalRaviRanjanKr28-Nov-10 5:12 
GeneralRe: control webcam for another application Pin
Zvi Balas28-Nov-10 9:11
Zvi Balas28-Nov-10 9:11 
QuestionExcel Rows and Columns Pin
Varun Sareen26-Nov-10 17:50
Varun Sareen26-Nov-10 17:50 
AnswerRe: Excel Rows and Columns Pin
Abhinav S26-Nov-10 17:58
Abhinav S26-Nov-10 17:58 
GeneralRe: Excel Rows and Columns Pin
Varun Sareen26-Nov-10 18:05
Varun Sareen26-Nov-10 18:05 
GeneralRe: Excel Rows and Columns Pin
Luc Pattyn26-Nov-10 18:28
sitebuilderLuc Pattyn26-Nov-10 18:28 
GeneralRe: Excel Rows and Columns Pin
Abhinav S26-Nov-10 19:10
Abhinav S26-Nov-10 19:10 
AnswerRe: Excel Rows and Columns Pin
Luc Pattyn26-Nov-10 18:05
sitebuilderLuc Pattyn26-Nov-10 18:05 
AnswerRe: Excel Rows and Columns PinPopular
RaviRanjanKr26-Nov-10 18:31
professionalRaviRanjanKr26-Nov-10 18:31 
GeneralRe: Excel Rows and Columns Pin
Varun Sareen27-Nov-10 2:38
Varun Sareen27-Nov-10 2:38 
GeneralRe: Excel Rows and Columns Pin
RaviRanjanKr27-Nov-10 3:52
professionalRaviRanjanKr27-Nov-10 3:52 

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.