コンテントヘッダー
コンテントヘッダー
Ask a few little questions
1. uses what method to be able to be in what nod top right corner only because I jump each times,close the result that Application.Exit(); appears when pushbutton in Winform turn the statement has added This.close();
Ah
The date that 2. invites Datagird is medium shows in DateTimePicker1 code wants how to change
DateTimePicker1.Value=dataGrid1[dataGrid1.CurrentRowIndex, 5]
SfDo you call 1. directly is this Application.Exit(); not OK?
2. DateTimePicker1.Value=dataGrid1[dataGrid1.CurrentRowIndex, 5].Value;Object does not include the case definition to Value
Call directly? ? I think you understand a fault a bit my with the meaning I do not have my means every window body jumps turn metropolis close former window put oneself in another's position but won't shut this to debug, but if I click top right corner shut pushbutton to be equivalent to ending to be debugged this
So Application.Exit(); cannot be written this in the Close incident of window body1. uses what method to be able to be in what nod top right corner only because I jump each times,close the result that Application.Exit(); appears when pushbutton in Winform turn the statement has added This.close();
Code or the Closing incident of 03 are written in the FormClosing incident of VS05 (this incident is window body incident)
PrivatevoidForm2_FormClosing(objectsender, formClosingEventArgse)
{
Application.Exit();
}
Can be written inside incident, for instance your Form1 opened Form2, you want to shut Form2 to end the sentence of whole process, should be in only of Form2 shut it is OK to be written in incident
Do not know to understand a fault your meaning
2, dateTimePicker1.Value is format of a DateTime
You should want to undertake to your value the type is changedIn how putting the value of Datagird to DateTimePicker1 directly then, go ah I do not know the place that DateTimePicker1 puts a value this without Text again should put the valueThis.dateTimePicker1.Value
Here sets indication valueThe version issue that I use perhaps is like this result that you say and the result that are put in Close incidentThis.dateTimePicker1.Value=dataGrid1[dataGrid1.CurrentRowIndex, 5].Value;
Such? ? Won't be not done correctly tooThe version issue that I use perhaps is like this result that you say and the result that are put in Close incident
===============
It is what meaning, the description is a few clearer
Be to use won't also close whole application process?
The code below post
Follow version to should have nothing to do withPrivatevoidForm2_Closing(objectsender, system.ComponentModel.CancelEventArgse)
{
Application.Exit();
}
It is I press this code jump turn pushbutton can shut this window body to show other window body but now is whole shut. . . . . The meaning of Application.Exit(); ends whole application program namely
The meaning that knows the original poster
This problem seems to be compared complex label first belowAdditional about This.dateTimePicker1.Value=dataGrid1[dataGrid1.CurrentRowIndex, 5].Value;
I am the when in clicking incident, wanting to click Datagird because of me this value in Datagird it the cost that takes this date automatically takes what when coming out to use TextBox, still do not become aware what to have namely is difficult that the cost that takes this date automatically takes what when coming out to use TextBox, still do not become aware what to have namely use DateTimePicker to give an issueThis is two windows body jumps turn
Form1 jumps turn Form2
Form1 jumps turn incident
Form2frm=newForm2();
This.Hide();
If(frm.ShowDialog()==DialogResult.NO)
{
Applaction.Exit();
}
If Form2 also wants to carry out jump turn to Form3, also can use the code above so
Shut in window body next write in incident
PrivatevoidForm2_Closing(objectsender, system.ComponentModel.CancelEventArgse)
{
This.DialogResult=DialogResult.NO
}
To above the complement of code
You need to judge be use top right corner to shut still is code shut
Still need to define a local and variable BoolisExit=true;
You need a dot to jump when turning so write
This.isExit=false;
Form3frm=newForm3();
Frm3.Show();
This.Close
Be in next shut code inside so write
PrivatevoidForm2_Closing(objectsender, system.ComponentModel.CancelEventArgse)
{
If(this.isExit)
This.DialogResult=DialogResult.NO
}The value that thanks me to want to ask the means of settlement about the 2nd problem is a Datagird is put in DateTimePicker03 not. . DataGird does not have method to check a side not to go up busy, Breathe out breathe out a thankI am done not have one minute actually. . Depressed
Ah
The date that 2. invites Datagird is medium shows in DateTimePicker1 code wants how to change
DateTimePicker1.Value=dataGrid1[dataGrid1.CurrentRowIndex, 5]
SfDo you call 1. directly is this Application.Exit(); not OK?
2. DateTimePicker1.Value=dataGrid1[dataGrid1.CurrentRowIndex, 5].Value;Object does not include the case definition to Value
Call directly? ? I think you understand a fault a bit my with the meaning I do not have my means every window body jumps turn metropolis close former window put oneself in another's position but won't shut this to debug, but if I click top right corner shut pushbutton to be equivalent to ending to be debugged this
So Application.Exit(); cannot be written this in the Close incident of window body1. uses what method to be able to be in what nod top right corner only because I jump each times,close the result that Application.Exit(); appears when pushbutton in Winform turn the statement has added This.close();
Code or the Closing incident of 03 are written in the FormClosing incident of VS05 (this incident is window body incident)
PrivatevoidForm2_FormClosing(objectsender, formClosingEventArgse)
{
Application.Exit();
}
Can be written inside incident, for instance your Form1 opened Form2, you want to shut Form2 to end the sentence of whole process, should be in only of Form2 shut it is OK to be written in incident
Do not know to understand a fault your meaning
2, dateTimePicker1.Value is format of a DateTime
You should want to undertake to your value the type is changedIn how putting the value of Datagird to DateTimePicker1 directly then, go ah I do not know the place that DateTimePicker1 puts a value this without Text again should put the valueThis.dateTimePicker1.Value
Here sets indication valueThe version issue that I use perhaps is like this result that you say and the result that are put in Close incidentThis.dateTimePicker1.Value=dataGrid1[dataGrid1.CurrentRowIndex, 5].Value;
Such? ? Won't be not done correctly tooThe version issue that I use perhaps is like this result that you say and the result that are put in Close incident
===============
It is what meaning, the description is a few clearer
Be to use won't also close whole application process?
The code below post
Follow version to should have nothing to do withPrivatevoidForm2_Closing(objectsender, system.ComponentModel.CancelEventArgse)
{
Application.Exit();
}
It is I press this code jump turn pushbutton can shut this window body to show other window body but now is whole shut. . . . . The meaning of Application.Exit(); ends whole application program namely
The meaning that knows the original poster
This problem seems to be compared complex label first belowAdditional about This.dateTimePicker1.Value=dataGrid1[dataGrid1.CurrentRowIndex, 5].Value;
I am the when in clicking incident, wanting to click Datagird because of me this value in Datagird it the cost that takes this date automatically takes what when coming out to use TextBox, still do not become aware what to have namely is difficult that the cost that takes this date automatically takes what when coming out to use TextBox, still do not become aware what to have namely use DateTimePicker to give an issueThis is two windows body jumps turn
Form1 jumps turn Form2
Form1 jumps turn incident
Form2frm=newForm2();
This.Hide();
If(frm.ShowDialog()==DialogResult.NO)
{
Applaction.Exit();
}
If Form2 also wants to carry out jump turn to Form3, also can use the code above so
Shut in window body next write in incident
PrivatevoidForm2_Closing(objectsender, system.ComponentModel.CancelEventArgse)
{
This.DialogResult=DialogResult.NO
}
To above the complement of code
You need to judge be use top right corner to shut still is code shut
Still need to define a local and variable BoolisExit=true;
You need a dot to jump when turning so write
This.isExit=false;
Form3frm=newForm3();
Frm3.Show();
This.Close
Be in next shut code inside so write
PrivatevoidForm2_Closing(objectsender, system.ComponentModel.CancelEventArgse)
{
If(this.isExit)
This.DialogResult=DialogResult.NO
}The value that thanks me to want to ask the means of settlement about the 2nd problem is a Datagird is put in DateTimePicker03 not. . DataGird does not have method to check a side not to go up busy, Breathe out breathe out a thankI am done not have one minute actually. . Depressed
コンテントヘッダー
コンテントヘッダー




