Click here to Skip to main content
15,907,326 members
Home / Discussions / C#
   

C#

 
GeneralRe: switch content of a panel Pin
Marc Soleda13-Dec-06 1:57
Marc Soleda13-Dec-06 1:57 
AnswerRe: switch content of a panel Pin
Not Active13-Dec-06 2:19
mentorNot Active13-Dec-06 2:19 
QuestionSave textbox in sqlserver2000 Pin
hadio12-Dec-06 21:55
hadio12-Dec-06 21:55 
AnswerRe: Save textbox in sqlserver2000 Pin
Pete O'Hanlon12-Dec-06 22:36
mvePete O'Hanlon12-Dec-06 22:36 
Questioncall javascript function from c# code without based on event Pin
ALAQUNAIBI12-Dec-06 21:42
ALAQUNAIBI12-Dec-06 21:42 
AnswerRe: call javascript function from c# code without based on event Pin
il_masacratore12-Dec-06 21:49
il_masacratore12-Dec-06 21:49 
GeneralRe: call javascript function from c# code without based on event Pin
ALAQUNAIBI17-Dec-06 0:40
ALAQUNAIBI17-Dec-06 0:40 
QuestionWhy property or field unable to give the contents ? Pin
kalaveer12-Dec-06 19:49
kalaveer12-Dec-06 19:49 
i have declared a public propery like below in form1
public partial class Form1 : Form
{
string st;
public string s
{
get
{
return st;
}
}
private void Form1_Load(object sender, EventArgs e)
{
st = "MY PROPERTY";
}
}
and i tried to display this value in form2
using the statements

Form1 f = new Form1();
MessageBox.Show(f.s);


its not giving any errors but displaying nothing in messagebox

but if i initialize the st at the declatation instead of form1_load its displaying correct value

ex: public string st="MT PROPERTY";


please tell me why thats happening and how can i resolve this.Confused | :confused:

AnswerRe: Why property or field unable to give the contents ? Pin
chravisankar12-Dec-06 20:23
chravisankar12-Dec-06 20:23 
GeneralRe: Why property or field unable to give the contents ? Pin
kalaveer12-Dec-06 21:04
kalaveer12-Dec-06 21:04 
AnswerRe: Why property or field unable to give the contents ? Pin
Guffa12-Dec-06 21:00
Guffa12-Dec-06 21:00 
AnswerRe: Why property or field unable to give the contents ? Pin
J4amieC12-Dec-06 22:23
J4amieC12-Dec-06 22:23 
GeneralRe: Why property or field unable to give the contents ? Pin
kalaveer12-Dec-06 23:07
kalaveer12-Dec-06 23:07 
AnswerRe: Why property or field unable to give the contents ? Pin
Guffa13-Dec-06 0:24
Guffa13-Dec-06 0:24 
AnswerRe: Why property or field unable to give the contents ? Pin
Pete O'Hanlon12-Dec-06 22:38
mvePete O'Hanlon12-Dec-06 22:38 
QuestionWhen I press F5 I am getting Error In C# with ASP.NET web application as follows below Pin
haneef112-Dec-06 18:58
haneef112-Dec-06 18:58 
AnswerRe: When I press F5 I am getting Error In C# with ASP.NET web application as follows below Pin
chravisankar12-Dec-06 20:46
chravisankar12-Dec-06 20:46 
AnswerRe: When I press F5 I am getting Error In C# with ASP.NET web application as follows below Pin
eggsovereasy13-Dec-06 3:42
eggsovereasy13-Dec-06 3:42 
QuestionWant to disable Message Beep Pin
sagarcode12-Dec-06 18:51
sagarcode12-Dec-06 18:51 
AnswerRe: urgent!!! Pin
Paul Conrad12-Dec-06 19:45
professionalPaul Conrad12-Dec-06 19:45 
GeneralRe: urgent!!! Pin
Muammar©12-Dec-06 20:50
Muammar©12-Dec-06 20:50 
GeneralRe: urgent!!! Pin
Paul Conrad13-Dec-06 3:47
professionalPaul Conrad13-Dec-06 3:47 
GeneralRe: urgent!!! Pin
Muammar©15-Dec-06 18:53
Muammar©15-Dec-06 18:53 
Questionchanging application icon at runtime without recompiling Pin
GunaChinna12-Dec-06 18:04
GunaChinna12-Dec-06 18:04 
AnswerRe: changing application icon at runtime without recompiling Pin
sno-114-Dec-06 3:12
sno-114-Dec-06 3:12 

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.