Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
AnswerRe: Convert binarydata to Image Pin
Nicholas Butler22-Mar-06 23:35
sitebuilderNicholas Butler22-Mar-06 23:35 
GeneralRe: Convert binarydata to Image Pin
albCode23-Mar-06 0:17
albCode23-Mar-06 0:17 
Questionweb browser Pin
dimx222-Mar-06 22:35
dimx222-Mar-06 22:35 
AnswerRe: web browser Pin
LongRange.Shooter23-Mar-06 4:28
LongRange.Shooter23-Mar-06 4:28 
QuestionSecuring My Font Pin
alaa eldin 12345622-Mar-06 22:23
alaa eldin 12345622-Mar-06 22:23 
QuestionUsercontrol weirdness at designtime Pin
pxp22-Mar-06 22:03
pxp22-Mar-06 22:03 
AnswerRe: Usercontrol weirdness at designtime Pin
pxp24-Mar-06 12:34
pxp24-Mar-06 12:34 
Questiondatagrid, new form, selectrow Pin
Rmokkenstorm22-Mar-06 21:34
Rmokkenstorm22-Mar-06 21:34 
hi there. I have a problem.
I want to select a row from the datagrid en put that in tekstboxes in a new form.
this is what i've got so far:

 <br />
public delegate void CustomRowHandler(object sender, CustomRowEventArgs e);<br />
<br />
<br />
public static event CustomRowHandler CustomRow;<br />
----------------------------------------------------------<br />
<br />
public void dataGrid_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)<br />
		{<br />
			<br />
			int rowIndex = dataGrid.CurrentRowIndex;<br />
			if (CustomRow != null)<br />
			{<br />
              	<br />
			<br />
			   CustomRow(this, new CustomRowEventArgs(barry11,dataGrid, rowIndex));<br />
<br />
----------------------------------------------------------------<br />
<br />
public class CustomRowEventArgs : EventArgs<br />
	{<br />
		<br />
		Barry1  barry11;<br />
		DataGrid grid;<br />
		int row;<br />
<br />
		public CustomRowEventArgs(Barry1 DSet,DataGrid Grid,int Row)<br />
		{<br />
				<br />
			barry11 = DSet;<br />
			grid = Grid;<br />
			row = Row;<br />
				<br />
		}<br />
		public Barry1 DSet<br />
		{<br />
			get { return barry11; }<br />
		}<br />
		public DataGrid Grid<br />
		{<br />
			get { return grid; }<br />
		}<br />
		public int Row<br />
		{<br />
			get { return row; }<br />
		}<br />
<br />

----------------------------------------------------
and on my second form..
-----------------------------------------------------
<br />
		private void customHandler_CustomRow(object sender, WindowsApplication30.CustomRowEventArgs e)<br />
		{<br />
			<br />
			<br />
			Barry1 DSet = e.DSet;<br />
			DataGrid grid = e.Grid;<br />
			int row = e.Row;<br />
		<br />
			editLASTNAME.Text = e.DSet.Tables[0].Rows[e.Row]["Firstname"].ToString();<br />
		<br />
			}<br />
<br />
<br />
			InitializeComponent();<br />
			Form1.CustomRow += new<br />
			WindowsApplication30.CustomRowHandler(customHandler_CustomRow);<br />
<br />
<br />
public DataForm1(Barry1 barry11, DataGrid dataGrid, int rowIndex)<br />
<br />

so.. if i put this peace of code from the second form in to my first form..
it words...

if i put this peace of code in to my first form..



public void dataGrid_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
{

int rowIndex = dataGrid.CurrentRowIndex;
if (CustomRow != null)
{


CustomRow(this, new CustomRowEventArgs(barry11,dataGrid, rowIndex));
DataForm1 frm = new DataForm1 (barry11,dataGrid, dataGrid.CurrentRowIndex);
frm.Show();



he opens the second form (DataForm1).
he fills the textfield that was on the first form..
but he doesn's fill the textfield on the second form...

can someone please help me
QuestionCan DirectShow be used for recording video files Pin
Litty7422-Mar-06 20:07
Litty7422-Mar-06 20:07 
Questionhow to serve usercontrol to clients thru webservice Pin
anurajju22-Mar-06 19:50
anurajju22-Mar-06 19:50 
GeneralRe: how to serve usercontrol to clients thru webservice Pin
Guffa22-Mar-06 21:55
Guffa22-Mar-06 21:55 
GeneralRe: how to serve usercontrol to clients thru webservice Pin
anurajju23-Mar-06 0:46
anurajju23-Mar-06 0:46 
GeneralRe: how to serve usercontrol to clients thru webservice Pin
J4amieC23-Mar-06 2:16
J4amieC23-Mar-06 2:16 
Generalhelp me out Pin
anurajju23-Mar-06 3:11
anurajju23-Mar-06 3:11 
GeneralRe: help me out Pin
J4amieC23-Mar-06 4:01
J4amieC23-Mar-06 4:01 
GeneralRe: how to serve usercontrol to clients thru webservice Pin
Guffa23-Mar-06 5:49
Guffa23-Mar-06 5:49 
QuestionHow to send and receive data using HTTPS Pin
R.Shylaja22-Mar-06 18:58
R.Shylaja22-Mar-06 18:58 
AnswerRe: How to send and receive data using HTTPS Pin
fearless stallion22-Mar-06 19:58
fearless stallion22-Mar-06 19:58 
QuestionReading two mdf files for differences Pin
nosherwan22-Mar-06 18:40
nosherwan22-Mar-06 18:40 
Questionhow to open a IE from a cs file Pin
vamsimohan2122-Mar-06 16:51
vamsimohan2122-Mar-06 16:51 
AnswerRe: how to open a IE from a cs file Pin
Vasudevan Deepak Kumar22-Mar-06 18:14
Vasudevan Deepak Kumar22-Mar-06 18:14 
GeneralRe: how to open a IE from a cs file Pin
vamsimohan2122-Mar-06 20:53
vamsimohan2122-Mar-06 20:53 
QuestionI got a problem in using DataAccess Application Block to update database Pin
seeger12322-Mar-06 13:28
seeger12322-Mar-06 13:28 
AnswerRe: I got a problem in using DataAccess Application Block to update database Pin
DaBears23-Mar-06 11:26
DaBears23-Mar-06 11:26 
QuestionShow an .m2 format file in a form. Pin
AeQuitaZ22-Mar-06 13:09
AeQuitaZ22-Mar-06 13:09 

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.