Click here to Skip to main content
16,020,565 members
Home / Discussions / C#
   

C#

 
QuestionManage Services On Another PC/Server Pin
Kevin Marois23-Nov-11 6:59
professionalKevin Marois23-Nov-11 6:59 
AnswerRe: Manage Services On Another PC/Server Pin
Matt U.23-Nov-11 9:26
Matt U.23-Nov-11 9:26 
GeneralRe: Manage Services On Another PC/Server Pin
Kevin Marois23-Nov-11 10:16
professionalKevin Marois23-Nov-11 10:16 
QuestionC# Find and Replace Pin
stefanere2k923-Nov-11 6:02
stefanere2k923-Nov-11 6:02 
AnswerRe: C# Find and Replace Pin
BobJanova23-Nov-11 6:16
BobJanova23-Nov-11 6:16 
AnswerRe: C# Find and Replace Pin
PIEBALDconsult23-Nov-11 7:26
mvePIEBALDconsult23-Nov-11 7:26 
SuggestionRe: C# Find and Replace Pin
Nevin Janzen23-Nov-11 7:30
Nevin Janzen23-Nov-11 7:30 
AnswerRe: C# Find and Replace Pin
BillWoodruff24-Nov-11 7:24
professionalBillWoodruff24-Nov-11 7:24 
You've already gotten lots of good ideas from the previous answers re the issue of 'communication' between the two Forms.

But, I would like to point out the specific error in your code where in Form2 you attempt to use "this.Owner:" at that point, "this" will refer to Form2, but the 'Owner property will be 'null: unless you have set, somewhere in code we do not see here, the 'Owner property of Form2 to Form1.

I am curious, also, if presenting Form2 via 'ShowDialog, so it will retain focus until closed is an absolute requirement for you. If not, I would like to propose another strategy. An alternative strategy where the 'Owner' property can come in real-handy.

Aside: it always bothers me to use 'ShowDialog' because you can move the mouse to some other Form and click something, and that attempt to take Focus away from the ShowDialog'd whatever, makes it do this little "quiver." imho, use of ShowDialog should perform a 'mouse capture" until it's closed Smile | :)

best, 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."

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 
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 

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.