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

C#

 
QuestionHow can I create a var that doesn't get destroyed after exiting the method? Pin
xkx3220-Jul-06 20:03
xkx3220-Jul-06 20:03 
QuestionRe: How can I create a var that doesn't get destroyed after exiting the method? Pin
Vega0220-Jul-06 20:19
Vega0220-Jul-06 20:19 
AnswerRe: How can I create a var that doesn't get destroyed after exiting the method? Pin
xkx3220-Jul-06 21:29
xkx3220-Jul-06 21:29 
AnswerRe: How can I create a var that doesn't get destroyed after exiting the method? [modified] Pin
Martin#20-Jul-06 21:36
Martin#20-Jul-06 21:36 
AnswerRe: How can I create a var that doesn't get destroyed after exiting the method? Pin
Martin#20-Jul-06 20:33
Martin#20-Jul-06 20:33 
AnswerRe: How can I create a var that doesn't get destroyed after exiting the method? Pin
Nader Elshehabi20-Jul-06 22:33
Nader Elshehabi20-Jul-06 22:33 
QuestionC# to Excel Pin
aaraaayen20-Jul-06 19:56
aaraaayen20-Jul-06 19:56 
AnswerRe: C# to Excel Pin
WillemM20-Jul-06 20:58
WillemM20-Jul-06 20:58 
AnswerRe: C# to Excel Pin
Nader Elshehabi20-Jul-06 22:46
Nader Elshehabi20-Jul-06 22:46 
GeneralRe: C# to Excel Pin
aaraaayen20-Jul-06 23:49
aaraaayen20-Jul-06 23:49 
GeneralRe: C# to Excel Pin
Nader Elshehabi21-Jul-06 3:26
Nader Elshehabi21-Jul-06 3:26 
AnswerRe: C# to Excel Pin
stancrm21-Jul-06 1:38
stancrm21-Jul-06 1:38 
QuestionIn C# ,How can i use a C++ DLL with a class being defined in head file. Pin
dfbx20-Jul-06 17:43
dfbx20-Jul-06 17:43 
AnswerRe: In C# ,How can i use a C++ DLL with a class being defined in head file. Pin
Andrei Ungureanu20-Jul-06 19:47
Andrei Ungureanu20-Jul-06 19:47 
GeneralRe: In C# ,How can i use a C++ DLL with a class being defined in head file. Pin
dfbx20-Jul-06 20:37
dfbx20-Jul-06 20:37 
AnswerRe: In C# ,How can i use a C++ DLL with a class being defined in head file. Pin
Andrei Ungureanu20-Jul-06 22:35
Andrei Ungureanu20-Jul-06 22:35 
GeneralRe: In C# ,How can i use a C++ DLL with a class being defined in head file. Pin
dfbx23-Jul-06 16:21
dfbx23-Jul-06 16:21 
QuestionHow to support right-click *on* WinForms context menu items? Pin
cpeterso20-Jul-06 15:07
cpeterso20-Jul-06 15:07 
AnswerRe: How to support right-click *on* WinForms context menu items? Pin
Judah Gabriel Himango20-Jul-06 16:12
sponsorJudah Gabriel Himango20-Jul-06 16:12 
AnswerRe: How to support right-click *on* WinForms context menu items? Pin
Nader Elshehabi20-Jul-06 22:40
Nader Elshehabi20-Jul-06 22:40 
QuestionMy ASP.NET 2.0 Web Pages do not run inside IIS Pin
tedhill1320-Jul-06 14:17
tedhill1320-Jul-06 14:17 
AnswerRe: My ASP.NET 2.0 Web Pages do not run inside IIS Pin
Andrei Ungureanu20-Jul-06 19:52
Andrei Ungureanu20-Jul-06 19:52 
GeneralRe: My ASP.NET 2.0 Web Pages do not run inside IIS Pin
tedhill1323-Jul-06 9:23
tedhill1323-Jul-06 9:23 
QuestionPictureBox in mdi form Pin
Saamir20-Jul-06 11:32
Saamir20-Jul-06 11:32 
AnswerRe: PictureBox in mdi form Pin
Ed.Poore20-Jul-06 12:50
Ed.Poore20-Jul-06 12:50 
If you want the picturebox always centred then (if you're only displaying a picture) then you can set the PictureDisplay (or some property along the same lines) to Centre which means the picture will always be displayed in the centre, then dock the PictureBox to Fill and voila.

Other options include handling / overriding the Resize event and using your own code to reposition the picture box as you want.



The Welsh will always support two teams: The Welsh, and anyone playing England Smile | :)

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.