Click here to Skip to main content
15,910,083 members
Home / Discussions / C#
   

C#

 
GeneralRe: Accessing Form Components from another class(namespace) Pin
Luc Pattyn10-Apr-08 4:54
sitebuilderLuc Pattyn10-Apr-08 4:54 
GeneralRe: Accessing Form Components from another class(namespace) Pin
Jesse Squire10-Apr-08 3:06
Jesse Squire10-Apr-08 3:06 
QuestionDataGridView scrolling Problem Pin
Member 464310110-Apr-08 2:03
Member 464310110-Apr-08 2:03 
QuestionConverting Word .doc to image file Pin
kensai10-Apr-08 1:38
kensai10-Apr-08 1:38 
GeneralRe: Converting Word .doc to image file Pin
Christian Graus10-Apr-08 1:42
protectorChristian Graus10-Apr-08 1:42 
GeneralRe: Converting Word .doc to image file Pin
Pete O'Hanlon10-Apr-08 2:01
mvePete O'Hanlon10-Apr-08 2:01 
GeneralPassing Image data between forms Pin
hbez10-Apr-08 1:03
hbez10-Apr-08 1:03 
GeneralRe: Passing Image data between forms Pin
Pete O'Hanlon10-Apr-08 1:13
mvePete O'Hanlon10-Apr-08 1:13 
hbez wrote:
Could someone pse tell me how I may pass the following between forms:
I have a form with about 50 buttons and each opens a new form displaying a jpg picture (imported into Resources) in a PictureBox. When I close the form I'm back on the original form with the many buttons. It works pretty well but I think having just one extra form is more elegant - and less work!
I need to pass Image data like MyProject.Properties.Resources._142 (the pic is 142.jpg) to the form and then open it. Somewhere I saw that one can use Form dispForm = new dispForm(yProject.Properties.Resources._142) but the method does not accept a parameter.


You can change the constructor in the form to accept the parameter. By default it's created without one, but there's no requirement that you have to leave it that way.

Alternatively, you could expose a property on the form that accepted the appropriate value and set it before calling Show().


Deja View - the feeling that you've seen this post before.

My blog | My articles



GeneralRe: Passing Image data between forms Pin
Christian Graus10-Apr-08 1:32
protectorChristian Graus10-Apr-08 1:32 
QuestionHow to form regexp for ommiting hidden folders? Pin
Yoyosch10-Apr-08 0:54
Yoyosch10-Apr-08 0:54 
AnswerRe: How to form regexp for ommiting hidden folders? Pin
Christian Graus10-Apr-08 1:33
protectorChristian Graus10-Apr-08 1:33 
AnswerRe: How to form regexp for ommiting hidden folders? Pin
Pete O'Hanlon10-Apr-08 1:42
mvePete O'Hanlon10-Apr-08 1:42 
GeneralRe: How to form regexp for ommiting hidden folders? Pin
Christian Graus10-Apr-08 1:51
protectorChristian Graus10-Apr-08 1:51 
AnswerRe: How to form regexp for ommiting hidden folders? Pin
Yoyosch10-Apr-08 2:05
Yoyosch10-Apr-08 2:05 
GeneralRe: How to form regexp for ommiting hidden folders? Pin
Pete O'Hanlon10-Apr-08 2:51
mvePete O'Hanlon10-Apr-08 2:51 
GeneralRe: How to form regexp for ommiting hidden folders? Pin
Dave Kreskowiak10-Apr-08 3:52
mveDave Kreskowiak10-Apr-08 3:52 
GeneralRe: How to form regexp for ommiting hidden folders? Pin
mav.northwind10-Apr-08 4:49
mav.northwind10-Apr-08 4:49 
GeneralRe: How to form regexp for ommiting hidden folders? Pin
Dave Kreskowiak10-Apr-08 12:26
mveDave Kreskowiak10-Apr-08 12:26 
QuestionHow to turn off edit when exporting to excel from .rdlc Pin
Ni Na10-Apr-08 0:45
Ni Na10-Apr-08 0:45 
Generalalign Controls at Runtime Pin
greekius9-Apr-08 23:40
greekius9-Apr-08 23:40 
GeneralRe: align Controls at Runtime Pin
Christian Graus10-Apr-08 0:09
protectorChristian Graus10-Apr-08 0:09 
GeneralRe: align Controls at Runtime Pin
Ravenet10-Apr-08 0:12
Ravenet10-Apr-08 0:12 
GeneralChild windows Pin
d35tiny9-Apr-08 23:31
d35tiny9-Apr-08 23:31 
GeneralPrinting a big windows form Pin
manikandanid9-Apr-08 22:44
manikandanid9-Apr-08 22:44 
GeneralNot using webservice URL in the APP.Config Pin
N a v a n e e t h9-Apr-08 22:40
N a v a n e e t h9-Apr-08 22:40 

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.