Click here to Skip to main content
16,005,178 members
Home / Discussions / C#
   

C#

 
QuestionHow do i make a mouse's focus fall through a form to whatever is below Pin
FocusedWolf16-Feb-05 11:57
FocusedWolf16-Feb-05 11:57 
AnswerRe: How do i make a mouse's focus fall through a form to whatever is below Pin
Christian Graus16-Feb-05 13:40
protectorChristian Graus16-Feb-05 13:40 
GeneralRe: How do i make a mouse's focus fall through a form to whatever is below Pin
Luis Alonso Ramos16-Feb-05 19:09
Luis Alonso Ramos16-Feb-05 19:09 
GeneralRe: How do i make a mouse's focus fall through a form to whatever is below Pin
FocusedWolf17-Feb-05 5:29
FocusedWolf17-Feb-05 5:29 
GeneralWeb controls - newb question Pin
Esmo200016-Feb-05 10:31
Esmo200016-Feb-05 10:31 
GeneralRe: Web controls - newb question Pin
Christian Graus16-Feb-05 11:49
protectorChristian Graus16-Feb-05 11:49 
GeneralChild seeing parent Pin
Kenny O'Dell16-Feb-05 10:16
Kenny O'Dell16-Feb-05 10:16 
GeneralRe: Child seeing parent Pin
Heath Stewart16-Feb-05 10:25
protectorHeath Stewart16-Feb-05 10:25 
You need to pass an instance of Form1 to FormNew, either in the construct or as a property or even a method. It really doesn't matter:
class Form1 : Form
{
  private void ShowFormNew()
  {
    using (FormNew form = new FormNew(this))
      form.ShowDialog(this);
  }
}
 
class FormNew : Form
{
  Form1 parentForm; // Reference this where you need.
  private FormNew(Form1 form)
  {
    parentForm = form;
  }
}
Depending on how you open FormNew in your scenario and assign an owner to it, the Form.Owner property may be valid. Read the documentation for the Form class and its members in the .NET Framework SDK for more information.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: Child seeing parent Pin
Kenny O'Dell17-Feb-05 2:02
Kenny O'Dell17-Feb-05 2:02 
GeneralRe: Child seeing parent Pin
Heath Stewart17-Feb-05 6:12
protectorHeath Stewart17-Feb-05 6:12 
GeneralArray in dll Pin
Blubbo16-Feb-05 9:16
Blubbo16-Feb-05 9:16 
GeneralRe: Array in dll Pin
Heath Stewart16-Feb-05 10:18
protectorHeath Stewart16-Feb-05 10:18 
GeneralCrystal Report’s error Pin
see0716-Feb-05 8:53
see0716-Feb-05 8:53 
Generalfor-each loop Pin
lindiwe16-Feb-05 8:21
lindiwe16-Feb-05 8:21 
GeneralRe: for-each loop Pin
Judah Gabriel Himango16-Feb-05 8:40
sponsorJudah Gabriel Himango16-Feb-05 8:40 
GeneralRe: for-each loop Pin
Esmo200016-Feb-05 11:06
Esmo200016-Feb-05 11:06 
GeneralRe: for-each loop Pin
Judah Gabriel Himango16-Feb-05 11:09
sponsorJudah Gabriel Himango16-Feb-05 11:09 
GeneralRe: for-each loop Pin
Anonymous16-Feb-05 19:01
Anonymous16-Feb-05 19:01 
GeneralPalindrome question Pin
lindiwe16-Feb-05 7:00
lindiwe16-Feb-05 7:00 
GeneralRe: Palindrome question Pin
Chris Meech16-Feb-05 7:23
Chris Meech16-Feb-05 7:23 
GeneralRe: Palindrome question Pin
S. Senthil Kumar16-Feb-05 7:25
S. Senthil Kumar16-Feb-05 7:25 
GeneralRe: Palindrome question Pin
Anonymous16-Feb-05 7:29
Anonymous16-Feb-05 7:29 
Generalclient problem Pin
Member 132576616-Feb-05 6:49
Member 132576616-Feb-05 6:49 
GeneralRe: client problem Pin
Judah Gabriel Himango16-Feb-05 8:44
sponsorJudah Gabriel Himango16-Feb-05 8:44 
Generalrystal Reports - Change to rpt file not taking effect C# Pin
dazbuda16-Feb-05 6:27
dazbuda16-Feb-05 6:27 

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.