456 Posted Topics

Member Avatar for silvercats

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 …

Member Avatar for JOSheaIV
0
426
Member Avatar for >shadow<

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 …

Member Avatar for stultuske
0
453
Member Avatar for sharan7081

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 …

Member Avatar for sharan7081
-1
246
Member Avatar for diafol

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 …

Member Avatar for Reverend Jim
2
1K
Member Avatar for mcoliver88

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.

Member Avatar for ChrisHunter
0
166
Member Avatar for sundog1

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 …

Member Avatar for ChrisHunter
0
266
Member Avatar for antrock101

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)

Member Avatar for james6754
0
228
Member Avatar for smitha_aa

Have you tried looping through the array and executing the procedure for each index in the array?

Member Avatar for ChrisHunter
0
185
Member Avatar for sundog1
Member Avatar for sundog1

Have you set the HeaderCell property for the DGV to true? `dataGridView1.Columns["CashAccRef"].HeaderCell.Visible = true;`

Member Avatar for sundog1
0
190
Member Avatar for diafol

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.

Member Avatar for <M/>
0
165
Member Avatar for AquaNut

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.

Member Avatar for ChrisHunter
0
220
Member Avatar for ChrisHunter

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# …

Member Avatar for ChrisHunter
0
146
Member Avatar for millus

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.

Member Avatar for ChrisHunter
0
179
Member Avatar for jangojan

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.

Member Avatar for ChrisHunter
0
138
Member Avatar for nakibzaman88

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?.

Member Avatar for prashant9928
0
138
Member Avatar for javanoob101

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 …

Member Avatar for javanoob101
0
180
Member Avatar for <M/>

You shouldn't use Wikipedia to back up and argument or in research, it can be edited by anyone so it's unreliable.

Member Avatar for nmaillet
0
632
Member Avatar for andika.kurniawan.121

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.

Member Avatar for ChrisHunter
0
122
Member Avatar for Nionoas

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 …

Member Avatar for <M/>
0
313
Member Avatar for kaizen202

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 …

Member Avatar for ChrisHunter
0
854
Member Avatar for kenth21v

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.

Member Avatar for ChrisHunter
0
258
Member Avatar for Pauliuz

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 …

Member Avatar for TnTinMN
0
333
Member Avatar for silvercats

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 …

Member Avatar for JOSheaIV
0
162
Member Avatar for Lethugs

Incase anyone needs it here is how the above can be done: string.Format("{0:dd/MMMM/YYYY}", Convert.ToDateTime(reader["Date"]).ToLongDateString());

Member Avatar for Lethugs
0
472
Member Avatar for GolDRoger00

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 …

Member Avatar for tinstaafl
0
641
Member Avatar for rockout15
Member Avatar for ChrisHunter
0
117
Member Avatar for <M/>

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

Member Avatar for <M/>
0
389
Member Avatar for <M/>
Member Avatar for NoCodeMonkey
Member Avatar for ChrisHunter
0
229
Member Avatar for tony75

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 …

Member Avatar for tony75
0
200
Member Avatar for january kiwele

[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

Member Avatar for JorgeM
0
223
Member Avatar for rotten69

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 …

Member Avatar for ChrisHunter
0
166
Member Avatar for <M/>

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 :(

Member Avatar for <M/>
0
181
Member Avatar for dr_iton

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 …

Member Avatar for tinstaafl
0
362
Member Avatar for glad024

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 …

Member Avatar for ChrisHunter
0
396
Member Avatar for SQLpower

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".

Member Avatar for SQLpower
0
549
Member Avatar for minipop4747

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 …

Member Avatar for ChrisHunter
0
175
Member Avatar for ChrisHunter

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 ? …

Member Avatar for Kru
0
223
Member Avatar for happygeek

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 …

Member Avatar for Seten
1
426
Member Avatar for evansment
Re: C#

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 …

Member Avatar for ChrisHunter
0
129
Member Avatar for siralv1

Are you going to type the names of the train station into code or are they retrieved from a database ?

Member Avatar for james6754
0
278
Member Avatar for ImZick

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

Member Avatar for GrimJack
0
365
Member Avatar for Ancient Dragon

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

Member Avatar for happygeek
0
289
Member Avatar for bnitishpai

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

Member Avatar for bnitishpai
0
239
Member Avatar for riahc3

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 …

Member Avatar for diafol
0
220
Member Avatar for murnesty

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 …

Member Avatar for ChrisHunter
0
179
Member Avatar for Woodenhousen

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 …

Member Avatar for sohaiby
0
1K
Member Avatar for RT00220489

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.

Member Avatar for tinstaafl
0
717
Member Avatar for Mirfath

Try using this: System.Diagnostics.Process.Start("Your file path (including file name with file extention");

Member Avatar for ChrisHunter
0
3K

The End.