Click here to Skip to main content
15,902,492 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Sql INSERT statment Pin
Rinventive9-Jun-05 1:42
Rinventive9-Jun-05 1:42 
GeneralRe: C# Sql INSERT statment Pin
Rinventive9-Jun-05 1:53
Rinventive9-Jun-05 1:53 
GeneralRe: C# Sql INSERT statment Pin
vincent.reynolds9-Jun-05 5:50
vincent.reynolds9-Jun-05 5:50 
QuestionListView multiline items? Pin
george ivanov8-Jun-05 22:58
george ivanov8-Jun-05 22:58 
AnswerRe: ListView multiline items? Pin
Philip Price8-Jun-05 23:18
Philip Price8-Jun-05 23:18 
AnswerRe: ListView multiline items? Pin
Dave Kreskowiak9-Jun-05 6:32
mveDave Kreskowiak9-Jun-05 6:32 
GeneralPlease Help! Function on Separate Form Pin
DJdC8-Jun-05 22:56
DJdC8-Jun-05 22:56 
GeneralRe: Please Help! Function on Separate Form Pin
Carsten Zeumer8-Jun-05 23:19
Carsten Zeumer8-Jun-05 23:19 
You need to pass somehow form1 to form2.
Create a property of type From1 in Form2. Then, after creating as Form2 assign Form1 to form2.Form1. (I hope this sentence is understandable Wink | ;) )
public class Form2 : System.Windows.Forms
{
// ...
  private From1 m_Form1 = null;
  public Form1 Form1
  {
     get {return this.m_Form1;}
     set {this.m_Form1 = value;}
  }

  public void SomeFunctionUsingComponentsOnForm1()
  {
      if (this.m_Form1 == null)
         throw new ArgumentException("Form1 is not assigned.");
      this.m_Form1.components();
  }
}

public class Form1 : System.Windows.Forms
{
 // ....
 public void ShowForm2()
 {
   Form2 form2 = new Form2();
   form2.Form1 = this;
   form2.Show();
 }
}


/cadi

24 hours is not enough
GeneralCadi's Solution Pin
DJdC8-Jun-05 23:45
DJdC8-Jun-05 23:45 
GeneralRe: Cadi's Solution Pin
Carsten Zeumer9-Jun-05 0:03
Carsten Zeumer9-Jun-05 0:03 
GeneralRe: Please Help! Function on Separate Form Pin
S. Senthil Kumar8-Jun-05 23:21
S. Senthil Kumar8-Jun-05 23:21 
GeneralSenthil's Solution Pin
DJdC8-Jun-05 23:41
DJdC8-Jun-05 23:41 
GeneralRe: Please Help! Function on Separate Form Pin
Christian Graus9-Jun-05 0:52
protectorChristian Graus9-Jun-05 0:52 
GeneralGet reference to Form1. Pin
Khoa Bui9-Jun-05 3:05
Khoa Bui9-Jun-05 3:05 
GeneralRe: Get reference to Form1. Pin
Dave Kreskowiak9-Jun-05 6:29
mveDave Kreskowiak9-Jun-05 6:29 
GeneralRe: Get reference to Form1. Pin
Christian Graus9-Jun-05 11:18
protectorChristian Graus9-Jun-05 11:18 
GeneralRe: Get reference to Form1. Pin
Dave Kreskowiak9-Jun-05 14:55
mveDave Kreskowiak9-Jun-05 14:55 
GeneralRe: Get reference to Form1. Pin
Christian Graus9-Jun-05 14:58
protectorChristian Graus9-Jun-05 14:58 
GeneralRe: Get reference to Form1. Pin
Dave Kreskowiak9-Jun-05 16:13
mveDave Kreskowiak9-Jun-05 16:13 
GeneralRe: Get reference to Form1. Pin
Christian Graus9-Jun-05 16:16
protectorChristian Graus9-Jun-05 16:16 
GeneralReply to Dave's Solution Pin
DJdC9-Jun-05 15:42
DJdC9-Jun-05 15:42 
GeneralRe: Reply to Dave's Solution Pin
Dave Kreskowiak9-Jun-05 16:16
mveDave Kreskowiak9-Jun-05 16:16 
GeneralRe: Reply to Dave's Solution Pin
Christian Graus9-Jun-05 16:17
protectorChristian Graus9-Jun-05 16:17 
GeneralRe: Reply to Dave's Solution Pin
Dave Kreskowiak10-Jun-05 1:32
mveDave Kreskowiak10-Jun-05 1:32 
GeneralRe: Reply to Dave's Solution Pin
Christian Graus13-Jun-05 12:10
protectorChristian Graus13-Jun-05 12:10 

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.