Click here to Skip to main content
15,903,362 members
Home / Discussions / C#
   

C#

 
AnswerRe: Upload data from excel file to databse. Pin
Ice_Freez0525-Apr-10 22:53
Ice_Freez0525-Apr-10 22:53 
AnswerRe: Upload data from excel file to databse. Pin
sanforjackass25-Apr-10 22:54
sanforjackass25-Apr-10 22:54 
AnswerRe: Upload data from excel file to databse. Pin
surender.m26-Apr-10 0:25
surender.m26-Apr-10 0:25 
GeneralRe: Upload data from excel file to databse. Pin
Rajeshwar Code- Developer26-Apr-10 0:33
Rajeshwar Code- Developer26-Apr-10 0:33 
Questiontext changed on another form Pin
Member 59031025-Apr-10 21:09
Member 59031025-Apr-10 21:09 
AnswerRe: text changed on another form Pin
nagendrathecoder25-Apr-10 21:13
nagendrathecoder25-Apr-10 21:13 
AnswerRe: text changed on another form Pin
Calla25-Apr-10 21:46
Calla25-Apr-10 21:46 
AnswerRe: text changed on another form Pin
OriginalGriff25-Apr-10 21:51
mveOriginalGriff25-Apr-10 21:51 
There could be so many things wrong, it is impossible to be definite. However, the first question for you is: why are you using a static property? You do realise that it is shared by all instances of the form?

Try using a public property on Form2, and use it in the form load event:
public string myText { get; set; }
...
private void Form2_Load(object sender, EventArgs e)
   {
   label1.Text = myText;
   }

Then in Form1:
Form2 myForm = new Form2();
myForm.myText = "Hello World!";
myForm.Show();
If this doesn't solve your problem, then you will have to post relevent code fragments from Form1 and Form2 (enclosing in <pre>...</pre> blocks with the "code block" widget to preserve the formatting and make it easier to read) - don't just post your entire project, nobody wants to wade through loads of irrelevant code!
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace

C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy

GeneralRe: text changed on another form Pin
Member 59031025-Apr-10 21:58
Member 59031025-Apr-10 21:58 
GeneralRe: text changed on another form Pin
Member 59031025-Apr-10 21:59
Member 59031025-Apr-10 21:59 
GeneralRe: text changed on another form Pin
OriginalGriff25-Apr-10 23:15
mveOriginalGriff25-Apr-10 23:15 
AnswerRe: text changed on another form Pin
sanforjackass25-Apr-10 22:26
sanforjackass25-Apr-10 22:26 
QuestionInsert 2 textbox text in one field Pin
mjawadkhatri25-Apr-10 20:21
mjawadkhatri25-Apr-10 20:21 
AnswerRe: Insert 2 textbox text in one field Pin
nagendrathecoder25-Apr-10 20:25
nagendrathecoder25-Apr-10 20:25 
AnswerRe: Insert 2 textbox text in one field Pin
Calla25-Apr-10 20:25
Calla25-Apr-10 20:25 
GeneralRe: Insert 2 textbox text in one field Pin
mjawadkhatri25-Apr-10 20:29
mjawadkhatri25-Apr-10 20:29 
GeneralRe: Insert 2 textbox text in one field Pin
mjawadkhatri25-Apr-10 20:35
mjawadkhatri25-Apr-10 20:35 
GeneralRe: Insert 2 textbox text in one field Pin
Ice_Freez0525-Apr-10 20:36
Ice_Freez0525-Apr-10 20:36 
GeneralRe: Insert 2 textbox text in one field Pin
Calla25-Apr-10 20:36
Calla25-Apr-10 20:36 
GeneralRe: Insert 2 textbox text in one field Pin
Luc Pattyn26-Apr-10 0:54
sitebuilderLuc Pattyn26-Apr-10 0:54 
AnswerRe: Insert 2 textbox text in one field Pin
Ice_Freez0525-Apr-10 20:32
Ice_Freez0525-Apr-10 20:32 
QuestionHow to Convert C++ unsigned char * to C# byte[] Pin
Joe Rozario25-Apr-10 19:55
Joe Rozario25-Apr-10 19:55 
AnswerMessage Removed Pin
25-Apr-10 22:12
Michel Godfroid25-Apr-10 22:12 
GeneralRe: How to Convert C++ unsigned char * to C# byte[] Pin
Joe Rozario25-Apr-10 22:42
Joe Rozario25-Apr-10 22:42 
GeneralRe: How to Convert C++ unsigned char * to C# byte[] Pin
Michel Godfroid25-Apr-10 23:45
Michel Godfroid25-Apr-10 23:45 

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.