15,910,981 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Stu Baby (Top 30 by date)
Stu Baby
24-Jan-14 21:15pm
View
OK, I did all of what was suggested and Redsharper advised that all of the catch and throw was redundant code that could never be reached, and nothing happened when I ran it either.
Stu Baby
24-Jan-14 21:04pm
View
Leaves the method
Stu Baby
24-Jan-14 21:04pm
View
I haven't NOT set it up to break on Exception Throws, as I don't know where to go to set this either way. But the code continues to run happily, with the 'exception' being the combo box that this populates remaining empty. Though the Sql is sound as running that returns about 6 values. Also, I get PLENTY :) of other exceptions so I assume I haven't done what you are suggesting
Stu Baby
24-Jan-14 20:56pm
View
So a try catch around: var reader = getBrand.ExecuteReader?
Stu Baby
24-Jan-14 20:52pm
View
There is no exception. I'm stepping through the code, it hits the line var reader = etc, and the code exits without returning anything
Stu Baby
24-Jan-14 20:43pm
View
The code does not finish executing, so the List<Brand> is never returned
Stu Baby
24-Jan-14 20:42pm
View
Hi Craig, you've confused me. Isn't that a part of SqlCommand?
Stu Baby
24-Jan-14 20:40pm
View
By exit, I mean leave the code altogether, no exceptions and everything looks fine. If I'm hitting F11, stepping through the code, line by line, it hits the mentioned line and then goes to the form.show that calls this. (This is called from a constructor)
Stu Baby
24-Jan-14 20:38pm
View
Deleted
By exit, I mean leave the code altogether, no exceptions and everything looks fine. If I'm hitting F11, stepping through the code, line by line, it hits the mentioned line and then goes to the form.show that calls this. (This is called from a constructor)
Stu Baby
29-Aug-13 5:45am
View
Thank you Mr Griff
Stu Baby
20-Jun-13 3:35am
View
Are you sure Mahesh? c.ImageLayout highlights when I try this with "Cannot resolve symbol ImageLayout" when I hover over it. ImageLayout is not an option from Intellisense either.
Stu Baby
13-Sep-12 17:51pm
View
Hello Wes, is there an MSN document/webstie or your wisdom that you can direct me to that explains this all to me. Now I've got the debug directory database retaining the data, after closing visual studio and restarting. But then If I want to run a quick query on the data, I have to use a connection to the debug directory as the root directory continues to contain no data. Meanwhile all connections associated with the solution, continue to point to the database in the root directory, which all seems very counter-intuitive. Is this how it is supposed to work?
Stu Baby
13-Sep-12 17:05pm
View
That makes a lot of sense, how do I solve this?
Stu Baby
13-Sep-12 5:40am
View
C:\USERS\DEVELOPMENT\DOCUMENTS\VISUAL STUDIO 2008\PROJECTS\PROJECTA\PROJECTA\PROJECTA.MDF
C:\USERS\DEVELOPMENT\DOCUMENTS\VISUAL STUDIO 2008\PROJECTS\PROJECTA\PROJECTA\BIN\DEBUG\PROJECTA.MDF
These are the two connection properties and I don't see how these could have been mixed up. It's a new project, with nothing else going on
Stu Baby
13-Sep-12 4:58am
View
OK, my computer is still alive, and I've done what you suggested. So am I now doing something wrong in Visual Studio? I also did what the guy in the blog suggested at http://visualstudiomagazine.com/blogs/tool-tracker/2012/05/dealing-with-local-databases-or-why-your-updates-dont-stick.aspx and when I close the application, the data is there in the debug directory database. However, if I close visual studio, it goes away again and I have to start again to put our test data into the table. Is there a setting I'm supposed to activate or something like that?
Stu Baby
13-Sep-12 4:34am
View
Mohamed, thank you so much for your time and effort. I'm so frustrated with what is going on, that i'm going to call it a day for now. I'm new to codeproject, so please advise how I should handle this question as I've spent 20 hours on this now, and I need to stop before I smash my computer. Once again, thank you so much for you efforts.
Stu Baby
13-Sep-12 4:19am
View
I've now successfully run a rebuild, but the same thing is still happening. do I have to do something to make my project "Live"?
Stu Baby
13-Sep-12 4:14am
View
http://visualstudiomagazine.com/blogs/tool-tracker/2012/05/dealing-with-local-databases-or-why-your-updates-dont-stick.aspx
I've just read this online, and now I'm completely confused. I thought I was i a sandbox, so to speak and could do what I want. I really appreciate your time here, and what do you mean by "Check the update solution" part?
Stu Baby
13-Sep-12 3:39am
View
THe code above is the entire project. Beyond this is a dataset, allowing strongly typed entry of ProjectADataSetTableAdapters.tblCurrenciesTableAdapter from the one single table inthe project. I'm trying to re load visual studio 2008, but it's coming up with an error and won't allow me to run a repair/install.
Stu Baby
13-Sep-12 3:20am
View
Yeah, sorry, but I already ahve that. Don't know how I didn't get that in the posting. So does this mean my problem is "Bigger"
Stu Baby
13-Sep-12 2:44am
View
Intellisense doesn't bring up Tables after ds., and typing it in causes an error.
Stu Baby
13-Sep-12 1:18am
View
The tablename doesn't come up with intellisence. I was assuming that this was because there was only one table in the database. If I type in ds.tblCurrencies, then it won't compile, so how do I actually enter what you are suggesting? Thanks for your input.
Stu Baby
13-Aug-12 16:45pm
View
Thanks Christain, most appreciated.
Stu Baby
22-Jun-12 4:36am
View
Thanks Lukeer, your comments and suggestions led me to now fully understand DateTime.tryParseExact which I think is the only way I was going to be able to solve this. My final answer:
<pre>
bool succes = DateTime.TryParseExact(pRow[26].ToString(), "d", new System.Globalization.CultureInfo("en-US"), DateTimeStyles.None , out suppliedDate);
</pre>
Stu Baby
22-Jun-12 4:18am
View
Thanks Lukeer, but this creates the error:
No overload for method 'TryParse' takes '3' arguments.
Stu Baby
22-Jun-12 3:57am
View
Thanks Lukeer, but this is either missing my point, or I'm not making myself clear, to which I apologise. The data is coming from an external source. I know the nationality of where that source is from, but how do I tell the computer that using TryParse?
Stu Baby
22-Jun-12 2:08am
View
I've tried solution 3 with:
string myTime = DateTime.Parse(pRow[26].ToString()).ToString(CultureInfo.GetCultureInfo("en-US").DateTimeFormat.ShortDatePattern);
and I'm still getting
"FormatException was Unhandled" error "String was not recongnized as a valid DateTime". The value of pRow[26] is "7/3-/2008"
Stu Baby
22-Jun-12 1:55am
View
OK, but is there a way I can insert the supplied format? The logical expansion of this then being a way to allow the method to handle any supplier's dates. EG Supplier#1 is French, Supplier #2 is US. The dates themselves DO appear to all be correct, the problem I'm trying to solve is how to tell the computer WHY they are correct. Or am I missing something and this will happen or am I not explaining myself properly.
Stu Baby
13-Jun-12 20:47pm
View
Thanks for the explanation and the link. From the link I fathomed that all I needed to do was change
textBox.Text = value.Date.ToString();
to
textBox.Text = value.Date.ToString("d");
The data is then saved with the midnight seconds, which if I assume is how it will always be, I can then prepare for.
Once again, thanks for your input
Stu Baby
13-Jun-12 1:15am
View
Thank you, really appreciated!!
Show More