Click here to Skip to main content
16,004,991 members
Home / Discussions / C#
   

C#

 
AnswerRe: To remove errors from the program. Pin
mav.northwind23-Jul-06 10:22
mav.northwind23-Jul-06 10:22 
AnswerRe: To remove errors from the program. Pin
Christian Graus23-Jul-06 10:44
protectorChristian Graus23-Jul-06 10:44 
QuestionIVR (Interactive Voice Response) Pin
mohsen_dez23-Jul-06 7:03
mohsen_dez23-Jul-06 7:03 
Questionpassing data to another form Pin
simsen23-Jul-06 5:21
simsen23-Jul-06 5:21 
AnswerRe: passing data to another form Pin
Christian Graus23-Jul-06 10:45
protectorChristian Graus23-Jul-06 10:45 
GeneralRe: passing data to another form Pin
simsen23-Jul-06 20:00
simsen23-Jul-06 20:00 
GeneralRe: passing data to another form Pin
Christian Graus23-Jul-06 21:11
protectorChristian Graus23-Jul-06 21:11 
GeneralRe: passing data to another form Pin
simsen24-Jul-06 1:23
simsen24-Jul-06 1:23 
Hi Christian

First thanks for helping me. I'm totally lost here, and I don't know what to do.

Yes I found out, I couldn't use the wizard to do the things I will. So no I'm leaning myself the hard way, by trying to make a program for my friend.

I think I use a constructer (if I understand the book I use correctly which means a constructor is when I make a "new" statement). See the below code.

I have to problems. I don't know how to get the Id from the datagridview I stand on. And then to pass that with the constructer.

If you want to see all the code etc, you can get it here: http://www.ansi-design.dk/ANSI.zip[^]

The button (constructer) I use to open the form2 with code:

private void btnFakturaVis_Click(object sender, EventArgs e)<br />
            {<br />
                //The below code I used, when I had only one datagridview and used the wizard<br />
                //System.Data.DataRowView SelectedRowView;<br />
                //fakturasystemDataSet.FakturaRow SelectedRow;<br />
 <br />
                //SelectedRowView = (System.Data.DataRowView)fakturaBindingSource.Current;<br />
                //SelectedRow = (fakturasystemDataSet.FakturaRow)SelectedRowView.Row;<br />
                //FakturaVis FakturaVisForm = new FakturaVis();<br />
                //FakturaVisForm.LoadFakturaVis(SelectedRow.FakturaID);<br />
                //FakturaVisForm.Show();<br />
<br />
<br />
                //This code I initialize the FakturaVisForm with<br />
                //I here miss how to get the FakturaId from grdFaktura - dataset (ds) <br />
                //dataadapter (da2)<br />
                FakturaVis FakturaVisForm = new FakturaVis();<br />
                FakturaVisForm.Show();<br />
            }





GeneralRe: passing data to another form Pin
Christian Graus24-Jul-06 10:19
protectorChristian Graus24-Jul-06 10:19 
GeneralRe: passing data to another form Pin
simsen24-Jul-06 10:43
simsen24-Jul-06 10:43 
GeneralRe: passing data to another form Pin
Christian Graus24-Jul-06 10:46
protectorChristian Graus24-Jul-06 10:46 
Questiontype cast socket into stream Pin
duaaali23-Jul-06 4:22
duaaali23-Jul-06 4:22 
AnswerRe: type cast socket into stream Pin
mav.northwind23-Jul-06 4:51
mav.northwind23-Jul-06 4:51 
AnswerRe: type cast socket into stream Pin
RizwanSharp23-Jul-06 7:42
RizwanSharp23-Jul-06 7:42 
QuestionUnit-testing events [modified] Pin
WillemM23-Jul-06 2:39
WillemM23-Jul-06 2:39 
AnswerRe: Unit-testing events Pin
Roger Alsing24-Jul-06 2:04
Roger Alsing24-Jul-06 2:04 
GeneralRe: Unit-testing events Pin
WillemM24-Jul-06 2:12
WillemM24-Jul-06 2:12 
QuestionHelp how to automatic install FrameWork when PC run my programme without FrameWork Pin
breaklxx23-Jul-06 2:07
breaklxx23-Jul-06 2:07 
AnswerRe: Help how to automatic install FrameWork when PC run my programme without FrameWork Pin
Christian Graus23-Jul-06 10:46
protectorChristian Graus23-Jul-06 10:46 
QuestionImage Processing [modified] Pin
erfi23-Jul-06 1:51
erfi23-Jul-06 1:51 
AnswerRe: Image Processing Pin
mav.northwind23-Jul-06 2:08
mav.northwind23-Jul-06 2:08 
GeneralRe: Image Processing Pin
erfi23-Jul-06 3:15
erfi23-Jul-06 3:15 
GeneralRe: Image Processing Pin
mav.northwind23-Jul-06 3:47
mav.northwind23-Jul-06 3:47 
GeneralRe: Image Processing Pin
Ravi Bhavnani23-Jul-06 10:14
professionalRavi Bhavnani23-Jul-06 10:14 
Questionhelp me,ask two questions about windows service Pin
YapEro23-Jul-06 0:15
YapEro23-Jul-06 0:15 

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.