Click here to Skip to main content
15,890,185 members
Home / Discussions / C#
   

C#

 
GeneralRe: Assigning a value to an array property via reflection Pin
RaviRanjanKr18-Dec-10 21:27
professionalRaviRanjanKr18-Dec-10 21:27 
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 
If You Declare Any Variable in the Event or method ...
That variable will be only accessable in that event or method..
i.e. Scope of that varialble is limited to that mentod of event..
If you want to use any variable(i.e same variable ) in more than two events declare it outside of the scope of menthod.
means declare it in you class
i.e
class abs
{
declare Here variables;or assgn values
method1()
{
}
method2()
{
}

}


so that you can use same variable value in method1 and method 2


In your case databaseImage Variable(Bitmap) is declared in button2_click()
so you can only acces it within button2_click()


Declare databaseImage above all methods and use it in button1_click() as wel as Button2_click().
GeneralRe: How to use image from button1 and use it in button2 Pin
pancakeleh27-Nov-10 3:18
pancakeleh27-Nov-10 3:18 
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 

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.