
rmokkenstorm
Avatar/Signature-
Posts
31 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by rmokkenstorm
-
Passing Parameters into a select query C#
rmokkenstorm replied to rmokkenstorm's topic in Database / XML / Reporting
well then he is complaining that he cannot convert the string to decimal. -
Passing Parameters into a select query C#
rmokkenstorm replied to rmokkenstorm's topic in Database / XML / Reporting
I put down a new query with the select : WHERE T075_BORGTOCHTNUMMER_1 LIKE ? and the following fill command: this.dBANBM_T075_BORGTOCHTTableAdapter.FillBy1(this.testdb1DataSet.DBANBM_T075_BORGTOCHT); he return's me the error: No overload for method 'FillBy1' takes '1' arguments -
i'm building a program wich have a search function. the user fills in a value in a textbox and presses the button. now the given value should pass to the select query string VAL; if (textBox1.Text != string.Empty) { VAL = textBox1.Text; } else { VAL = "%"; } this.dBANBM_T075_BORGTOCHTTableAdapter.Fill(this.testdb1DataSet.DBANBM_T075_BORGTOCHT); and the select query is: WHERE (T075_BORGTOCHTNUMMER_1 LIKE ?)" i use a acces database but when i execute this he says that there is no value for the paratmeter can anyone help me?
-
oke thanks but i have some sample where he loads his form in this panal. at least.. i think. gues i'm wrong. i want to have the situation that i have at the top of my screem some button's, then the pannel or some kind and at the bottom also some button's this buttons are everywhere the same. so it's kinna useless to put these on every form. i go search some information about "MDI form and child forms". thanks
-
I have a problem. On my form (mainform) is use a panal wich should load another form (form1) now i placed the panal en he should load the form1 when the mainform loads. but i get this error: Top-level control cannot be added to a control. i don't know what to do whit this error. public partial class main : Form { Form1 from1; public main() { InitializeComponent(); } internal Form1 From1 { get { if (this.from1 == null) { this.from1 = new Form1(); this.panel1.Controls.Add(this.from1); this.from1.Dock = DockStyle.Fill; } return this.from1; } } private void main_Load(System.Object sender, System.EventArgs e) { this.FFrom1(); } internal void FFrom1() { this.From1.Visible = true; } this is my code i use visual C# 2005 and offcourse writing in C# can anyone help me?
-
my script now public static event CustomRowHandler CustomRow; public virtual void customHandler_CustomRow(object sender, CustomRowEventArgs e) { Barry1 DSet = e.DSet; DataGrid dataGrid = e.Grid; int row = e.Row; textBox2.Text=barry11.Tables[0].Rows [row]["firstname"].ToString(); public void dataGrid_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e) { if (CustomRow != null) { CustomRow(this, new CustomRowEventArgs(barry11,dataGrid,dataGrid.CurrentRowIndex)); } } public class CustomRowEventArgs : EventArgs { Barry1 dataSet; DataGrid grid; int row; public CustomRowEventArgs(Barry1 DSet,DataGrid Grid,int Row) { dataSet = DSet; grid = Grid; row = Row; } public Barry1 DSet { get { return dataSet; } } public DataGrid Grid { get { return grid; } } public int Row { get { return row; } } } I really don't get it... it runs without errors. but i cant read the row in the textbox.. what's wrong? is the code not correct by my currentrowindex.. or is the code bad at the textbox part?
-
I don't know what you mean .. If I run the script there are no errors.. at least.. he says so...
-
can someone send me another script or sample of tutorial to do this right?
-
yeah that whas a mistake i saw later. but the problem remains..
-
i use this script to select a row from my data grid.. but he doesn't fill it.. what's wrong? my customrow script public void dataGrid_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e) { int rowIndex = dataGrid1.CurrentRowIndex; if (CustomRow != null) { CustomRow(this, new CustomRowEventArgs(barry11,dataGrid1,rowIndex)); } } public class CustomRowEventArgs : EventArgs { DataSet barry11; DataGrid grid; int row; public CustomRowEventArgs(DataSet DSet,DataGrid Grid,int Row) { grid = Grid; row = Row; barry11 = barry11; } public DataSet DSet { get { return barry11; } } public DataGrid Grid { get { return grid; } } public int Row { get { return row; } } and my code to read it out.. at least it should read it.. public virtual void customHandler_CustomRow(object sender, CustomRowEventArgs e) { DataSet DSet = e.DSet; DataGrid dataGrid1 = e.Grid; int row = e.Row; textBox.Text = dataGrid1[e.Row,0].ToString(); }
-
oke thanks and thanks for the fast reply's and thanks for the solution and thanks for the sample well i can go on like this forever anyway...thanks
-
I building a winform C# project and now I want to use frames or some kind. I've noticed there where dockstyles that can be used but this is only for 2 frames. i'd like to call them frames. But in the dockstyle i can use top and bottom or fill.. but i need 3 frames, a bottom, middle and top. how can i do this. can this be done or should i use some other functions?
-
Just one more question my forms go's about.. 4 or 5 forms deep.. If i'm at the 5th form and press back.. will he go back to the 4th form of the first?
-
Thanks this is great Thanks
-
I can't make it work.. should i put something by InitializeComponent(); ?
-
If You could be so kind and if its not to much trouble. Then Please
-
It works:D Thanks Can you help me with one little thing next and that is a back button or some kind.. So i can return to the previos Form? If I put a close button on the second form. He doesn't exit the program. But only the form form 1 (Agenda) is still hidden now.
-
I feel really stupid by asking this. On my form I have a button. When the user clicks the button he should open a form and close the otherone. just like a hyperlink in HTML with the same target. my code is private void btnButton1_Click(object sender, System.EventArgs e) { Agenda frm = new Agenda(); frm.ShowDialog(); } But now he opens the form above the otherone..
-
Sounds logic. But thinks this is not correct for me. If a user logon he/she should be a member of a group and this will decide which buttons the user can see. Or if the user has writting or reading rights or some table's or fields. Or am i missing some part of do i conclude to quick. :)
-
Someone... Please... Help me :(...
-
Visual C#.net 2003. windows forms. There is a existing database. The project is to build up the application in C#.net. Almost everything exept for some view's it should be rebuild.
-
Please anyone? Really need some advise :(
-
and how can i read out this string or someting in a other form ?
-
I'm building a Login sript zo people can acces the data base but need some tips or tutorials The user has to fill in a Username, Password, And the database he/she want's to acces.. now I Thinks I should load some session of some kind.. cause there are more then one departments.. with different rights.. whit this session or some kind of.. I let them go into the next form.. this form contains a Few buttons.. But if the user is from department A he can nog see all the buttos.. Same story for department B. should I use some kind of sessions? where do i put this sripting (a config form or in each form or the database trigger of view) hope you could me some good search advise of some tutorials
-
Can someone please help me. I have a Datagrid with 5 colloms. now I want the user to dubbel click on a datarow in the datagrig so he will see another form with the detaild information.. that's about 12 colloms.. of textboxes.. First: should I put in my SelectQuery from the first form all the 12 colloms or can i also do that in the second form.. What's better, quicker? Second: How can I collect the datarow put it in some kind of varible and read it out in the second form? I use visual C#.NET