Re: C# validating event problem for a super genius



On Apr 30, 1:14 pm, "Ben Voigt [C++ MVP]" <r...@xxxxxxxxxxxxx> wrote:
Or if you want just a few controls, not the whole Form shown from the other
thread, you can call
new TextBox() or whatever control type
and read the Handle property to make sure it is created from the new thread,
then call the parent form's Controls.Add method, passing in the newly
created control.

I hadn't thought about that before. I guess I've always been using
the assumption that this would cause chaos. How would the parent form
and the child control interact seeing as they are running on separate
threads? And from a developers perspective, writing code that
accesses the child control from the parent form would be cumbersome
and slow since everything would have to be marshaled between the
threads to maintain the thread affinity requirements right?

.



Relevant Pages

  • Re: Getting Notification of Moving of Form
    ... LocationChanged event of the parent form. ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... private System.Windows.Forms.Label label1; ... Control topControl=this.Parent; ...
    (microsoft.public.dotnet.framework.windowsforms)
  • RE: combo box, select all
    ... The code you cited is only appropriate if you are setting the form's Filter ... Also it applies to the parent form not ... the subform, ... the button's Click event procedure is to requery the subform control as I ...
    (microsoft.public.access.gettingstarted)
  • Re: Enabled property ->" Object does not support..."
    ... If the control has the same name as the field, the control reference takes precedence, so the code should have worked. ... interaction between the checkbox name and the field name. ... Firstly check that the name of the subform *control* is Subform1. ... One checkbox on parent form, ...
    (microsoft.public.access.formscoding)
  • Re: Fatal error
    ... is unbound is that Access may not understand the data type you intend. ... Does it matter if the control in the parent form ... Requery in Form_Current. ...
    (microsoft.public.access.conversion)
  • Re: Calling a subform from another form
    ... P.S. - let me know if Access ever changes that subform control rule. ... What gets displayed on the subform is determined from the LinkMasterFields ... and LinkChildFields properties of the subform control on the parent form. ... want this form to open the form (frmSelectDropDown this has the subform, ...
    (microsoft.public.access.formscoding)

Loading