Click here to Skip to main content
15,900,258 members
Home / Discussions / C#
   

C#

 
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 
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 
kalaveer wrote:
private void Form1_Load(object sender, EventArgs e)
{
st = "MY PROPERTY";
}



kalaveer wrote:

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


You have initialised your variable when the Form Loads (Form_LOad event). This event is fired when the form is loaded (ie. displayed). As you have not shown your form your property has not been set

Form1 f = new Form1();<br />
f.Show(); // important!<br />
MessageBox.Show(f.s);



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 
Questionselecting a row in a data grid Pin
miteshjain12-Dec-06 18:03
miteshjain12-Dec-06 18:03 
AnswerRe: selecting a row in a data grid Pin
Bob Nadler12-Dec-06 18:32
Bob Nadler12-Dec-06 18:32 
GeneralRe: selecting a row in a data grid Pin
cheah8512-Dec-06 23:06
cheah8512-Dec-06 23:06 
QuestionTable Update Via Table Adapter Pin
mfcuser12-Dec-06 16:11
mfcuser12-Dec-06 16:11 

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.