456 Posted Topics
Re: As Ketsuekiame said if you're invoice is alph-numeric (letters and numbers) you can't parse it into an int. Try taking the int.parse and .ToString() off the first line and adding (int)before the name dataGridView2 (that will also only work if the cell doesn't contain letters but it means you're not … | |
Re: My hard drive died ages ago and I havent put my music back on the new one, I just listen to music on 8tracks or YouTube. Jack Johnson, Ben Howard, King Charles, Mumford and Sons, Eletric Swing and a bit of Funky House, old school HipHop or something with horrible … | |
Re: Hi Sharan7081, welcome to DaniWeb. DaniWeb users are more than happy to help you with any problems you might have, given that you can provide evidence that you've attempted to solve the problem youself and aren't just looking for someone to do the work for. (I think that might be … | |
![]() | Re: Al Murray is just his comedic character, he's actually a well spoken and educated fella, completely different to the character he plays, as is the man that plays Frank Gallagher in the orignal Shameless series is the. It's all about **manners, politeness and respect**, which you don't see enough of … |
Re: Which ever language you're strongest in. Out of VB and C++ I'd sat C++. C# wouldn't be too hard for you to pick up if you're looking for a new language and it's widely used so theres plenty of resources available. | |
Re: Is cashID an int value? If cashID is an int do `cashID = " + (int)dataGridView2.SelectedCells[0].Value + "";` In the long run the best thing to do is to creats a stored procedures on the database side, it will help prevent the SQL statements from being changed while you're editing … | |
Re: Can you post the error you're getting? I'm pretty sure connection string is wrong for a start, have a look at [this](http://msdn.microsoft.com/en-us/library/ms254947(v=vs.80).aspx) | |
Re: Have you tried looping through the array and executing the procedure for each index in the array? | |
Re: put the word set after the table name see if that works. | |
Re: Have you set the HeaderCell property for the DGV to true? `dataGridView1.Columns["CashAccRef"].HeaderCell.Visible = true;` | |
![]() | Re: Only just stumbled on this thread and it made me laugh. slow day that day by any chance diafol? The mental image of a bird spinning in space made me laugh too. |
Re: ddanbe's suggestion works well I use it at the moment, plus if it stays are a DT format when you store it in a string it's easily converted back to DT type. | |
I don't know if this has been raised before or if the folder images on the left of the main page are supposed to do this but I clicked on the folder image to the left of "C#" and the folder turned grey but didn't take me to the C# … | |
Re: Unless it was just a typo when you were posting you have a closed the speach marks too early in your SQL statement. It needs to be at the end of the statement instead of after emp_surname. | |
Re: Try doing something like `string parameter = textbox1.Text + comboBox.SelectedText.ToString();` at the top of the the button click method and then use that parameter variable as the parameter in the SQL statement. Let me know how you get on. | |
Re: Can you show us what you've managed to do so far please? If you're having trouble getting the information out of your tables then the best thing to do is to retrieve all information using the same SQL querey. How are the two tables linked?. | |
Re: I've got a Dell XPS M1530 and having a problem with the battery too. It was so bad that i had to have the charger in at all times but now it will only turn on if i leave the charger in but take the battery out so that it's … | |
Re: You shouldn't use Wikipedia to back up and argument or in research, it can be edited by anyone so it's unreliable. | |
Re: Check the file path for your first image is correct. As far as I can see thats the only thing that might be causing the problem. | |
Re: Apparently Apple are supposidly releasing 2 iPhones this year, the 5S and a cheaper iPhone for people with a lower budget . . . all a load of Bull to me, they churn them out with new thing that aren't even ground breaking anymore and people that are hooked on … | |
Re: You could get the HitInfo for the DGV and then use that to set the AutoSizeMode property of the DGV's column like this: private DataGridView.HitTestInfo hitInfo; private Void MyDataGridView_ColumnHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { //// Gets the details of the click that occurred on the DGV \\\\ hitInfo this.MyDataGridView.HitTest(e.X, e.Y); if … | |
Re: If you're gaming online I'd suggest you get as usage limit as possible, it might be easy to reach your limit, especially if there are a few people using the same connection. | |
Re: Mikey's way will work (I've done it before myself) but like he said it can get messy. If you're doing it that way make sure you start the name of all your objects with the type of layout you want (e.g. adminFirstNameTextBox for admin view or say userFirstNameTextBox for a … | |
Re: Can you claify your questions please? You've started a question in the thread title and finished it in the post itself and it's not very clear. > Also, Is there a different name for classes in C# when it comes to Java? Yes objects in both Java and C# will … | |
Re: The best control to use when reading records from a database is probably a DataGridView as it's just a table which you can configure to display as much or as little as you like. The only difficult aspect of a DGV is getting your head around accessing individual cells, but … | |
Re: or you can do `textBox1.Text = comboBox1.SelectedText;` if your comboBox displays strings. | |
Re: I read somewhere that the chicken evolved from a T-rex... don't know how true this is, if it is true it's quite ironic. http://www.dailymail.co.uk/sciencetech/article-448283/Proof-fearsome-T-Rex-evolved-chicken.html | |
Re: Pennywise the clown from the Steven King's I.T! | |
Re: Data Protection Act 1998, did that one to death at collage! | |
Re: What did the error say? Try putting `buff = double.TryParse(txtTotal.Text, out total);` in a try catch like this to see if it works: try { double.TryParse(txtTotal.Text, out total); buff = true; } catch { buff = false; } Also you return result but result is set to 0 and never … | |
Re: [Click Here](https://www.google.co.uk/#hl=en&tbo=d&output=search&sclient=psy-ab&q=writing+design+for+small+network&oq=writing+design+for+small+network&gs_l=hp.3...39966.53669.0.54019.43.33.5.5.5.0.206.2771.30j2j1.33.0.les%3B..1.0...1c.1.iJQuw_JtlGw&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.&bvm=bv.1357700187,d.d2k&fp=b73698d67822f0fc&biw=1163&bih=875) there are plenty of useful links from that search | |
Re: You're right, for an instance method you have to declare an instance of the class it is defined in as below: Form1 myForm = new Form1(); public Mainform() { this.myForm.PopulateComboBoxe(this.myComboBox); } and for static methods you DON'T need to declare and instance of the class that the method is declared … | |
Re: My power is I can break anything without actually wanting to. How many pull-ups can you do ? I can only do 10 and I'm a climber so you'd think I'd be able to do more :( | |
Re: Set the "Modifiers" property of the controles on Form2 to "public". * At the top of Form1 declare a new instance of Form2 so you can access the controls on Form2 `Form2 frm2 = new Form2();`. * Next, in a method in Form1 do `frm2.emriBox.Text = this.emriBox.Text;` (this will put … | |
Re: Unfortunatly the majority of the unfinished threads tend to stem from people who want their assignments doing for them without having to learn or do anything themselves, even if it's just Googling it. So they usually abandon the post when they realise they're not getting spoon fed. It's a shame … | |
Re: Do you mean want to make the DataGridView un-editable ? If so do the following: dataGridView1.Enabled = false; It stops the user from being able to use the DGV and then you can implement an "Edit" button whitch sets "Enabled" to "true". | |
Re: You have to show that have at least attempted to solve the problem yourself and we're not supposed to give you the code as you might just copy it without understanding it and learning anything from it but the follow the instruction below (the line of code which is also … | |
I'm reading through a C# coding standards document and come across a section that reads as follows: * Try to prefix Boolean variables and properties with "Can", "Is" and "Has". Can anyone give me an example of hows it's done or maybe a useful link on the subject please ? … | |
Re: People may see this as Big Brother gone wild again but if you've done nothing wrong and have nothing to hide then you shouldn't have a problem. If you've ever been unfortunate enough to have been robbed or been the victem of a crime then you should be more than … | |
Re: Have a look at this [Link](http://www.daniweb.com/software-development/csharp/threads/437362/getting-started-with-c-the-list), its another article here on DaniWeb for people in the same position as yourself. It give you a good list of tutorial websites and book that are great for learning, I've used a lot of them myself but I would suggest starting with the … | |
Re: Are you going to type the names of the train station into code or are they retrieved from a database ? | |
Re: Zick asked which **GAME** you think is best for **ANY** console, not which **CONSOLE** is best. The thread will get out of hand it we get into the debate of consoles. * BattleField 3 for the MP | |
Re: Always wanted one and got vouchers to get one but bricked it because I couldn't think what to get done so I gave them away. Theres a show called London ink too. HappyGeek whats the meaning of the 1,4,7 on your middle finger or am I being naive | |
Re: Where does the age of the employee come from is it calculated using their DOB? use the GROUPBY clause to group the employees by age | |
Re: It just marks anyone who has posted in the thread as having contributed to solving the thread. People hardly mark threads solved as it is so getting people to mark posters as having been the one that solved the problem would probably happen even less, especially if more than one … ![]() | |
Re: If you're strings will always contain words seperated by spaces you cour tokenise the string by the spaces. You can also convert the string to a char array, loop through the array until you come to the first letter of a required word and keep looping through the array until … | |
Re: you could do an INSERT statement with a WHERE clause to prevent a new row being added to a table where the same records already exits. would be something like (but dont take my word for it) [CODE]INSERT INTO Employee AS E (Name, Age, DOB) VALUES (value1, value1, value3) WHERE … | |
Re: Assuming you're using Visual Studio, in the properties window for the picture box there should be a 'Mouse Over' event, which if under the picture box's events list, that will do the trick. | |
Re: Try using this: System.Diagnostics.Process.Start("Your file path (including file name with file extention"); |
The End.