Click here to Skip to main content
15,888,521 members
Home / Discussions / C#
   

C#

 
QuestionCustom TextSource creates TextRuns more than once Pin
WebMaster8-Oct-10 4:47
WebMaster8-Oct-10 4:47 
AnswerRe: Custom TextSource creates TextRuns more than once Pin
OriginalGriff8-Oct-10 5:26
mveOriginalGriff8-Oct-10 5:26 
QuestionDos Command Pin
M Riaz Bashir8-Oct-10 2:31
M Riaz Bashir8-Oct-10 2:31 
AnswerRe: Dos Command Pin
#realJSOP8-Oct-10 2:34
mve#realJSOP8-Oct-10 2:34 
GeneralRe: Dos Command Pin
M Riaz Bashir8-Oct-10 2:37
M Riaz Bashir8-Oct-10 2:37 
AnswerRe: Dos Command Pin
Pete O'Hanlon8-Oct-10 2:37
mvePete O'Hanlon8-Oct-10 2:37 
AnswerRe: Dos Command Pin
MasttsaM13-Oct-10 22:04
MasttsaM13-Oct-10 22:04 
QuestionPassing Objects From Child Form Back To User Control Pin
JasonD_S7-Oct-10 22:54
JasonD_S7-Oct-10 22:54 
I am trying to create an all singing all dancing and very dynamic user control.

On this user control is a button that when you click it opens a new form. The new form populates a list box type with a set of enumeration values and allows the user to make a few selections and then close it.

What I am wondering is how I can pass the list box's selected items back to the user control as a property or something so that the controls parent form can access it. I wanted to avoid passing it back to the root form and keep it all in the user control to keep the API for the thing simple.

I have tried most of the examples where I add properties or 'setting' functions that I then call from the parent user control. I get red lines under things in VS telling me that the property/method is not a member of the 'windows.forms class'... casting problem?

This is how I call it in the user control...

private void bn_show_a_listbox_form_Click(object sender, EventArgs e)
{
Form listbox_form = new listbox_form_Dialog(typeof(enum_for_the_list_box));
listbox_form .Show();
listbox_form .Dispose();
}

Any help would be most welcome.
AnswerRe: Passing Objects From Child Form Back To User Control Pin
OriginalGriff7-Oct-10 23:11
mveOriginalGriff7-Oct-10 23:11 
GeneralRe: Passing Objects From Child Form Back To User Control Pin
JasonD_S8-Oct-10 1:25
JasonD_S8-Oct-10 1:25 
GeneralRe: Passing Objects From Child Form Back To User Control Pin
OriginalGriff8-Oct-10 1:26
mveOriginalGriff8-Oct-10 1:26 
GeneralRe: Passing Objects From Child Form Back To User Control Pin
JasonD_S8-Oct-10 1:31
JasonD_S8-Oct-10 1:31 
GeneralRe: Passing Objects From Child Form Back To User Control Pin
OriginalGriff8-Oct-10 1:47
mveOriginalGriff8-Oct-10 1:47 
AnswerRe: Passing Objects From Child Form Back To User Control Pin
#realJSOP8-Oct-10 2:32
mve#realJSOP8-Oct-10 2:32 
QuestionToolbar editing example code please. Pin
Jung Sung Uk7-Oct-10 21:00
Jung Sung Uk7-Oct-10 21:00 
QuestionUnit Test a database update code? Pin
Shubhabrata Mohanty7-Oct-10 20:42
Shubhabrata Mohanty7-Oct-10 20:42 
AnswerRe: Unit Test a database update code? Pin
Abhinav S7-Oct-10 22:39
Abhinav S7-Oct-10 22:39 
AnswerRe: Unit Test a database update code? Pin
LLambert8-Oct-10 0:43
LLambert8-Oct-10 0:43 
AnswerRe: Unit Test a database update code? Pin
Richard A. Dalton8-Oct-10 6:00
Richard A. Dalton8-Oct-10 6:00 
QuestionFlowLayourPanel only removes visible control? [modified] Pin
Charles Cox7-Oct-10 16:06
Charles Cox7-Oct-10 16:06 
AnswerRe: FlowLayourPanel only removes visible control? Pin
Luc Pattyn7-Oct-10 16:30
sitebuilderLuc Pattyn7-Oct-10 16:30 
GeneralRe: FlowLayourPanel only removes visible control? Pin
Charles Cox7-Oct-10 16:46
Charles Cox7-Oct-10 16:46 
GeneralRe: FlowLayourPanel only removes visible control? Pin
Luc Pattyn7-Oct-10 16:53
sitebuilderLuc Pattyn7-Oct-10 16:53 
GeneralRe: FlowLayourPanel only removes visible control? Pin
Charles Cox7-Oct-10 17:03
Charles Cox7-Oct-10 17:03 
GeneralRe: FlowLayourPanel only removes visible control? Pin
Luc Pattyn7-Oct-10 17:16
sitebuilderLuc Pattyn7-Oct-10 17:16 

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.