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

C#

 
QuestionHow to control Cell Value in DatagridView ... Pin
nassimnastaran23-Nov-11 5:25
nassimnastaran23-Nov-11 5:25 
AnswerRe: How to control Cell Value in DatagridView ... Pin
Dan Mos23-Nov-11 5:30
Dan Mos23-Nov-11 5:30 
GeneralRe: How to control Cell Value in DatagridView ... Pin
nassimnastaran23-Nov-11 6:31
nassimnastaran23-Nov-11 6:31 
AnswerRe: How to control Cell Value in DatagridView ...[modified] Pin
Dan Mos23-Nov-11 6:41
Dan Mos23-Nov-11 6:41 
GeneralRe: How to control Cell Value in DatagridView ... Pin
nassimnastaran23-Nov-11 6:46
nassimnastaran23-Nov-11 6:46 
AnswerRe: How to control Cell Value in DatagridView ... Pin
Dan Mos23-Nov-11 7:17
Dan Mos23-Nov-11 7:17 
GeneralRe: How to control Cell Value in DatagridView ... Pin
nassimnastaran23-Nov-11 7:40
nassimnastaran23-Nov-11 7:40 
Questiona hypothetical about use of custom Attributes in C# in WinForms Pin
BillWoodruff23-Nov-11 1:07
professionalBillWoodruff23-Nov-11 1:07 
I am familiar with the AOP program, PostSharp (for post-processing), though I don't use it, and I was wondering if the following scenario is possible at run-time:

1. you adorn certain classes and/or control definitions ... in a "main Form" ... with custom attributes.

2. at run-time, in the 'Load EventHandler of your main Form, or wherever: via reflection, I assume, the current executing "main Form" is parsed, and a new C# file is created on-the-fly which will define a new Form, into which identical copies of Classes and/or Controls ... in the main Form ... will be inserted ... based on the content of the custom attributes.

3. this new Form definition (assembly ?) will then be instantiated/created, and displayed.

4. if we assume that there is a pre-defined static class that enables access to certain Fields, etc. on the main form, will this new dynamically created form be able to access the content of that static class ?

Not looking for solutions, or code, here, just curious if this is "doable."

thanks, Bill
"... Sturgeon's revelation. It came to him that Science Fiction is indeed ninety-percent crud, but that also—Eureka!—ninety-percent of everything is crud. All things—cars, books, cheeses, hairstyles, people and pins are, to the expert and discerning eye, crud, except for the acceptable tithe which we each happen to like." early 1950's quote from Venture Sci-Fi Magazine on the origin of Sturgeon's Law, by author Theodore Sturgeon: source Oxford English Dictionary on-line "Word-of-the-Day."

AnswerRe: a hypothetical about use of custom Attributes in C# in WinForms Pin
Pete O'Hanlon23-Nov-11 1:15
mvePete O'Hanlon23-Nov-11 1:15 
AnswerRe: a hypothetical about use of custom Attributes in C# in WinForms Pin
BobJanova23-Nov-11 6:27
BobJanova23-Nov-11 6:27 
QuestionAttempted to read or write protected memory. This is often an indication that other memory is corrupt. Pin
Paulraj G22-Nov-11 21:55
Paulraj G22-Nov-11 21:55 
AnswerRe: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Pin
BobJanova22-Nov-11 22:35
BobJanova22-Nov-11 22:35 
AnswerRe: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Pin
Richard MacCutchan23-Nov-11 0:09
mveRichard MacCutchan23-Nov-11 0:09 
AnswerRe: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Pin
Bernhard Hiller23-Nov-11 2:51
Bernhard Hiller23-Nov-11 2:51 
QuestionHighlight Character Pin
phani.sv22-Nov-11 20:19
phani.sv22-Nov-11 20:19 
AnswerRe: Highlight Character Pin
V.22-Nov-11 20:56
professionalV.22-Nov-11 20:56 
GeneralRe: Highlight Character Pin
Nevin Janzen23-Nov-11 3:59
Nevin Janzen23-Nov-11 3:59 
GeneralRe: Highlight Character Pin
phani.sv23-Nov-11 17:37
phani.sv23-Nov-11 17:37 
GeneralRe: Highlight Character Pin
V.23-Nov-11 20:29
professionalV.23-Nov-11 20:29 
QuestionC# 5.0 Pin
Nevin Janzen22-Nov-11 17:35
Nevin Janzen22-Nov-11 17:35 
AnswerRe: C# 5.0 Pin
Dan Mos22-Nov-11 20:46
Dan Mos22-Nov-11 20:46 
GeneralRe: C# 5.0 Pin
Nevin Janzen23-Nov-11 3:56
Nevin Janzen23-Nov-11 3:56 
AnswerRe: C# 5.0 Pin
emardini27-Nov-11 16:49
emardini27-Nov-11 16:49 
QuestionC# and datacontext object Pin
rachel_m22-Nov-11 14:38
rachel_m22-Nov-11 14:38 
AnswerRe: C# and datacontext object Pin
Richard MacCutchan22-Nov-11 21:08
mveRichard MacCutchan22-Nov-11 21:08 

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.