Posts
 
Reputation
Loading chart. Please wait.
Joined
Last Seen
Ranked #217
Strength to Increase Rep
+9
Strength to Decrease Rep
-2
91% Quality Score
Upvotes Received
117
Posts with Upvotes
99
Upvoting Members
55
Downvotes Received
11
Posts with Downvotes
10
Downvoting Members
8
31 Commented Posts
22 Endorsements
Ranked #64
Ranked #246
~282.74K People Reached
About Me

Distinctly average . . .

Interests
Climbing, gaming, driving, swimming, motorbikes, surfing, PUB !
PC Specs
If I had one that works I'd post them...
Favorite Tags

456 Posted Topics

Member Avatar for vegaseat

"it's not the years in your life it's the life in your years" - abraham lincoln

Member Avatar for Reverend Jim
15
13K
Member Avatar for Reverend Jim

I'm with happyGeek on this one. I watch the odd TV show like Men Who Jump Off Roofs or The Island but the majority of it is un watchable. I have to endure The Only Way Is Essex and Big Brother...

Member Avatar for Reverend Jim
10
3K
Member Avatar for The Dude

Quote ... Raining Cats and Dogs" doesn't mean a thing! Things are about to get messy

Member Avatar for Dani
3
11K
Member Avatar for Duki

Porridge made using water instead of mild and a cup of black coffee... I'm on a lean mass building diet and this my second breakfast of the day... I'm bored of eating already!

Member Avatar for Dani
22
17K
Member Avatar for LastMitch

Went to see the new Bond: Skyfall on Sunday and thought it was amazing! I wasn't a fan of the older Bond films because they were too light and toung and cheek (which they are supposed to be), but the Daniel Craig ones are darker, gritty and not about ridiculous …

Member Avatar for LoanHensley
6
6K
Member Avatar for H. B. Duran

[QUOTE=johnwords;1402279]parents should be cautious when let children play some games because some may really do harm to your kids[/QUOTE] I've never been punched in the face by a video game in over 15 years i've been playing. Games can help with geography, i went to Venice and knew my way …

Member Avatar for Naheedmir
2
3K
Member Avatar for arun.gtm11

> i want to make a new sheet one each button click in excel Can you clarify this a little please? is the button on an spread sheet or on the C# WinForm?

Member Avatar for jackflint
0
4K
Member Avatar for Reverend Jim

Los Angeles’ full name is “El Pueblo de Nuestra Senora la Reina de los Angeles de Porciuncula”.

Member Avatar for John_smith
10
21K
Member Avatar for ss125
Member Avatar for ChrisHunter

I'm currently doing some encoding work to protect a site from XSS attacks. We've stuck a bunch of `<script>debugger;</script>` tags in the db. Dispite my best efforts, the strings I've encoded to stop the debugger getting hit (to prevent an XSS attack), are still getting hit in developer tools. Is …

Member Avatar for ChrisHunter
0
840
Member Avatar for amacss

I'll get this one in there first... DaniWeb is great for learning C#. If you have any questions people will answer and there's quite a few helpful code snippets. I used to use [C-SharpCorner](http://www.c-sharpcorner.com/code/) when I was at Uni and there's also a site, called [Pluralsight](http://www.pluralsight.com/), which is useful when …

Member Avatar for ddanbe
0
303
Member Avatar for vegaseat

Plenty of hail stone showers, rain, wind and cold temp today. Temp has dropped quite a bit lately. Pales in comparison to the Philippines at the moment though so I count myself lucky.

Member Avatar for ddanbe
3
570
Member Avatar for smartjugal

I agree with riteshbest make sure you don't jump into it all head first so as not to confuse yourself early on. although i said don't jump in head first a few books are: Head first C# Object orientated programming consepts and design (good idea to understand the consepts too)

Member Avatar for TekknoDraykko
0
331
Member Avatar for Taufique111

Apologies but I don't fully understand your question. When you click a row in the first dataGridView, do you want to select that same row in the second dataGridView?.

Member Avatar for Taufique111
0
311
Member Avatar for aditya55

Hi Kiran, You should start a new thread for your question. You may receive more responces if you do.

Member Avatar for ChrisHunter
0
566
Member Avatar for hastings

Are you just trying to set the value to blank? If so just do textBox.Text = string.Empty;

Member Avatar for Fenrir()
0
106
Member Avatar for Lethugs

Why don't you create a stored procedure to search for a record based on an ID passed in from the data grid view, instead of doing the query in your VB code? It means all your stored procedures are in one place and have can be easily identified and modified. …

Member Avatar for Lethugs
0
269
Member Avatar for abelLazm
Member Avatar for James_40
8
9K
Member Avatar for stultuske
Re: Knee

I had good knees until I had a scooter accident about 8 years ago and they've been weak ever since. They usually give in every 12 months or so and it's back to limping around with knees the size of foot a ball. I'd take anyother joint pain over knee …

Member Avatar for Warrens80
0
170
Member Avatar for rony001

Try this: UPDATE table1 t1 SET table2.b = t1.b WHERE t1.a = table2.a Let me know if this works or not.

Member Avatar for isozworld
0
285
Member Avatar for kidkardel

It's because you trying to put a string, descd.Text, into your decimal parameter without converting it. `Convert.ToDecimal(descd.Text);`

Member Avatar for isozworld
0
205
Member Avatar for iConqueror

Google is your friend... http://msdn.microsoft.com/en-GB/library/ms173156.aspx http://www.csharp-station.com/Tutorial/CSharp/lesson13 http://www.dotnetperls.com/interface

Member Avatar for llgms
0
274
Member Avatar for awesomelemonade

Refraction of light through particles in the earths atmosphere, that's not really a stupid question that gets a stupid answer. What was the last war Napoleon Bonaparte fought before his death in 1821 ?

Member Avatar for Slavi
1
2K
Member Avatar for Warrens80

Ford Focus Zetec 1.6 for the last 4 years which I'm selling because I don't use it much anymore :( I now ride a Suzuki SV650 SK8 in blue which is why I don't use my car anymore. Always wanted a bike, even over a car, I can't get enough …

Member Avatar for Slavi
1
398
Member Avatar for Louis4christ

From what I've just read you might need to intall the version of .NET framework you used to build your application, on the machine you've installed it on as it may not already be installed.

Member Avatar for javed.iqbal.3979
0
225
Member Avatar for oussama_1

Eating while typing is one of my worst but biting the inside of my mouth while I'm coding is the wors. I look like I'm praticing for a gurning competition and it hurts like hell by the time I'm finished!

Member Avatar for Warrens80
1
367
Member Avatar for mattster
Member Avatar for Sizwe_1

Use a JOIN clause to join information from more than one table. This should show all rooms that are available on the specified dates. SELECT r.RoomID, r.RoomNumber, r.RoomType, r.PricePerNight, b.CheckIn, b.CheckOut FROM Rooms r LEFT JOIN Bookings b on b.RoomID = r.RoomID WHERE (Convert(datetime, b.CheckIn, 103) NOT BETWEEN Convert(datetime, @CheckInDate, …

Member Avatar for ChrisHunter
0
244
Member Avatar for lilita

Replace `saveFileDialog1.Close();` with `Application.Exit();` saveFileDialog1.Close(); terminates the application

Member Avatar for ChrisHunter
0
163
Member Avatar for lilita

Try something like the following int number if (int.TryParse(textBox1.Text, out number)) { // value is valid whole number. } else { // value is not a valid whole number. }

Member Avatar for ChrisHunter
0
158
Member Avatar for happygeek

Mine is more stubble than a beard. I trim it every week and haven't clean shaved in about 4 years but still can't get it to join fully on the right side!. Since sporting the stubble at 21 I've had a maid at a hotel said "my son is his …

Member Avatar for DistantGalaxy
1
520
Member Avatar for Santanu Das
Member Avatar for strRusty_gal

Can you not just return an empty string? You could always throw an exception. It's not recommended but it's an option.

Member Avatar for strRusty_gal
0
181
Member Avatar for KezLovesYou

Explain your situation to your tutor/ lecturer as soon as possible. They may give you more time considering the circumstances. Also there are quite a lot of link in the sticky posts at the top of the C# forum that will help you out.

Member Avatar for humorousone
0
221
Member Avatar for dd2308

Hi dd2308, What do you mean by the code doesn't work when you put it in the form load event, does it give you an error?

Member Avatar for ChrisHunter
0
762
Member Avatar for Nishant80

It's because your application is trying to connect to a database that doesn't exist. You need to set up a connection, from the other machine, to the database for it to work.

Member Avatar for cgeier
0
283
Member Avatar for someoneelse

What does the error message say? If they're on the same server you just have to put the name of the database before the schema and table names. For example: SELECT * FROM Database1.dbo.Table1 db1t INNER JOIN Database2.dbo.Table2 db2t ON db1t.ID = db2t.ID You should also list the specific fields …

Member Avatar for kgariando
0
234
Member Avatar for ahmedsa

In you stored procedure, define the datetime variables to default to null values like this: @StartDate datetime = null, @EndDate datetime = null This will let you pass null values into your stored proc. At the moment you convert your datetime variables to a varchar which means they're no longer …

Member Avatar for ChrisHunter
0
197
Member Avatar for ahmedsa

If you're writing the stored proc within the C# code us double quotation marks instead of single when you're writing the SQL string. Single quotation marks are used define chars in SQL so it might be trying to pass in the charactors @StartDate ranter than a datetime. Or have you …

Member Avatar for ChrisHunter
0
253
Member Avatar for abdelrahman.etry

You can always convert the word entered by the user into to a char array and take the charactor in the first index Something like: Char[] charactorArray1 = textBox1.ToCharArray(); string newString = charactorArray[0].ToString(); Char[] charactorArray2 = textBox2.ToCharArray(); string newString = newString + charactorArray2[0].ToString(); Char[] charactorArray3 = textBox3.ToCharArray(); string newString = …

Member Avatar for PoorRogue
0
154
Member Avatar for abelingaw

As Fenrir() said you should generate the ID in within your database. If you generate the ID within your application you risk generating duplicate IDs which will cause errors. You should make the ID the primary key for in a table because it is be the unique identifier for each …

Member Avatar for pritaeas
0
638
Member Avatar for Aiswarya_1

If you want to delete the recipe from the favourites all together you could do the following **You need 3 tables:** * **UserTable** * UserID (primary key) * **RecipeTable** * RecipeID (primary key) * **FavouritesTable** * FavouritesID (primary key) * UserID (foreign key) * RecipeID (foreign key) **You'll also need …

Member Avatar for kaustavbanerjee
0
201
Member Avatar for iConqueror

Try using `While (True)`. It should to infinite loop until the user closes the application.

Member Avatar for JOSheaIV
0
352
Member Avatar for <M/>

My brother had an S4 and he had a problem with the battery swelling up and not charging properly/ loosing charge quickly. Turned out to be a know fault and they replaced it so do a few searches to see if it's a known fault. Hopefully they might replace the …

Member Avatar for Kelly Burby
0
292
Member Avatar for Prasadd

Edit: This thread was near the top of the list because it had been resurected by another user. I need to look before I comment

Member Avatar for ChrisHunter
0
194
Member Avatar for Muhammad Saqib

You need to bind the DataGridView to a data source [Have a look at this tutorial](http://www.codeproject.com/Articles/24656/A-Detailed-Data-Binding-Tutorial)

Member Avatar for deceptikon
0
286
Member Avatar for Jack_9

Apparently it's easier to learn C# if you already know Java, than it is to learn Java if you already know C#. I've been told it's because C# is a younger language so it was created to close to be a slightly higher level language than Java. I don't know …

Member Avatar for ChrisHunter
-1
241
Member Avatar for ChrisHunter

What is the best way to get the object, within a list of that object type, that has the highest ID number? I've been trying to figure it out and I can manage to get the highest ID number but not the object containing that ID number. Any help would …

Member Avatar for Ketsuekiame
0
241
Member Avatar for iConqueror

Take it from one of the slowest learners in history, you **CAN** make a career out of it. You just have to want it enough and don't expect to be a top dev straight away. Plenty of vets in the industry will tell you they still don't know everything. I …

Member Avatar for clhamon
0
195
Member Avatar for iConqueror

Unless human1 and human2 will never be used outside of MakeReference() you should define them outside of the method: public class myHuman { string name; int age; } public class myClass { public myHuman person1; public myHuman person2; public void MakeReference() { person1 = new myHuman(); person1.name = John Key; …

Member Avatar for ChrisHunter
0
134

The End.