Click here to Skip to main content
15,922,696 members
Home / Discussions / Database
   

Database

 
AnswerRe: DataGrid new row Pin
enjoycrack8-Sep-05 23:51
enjoycrack8-Sep-05 23:51 
AnswerRe: DataGrid new row Pin
miah alom9-Sep-05 5:54
miah alom9-Sep-05 5:54 
QuestionMS Hierarchical FlexGrid Pin
pjhenry12168-Sep-05 5:32
pjhenry12168-Sep-05 5:32 
AnswerRe: MS Hierarchical FlexGrid Pin
smita_roy8-Sep-05 19:59
smita_roy8-Sep-05 19:59 
QuestionT-Sql problem Pin
WDI8-Sep-05 4:55
WDI8-Sep-05 4:55 
AnswerRe: T-Sql problem Pin
Colin Angus Mackay8-Sep-05 10:39
Colin Angus Mackay8-Sep-05 10:39 
GeneralRe: T-Sql problem Pin
Frank Kerrigan9-Sep-05 0:37
Frank Kerrigan9-Sep-05 0:37 
QuestionCall a variable from the another Form ... Pin
mostafa_h7-Sep-05 21:38
mostafa_h7-Sep-05 21:38 
Hi !
I have a variable (the following):
in Form1 we have:

....<br />
Public int myint;<br />
...<br />
private void btnOK_Click(object sender, System.EventArgs e)<br />
{<br />
....<br />
myint=4;<br />
...<br />
}

---
I Want to put this variable (myint) into the another variable (getmyint) in Form2.cs(formclass)
in form2 we have :
private void Form2_Load(object sender, System.EventArgs e)<br />
{<br />
....<br />
int getmyint;<br />
...<br />
}
---
How can I put the variable of form1(myint) into the variable in form2?
by the way, I made an object of the form1 in form2:
...<br />
Form1 getintform=new Form1();<br />
...<br />
private void Form2_Load(object sender, System.EventArgs e)<br />
{<br />
....<br />
int getmyint;<br />
getmyint=this.getintform.myint;<br />
...<br />
}

but I don't get any result , please guide me!
thanks!



mostafa hosseiny b.

-- modified at 3:39 Thursday 8th September, 2005
AnswerRe: Call a variable from the another Form ... Pin
enjoycrack8-Sep-05 0:44
enjoycrack8-Sep-05 0:44 
GeneralRe: Call a variable from the another Form ... Pin
mostafa_h8-Sep-05 1:52
mostafa_h8-Sep-05 1:52 
GeneralRe: Call a variable from the another Form ... Pin
enjoycrack8-Sep-05 1:54
enjoycrack8-Sep-05 1:54 
GeneralRe: Call a variable from the another Form ... Pin
mostafa_h8-Sep-05 4:15
mostafa_h8-Sep-05 4:15 
GeneralRe: Call a variable from the another Form ... Pin
enjoycrack8-Sep-05 21:07
enjoycrack8-Sep-05 21:07 
GeneralRe: Call a variable from the another Form ... Pin
mostafa_h15-Sep-05 0:59
mostafa_h15-Sep-05 0:59 
GeneralRe: Call a variable from the another Form ... Pin
enjoycrack15-Sep-05 1:05
enjoycrack15-Sep-05 1:05 
GeneralRe: Call a variable from the another Form ... Pin
mostafa_h15-Sep-05 1:59
mostafa_h15-Sep-05 1:59 
QuestionNumber Of Days Pin
FireOnMoon7-Sep-05 20:15
FireOnMoon7-Sep-05 20:15 
AnswerRe: Number Of Days Pin
Frank Kerrigan7-Sep-05 22:32
Frank Kerrigan7-Sep-05 22:32 
QuestionADO.NET For Exchange 2003? Pin
Patricker7-Sep-05 13:28
Patricker7-Sep-05 13:28 
QuestionMSDE and the port 1433 Pin
SeLoRBIS7-Sep-05 12:44
SeLoRBIS7-Sep-05 12:44 
AnswerRe: MSDE and the port 1433 Pin
enjoycrack8-Sep-05 2:01
enjoycrack8-Sep-05 2:01 
GeneralRe: MSDE and the port 1433 Pin
SeLoRBIS8-Sep-05 7:51
SeLoRBIS8-Sep-05 7:51 
GeneralRe: MSDE and the port 1433 Pin
enjoycrack8-Sep-05 23:21
enjoycrack8-Sep-05 23:21 
GeneralRe: MSDE and the port 1433 Pin
SeLoRBIS9-Sep-05 7:03
SeLoRBIS9-Sep-05 7:03 
GeneralRe: MSDE and the port 1433 Pin
enjoycrack9-Sep-05 16:26
enjoycrack9-Sep-05 16:26 

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.