Click here to Skip to main content
15,919,931 members
Home / Discussions / C#
   

C#

 
GeneralRe: Select Row Pin
Rmokkenstorm28-Mar-06 21:43
Rmokkenstorm28-Mar-06 21:43 
GeneralRe: Select Row Pin
AB777128-Mar-06 23:38
AB777128-Mar-06 23:38 
GeneralRe: Select Row Pin
Rmokkenstorm28-Mar-06 23:58
Rmokkenstorm28-Mar-06 23:58 
GeneralRe: Select Row Pin
Rmokkenstorm29-Mar-06 20:55
Rmokkenstorm29-Mar-06 20:55 
GeneralRe: Select Row Pin
esjq29-Mar-06 22:06
esjq29-Mar-06 22:06 
GeneralRe: Select Row Pin
Rmokkenstorm29-Mar-06 22:14
Rmokkenstorm29-Mar-06 22:14 
GeneralRe: Select Row Pin
esjq29-Mar-06 22:18
esjq29-Mar-06 22:18 
GeneralRe: Select Row Pin
Rmokkenstorm30-Mar-06 2:47
Rmokkenstorm30-Mar-06 2:47 
Oh just one thing:P
now I have this datagrid and a detail form.
now i adjust my button. i want a previos button on my second form..
code on form1:
this is on my mouse up event of my datagrid
-------------------------------------
<br />
				DataForm1 tmpForm = new DataForm1 (barry11,dataGrid, rowIndex);<br />
				tmpForm.Location = this.Location;<br />
			        tmpForm.Show();<br />
				this.Hide();<br />

---------------------------------------------
DataForm1:

<br />
private System.Windows.Forms.Form _previousForm;<br />


and then comes this.. thinks this is a really bad way to do it:P
<br />
<br />
	public DataForm1(Barry1 barry11, DataGrid dataGrid, int rowIndex)<br />
		{<br />
	<br />
			InitializeComponent();<br />
			PopulateTextBoxes(barry11, dataGrid, rowIndex);<br />
		}<br />
<br />
	public DataForm1(System.Windows.Forms.Form tmpForm)<br />
		{<br />
			InitializeComponent();<br />
			_previousForm = tmpForm;<br />
			<br />
		}<br />


think this should be done other than this.. but i don't know howFrown | :(
last peace of code

<br />
	private void btnbutton1_Click(object sender, System.EventArgs e)<br />
		{<br />
			// show previous<br />
			_previousForm.Location = this.Location;<br />
			_previousForm.Show();<br />
			<br />
			// close this form<br />
			this.Close();<br />
		}<br />

GeneralRe: Select Row Pin
esjq30-Mar-06 19:45
esjq30-Mar-06 19:45 
GeneralRe: Select Row Pin
Rmokkenstorm30-Mar-06 20:00
Rmokkenstorm30-Mar-06 20:00 
QuestionNeed Help in DataGridView Pin
_mubashir28-Mar-06 20:48
_mubashir28-Mar-06 20:48 
QuestionForm Focus Problem Pin
Shajeel28-Mar-06 20:01
Shajeel28-Mar-06 20:01 
AnswerRe: Form Focus Problem Pin
yesimlucky28-Mar-06 20:08
yesimlucky28-Mar-06 20:08 
GeneralRe: Form Focus Problem Pin
Shajeel28-Mar-06 20:27
Shajeel28-Mar-06 20:27 
AnswerRe: Form Focus Problem Pin
albCode28-Mar-06 20:10
albCode28-Mar-06 20:10 
Questionc# webcam issues Pin
jalintz28-Mar-06 19:57
jalintz28-Mar-06 19:57 
Questionhow to show scroll bar in list contrll allways Pin
baldha rakesh28-Mar-06 19:44
baldha rakesh28-Mar-06 19:44 
AnswerRe: how to show scroll bar in list contrll allways Pin
cbhkenshin28-Mar-06 22:20
cbhkenshin28-Mar-06 22:20 
GeneralRe: how to show scroll bar in list contrll allways Pin
baldha rakesh28-Mar-06 22:57
baldha rakesh28-Mar-06 22:57 
GeneralRe: how to show scroll bar in list contrll allways Pin
cbhkenshin28-Mar-06 23:12
cbhkenshin28-Mar-06 23:12 
QuestionDynamic SqlConnection Pin
Gammaza28-Mar-06 19:35
Gammaza28-Mar-06 19:35 
Question????How to return a self-defined type pointer from COM object Pin
dragooooon lee28-Mar-06 18:41
dragooooon lee28-Mar-06 18:41 
QuestionPivot Table component Pin
arobind28-Mar-06 18:05
arobind28-Mar-06 18:05 
AnswerRe: Pivot Table component Pin
leppie28-Mar-06 18:26
leppie28-Mar-06 18:26 
GeneralRe: Pivot Table component Pin
arobind28-Mar-06 21:38
arobind28-Mar-06 21:38 

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.