Click here to Skip to main content
15,891,907 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: ToolStrip Separator Pin
Scott Dorman26-May-08 4:50
professionalScott Dorman26-May-08 4:50 
QuestionTaskbar Item Highlighting Pin
Lantzcer25-May-08 17:18
Lantzcer25-May-08 17:18 
QuestionWebBrowser - window.open and no menubar Pin
jirka.meluzin25-May-08 3:38
jirka.meluzin25-May-08 3:38 
QuestionRichTextBox: How to wrap on character rather than word? Pin
mid=574124-May-08 9:52
mid=574124-May-08 9:52 
QuestionOutlook 2003 Shared Addins not working. Pin
~Khatri Mitesh~24-May-08 2:59
~Khatri Mitesh~24-May-08 2:59 
QuestionAdd Custom Task Pane in Outlook 2003 Pin
~Khatri Mitesh~23-May-08 21:28
~Khatri Mitesh~23-May-08 21:28 
Answer[Cross Post]Re: Add Custom Task Pane in Outlook 2003 Pin
Scott Dorman24-May-08 5:15
professionalScott Dorman24-May-08 5:15 
QuestionHow can i access a variable from another form ? Pin
tamour23-May-08 3:27
tamour23-May-08 3:27 
public partial class A: Form
{
String str1 = "Some String 1"; // i have assign this string and im going to
// assign a new string in it through class B.
// But the value is not changed.

public A()
{
InitializeComponent();
}
private void A_Load(object sender, EventArgs e)
{
B b = new B(ref str1);
b.ShowDialog(this);
}

}

public partial class B: Form
{
String str2;

public B(ref String str)
{
str2 = str; // if i assign some value here, the string in str1 changes
InitializeComponent();
}

public someFunction()
{
str2 = "Some String 2"; // when i assign some value to this variable,
// the string in the str1 is not changed
}
}

this means that str is the reference of str 1, but str is limited to the constructor only, how can i make str2 the reference of str1 ?

please please help me.

Thanx in advance.
AnswerRe: How can i access a variable from another form ? Pin
Giorgi Dalakishvili23-May-08 7:05
mentorGiorgi Dalakishvili23-May-08 7:05 
QuestionTestdriven development Pin
N a v a n e e t h23-May-08 2:40
N a v a n e e t h23-May-08 2:40 
AnswerRe: Testdriven development Pin
Scott Dorman24-May-08 5:07
professionalScott Dorman24-May-08 5:07 
GeneralRe: Testdriven development Pin
N a v a n e e t h24-May-08 7:12
N a v a n e e t h24-May-08 7:12 
GeneralRe: Testdriven development Pin
Scott Dorman24-May-08 10:18
professionalScott Dorman24-May-08 10:18 
GeneralRe: Testdriven development Pin
N a v a n e e t h24-May-08 18:42
N a v a n e e t h24-May-08 18:42 
GeneralRe: Testdriven development Pin
Scott Dorman25-May-08 2:51
professionalScott Dorman25-May-08 2:51 
AnswerRe: Testdriven development Pin
Ravi Bhavnani25-May-08 17:39
professionalRavi Bhavnani25-May-08 17:39 
GeneralRe: Testdriven development Pin
N a v a n e e t h25-May-08 17:57
N a v a n e e t h25-May-08 17:57 
GeneralRe: Testdriven development Pin
Ravi Bhavnani25-May-08 18:04
professionalRavi Bhavnani25-May-08 18:04 
GeneralRe: Testdriven development Pin
N a v a n e e t h25-May-08 18:07
N a v a n e e t h25-May-08 18:07 
GeneralRe: Testdriven development Pin
Ravi Bhavnani25-May-08 18:09
professionalRavi Bhavnani25-May-08 18:09 
GeneralRe: Testdriven development Pin
N a v a n e e t h25-May-08 18:56
N a v a n e e t h25-May-08 18:56 
GeneralRe: Testdriven development Pin
Ravi Bhavnani25-May-08 18:58
professionalRavi Bhavnani25-May-08 18:58 
GeneralRe: Testdriven development Pin
N a v a n e e t h25-May-08 18:59
N a v a n e e t h25-May-08 18:59 
Questiondetermine OS is windows 2003 or 2008 Pin
Amr M. K.22-May-08 19:29
Amr M. K.22-May-08 19:29 
AnswerDouble Post - Please ignore Pin
Giorgi Dalakishvili22-May-08 21:14
mentorGiorgi Dalakishvili22-May-08 21:14 

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.