Click here to Skip to main content
15,925,309 members
Home / Discussions / C#
   

C#

 
AnswerRe: xml? Pin
Giorgi Dalakishvili25-Dec-08 19:45
mentorGiorgi Dalakishvili25-Dec-08 19:45 
AnswerRe: xml? Pin
Guffa26-Dec-08 8:25
Guffa26-Dec-08 8:25 
AnswerRe: xml? Pin
Aman Bhullar27-Dec-08 22:43
Aman Bhullar27-Dec-08 22:43 
QuestionC# Web Service Problem. Pin
jolynlim198125-Dec-08 19:14
jolynlim198125-Dec-08 19:14 
AnswerRe: C# Web Service Problem. Pin
leppie26-Dec-08 7:50
leppie26-Dec-08 7:50 
GeneralRe: C# Web Service Problem. Pin
jolynlim198128-Dec-08 13:47
jolynlim198128-Dec-08 13:47 
QuestionXML XSD for a class issue Pin
George_George25-Dec-08 19:04
George_George25-Dec-08 19:04 
AnswerRe: XML XSD for a class issue Pin
leppie26-Dec-08 7:51
leppie26-Dec-08 7:51 
GeneralRe: XML XSD for a class issue Pin
George_George27-Dec-08 2:06
George_George27-Dec-08 2:06 
QuestionHow to imitate microsoft ribbon QAT / Orb on windows forms Pin
James_Zhang25-Dec-08 18:37
James_Zhang25-Dec-08 18:37 
QuestionSuggestions on how to create an efficient Queue generic with random access option Pin
Zerox MXI25-Dec-08 17:33
Zerox MXI25-Dec-08 17:33 
AnswerRe: Suggestions on how to create an efficient Queue generic with random access option Pin
N a v a n e e t h25-Dec-08 17:49
N a v a n e e t h25-Dec-08 17:49 
GeneralRe: Suggestions on how to create an efficient Queue generic with random access option Pin
Zerox MXI25-Dec-08 18:05
Zerox MXI25-Dec-08 18:05 
Question[Message Deleted] Pin
James_Zhang25-Dec-08 16:47
James_Zhang25-Dec-08 16:47 
AnswerRe: control on non client area of form Pin
Not Active25-Dec-08 17:06
mentorNot Active25-Dec-08 17:06 
AnswerRe: control on non client area of form Pin
Christian Graus25-Dec-08 17:08
protectorChristian Graus25-Dec-08 17:08 
GeneralRe: control on non client area of form Pin
James_Zhang25-Dec-08 18:02
James_Zhang25-Dec-08 18:02 
Question[Visual Studio | C#] richtextbox problem Pin
lucas moretti25-Dec-08 14:31
lucas moretti25-Dec-08 14:31 
GeneralRe: [Visual Studio | C#] richtextbox problem Pin
Luc Pattyn25-Dec-08 14:47
sitebuilderLuc Pattyn25-Dec-08 14:47 
GeneralRe: [Visual Studio | C#] richtextbox problem Pin
lucas moretti25-Dec-08 14:59
lucas moretti25-Dec-08 14:59 
GeneralRe: [Visual Studio | C#] richtextbox problem Pin
Christian Graus25-Dec-08 15:24
protectorChristian Graus25-Dec-08 15:24 
GeneralRe: [Visual Studio | C#] richtextbox problem Pin
lucas moretti25-Dec-08 15:35
lucas moretti25-Dec-08 15:35 
GeneralRe: [Visual Studio | C#] richtextbox problem Pin
Luc Pattyn25-Dec-08 15:41
sitebuilderLuc Pattyn25-Dec-08 15:41 
Hi again,

the easiest way (not the cleanest way) is like so:
1. add public Form1 Form1; as a member of class Form2; it will hold
the reference to an already existing Form1 object.
2. add Form2.Form1=this; just before you do Form2.Show();
that is where you provide the information about Form1 to Form2.
3. drop Form1 Form1=new Form1(); so the following line modifies the
existing Form1, not a new one.

Much cleaner and better would be to use a delegate; that way you do not have to
expose Form1 to Form2 (the former approach gives Form2 a chance to change much more
than you really need).

You should study delegates when you are a bit more familiar with C#.
I suggest you work your way through a C# book of your choice.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Fixturized forever. Confused | :confused:


AnswerRe: [Visual Studio | C#] richtextbox problem Pin
N a v a n e e t h25-Dec-08 15:39
N a v a n e e t h25-Dec-08 15:39 
GeneralRe: [Visual Studio | C#] richtextbox problem Pin
lucas moretti25-Dec-08 15:44
lucas moretti25-Dec-08 15:44 

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.