- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 30
- Posts with Upvotes
- 29
- Upvoting Members
- 18
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
- Interests
- Home brewing beer, programming goofy things for fun, building computers, Star Wars movies, www.xkcd.com,…
- PC Specs
- Intel DH77KC board with i7-3770 @ 3.4 (Hyper-V enabled 8 cores), 16 GB DDR3 RAM @ 1600MHz, NVIDIA GeForce…
249 Posted Topics
I have a string representing a date time, and a datetime local variable property. The string representing the datetime could be null or an empty string. To check for this, I thought I could check for a null or whitespace value and assign the appropriate value using this code: ReturnValue.ArrivalDate … | |
I'm not sure if this is the right forum to ask this in, sorry if it isn't. It's been a while since I've been to this site. We have a MS SQL database that contains a table with some columns that are no longer used (or shouldn't be). The data … | |
Re: The % simply returns the remainder of the division of the first and second number. So if i = 25, then 25 % 2 would return 5, which doesn't meet either of your if statements. Change your code to this: Console.WriteLine(""); Console.WriteLine("Problem #3 For loop - Add Up the Odds … | |
I am working on a table that will hold batch data. The table will have a BatchDate column as a DateTime type. I'm considering adding a column for BatchYear as an integer and BatchPeriod (which could be a week number, a month number or a quarter number) as an integer, … | |
I've asked this on SO *AND* Reddit without so much as a peep...was hoping DW would turn up the answer! I have an ascx user control that has a custom event added to it. I can get the event to work without problem, but the event doesn't show up in … | |
The Membership table for our ASP.NET site has the encrypted passwords and password salts stored when a user logs in. The site is already served over an HTTPS connection, but we would like to give our clients the ability to download and save certain files and documents. We would like … | |
Hi everyone! I am in major need of some help here and before I go off and write a SP to handle this for me, I though I would ask here for advice first. I am writing a report to display on our asp.net site using the ReportViewer component and … | |
Hi everyone! So we have a web application that some of our clients use to manage their account. Part of that means they can manage activities that their registered employees do. Right now we have a table that logs all of a customer's employees activities, even if they don't use … ![]() | |
On our site we have a "News and Information" section at the top of our landing page. Right now it looks like this:  I'd like to change this to look something like the image below, but I'm having a hard time figuring out how to do this, or … | |
Good afternoon everyone! I'm running into a small snag and it could just be because it's late and I'm not thinking clearly. I have an ASP Panel that is an alert box. The panel's initial visible property is set to false and should only be set to true when specific … | |
If I implement an abstract class that contains this method: private void MyMethod(string awesomeParameter, int aBigNumber) { // something cool happens here! throw new NotImplementedException(); } can I change it to this without breaking the implementation? private void MyMethod(string myParam, int myInt) { // something cool happens here! throw new … | |
I am writing a custom MembershipProvider for ASP.NET and would like to record certain events in a table when they happen. I have the methods to do it, but I would like to get the value of the "ID" column of the row I insert into the table. I have … | |
Forgive me, but I've only really used WinForms in the past, and MVVM and WPF are new to me. For those who use MVVM with WPF, do you actually make separate directories (namespaces) for your Models, Views and ViewModels files or is it more of an abstract idea? I fundamentally … | |
I am starting a new application for our business to help maintain our client information, so it is going to be a very data driven application. I'm curious, from the standpoint of those who have used both and who may have constructive suggestions on the future direction of development, should … | |
Just a question on preference: Given a method that returns a boolean value, how would you write an If statement to check the return value of it? Like this? private bool MyMethod() { // doing stuff } private void OtherMethod() { If (MyMethod() == true) { // do stuff if … | |
I know the site switched to a tag system, and while I personally don't care for it, I like the community too much to find an alternative. Since I really only post to a single "tag" group, is it possible for people to have a favorite tags list we can … ![]() | |
Good afternoon fine DaniWeb folks! I am about to pull my hair out on this one and I'd like to know if someone knows of a simple or obvious "gotcha!" for this problem. I've got a form with some detail fields on it (below)  When a user attempts … | |
I would like to see a forum dedicated to UX/UI design. I know that a good application or website performs its job exceptionally well and the look and feel of the application doesn't affect, or shouldn't affect it's performance. But come on! It does. UX/UI design is more than just … | |
I am trying to programatically create and dispose of file system watchers, but I am running into an issue when trying to dispose of them. When I try to use the code: // dispose of any existing watchers. foreach (FileSystemWatcher fileWatcher in this.Controls) { fileWatcher.Dispose(); } I am receiving a … | |
Re: jazerix is 56 bits, because each character in your string is 1 byte, or 8 bits. 7 * 8 = 56 :) Just make your key longer or if the user can enter the key themselves, create a function to either pad the key with a value, or truncate the … | |
I'd like to suggest a forum category for Azure development. Many of the concepts are covered by the topics here, but some are not, such as Azure SQL Database, Virtual Machines and Virtual Networks, Cloud Services, etc... I know that some of those (VMs and VNs notibly) aren't really directly … | |
I'd like to propose that DaniWeb adds a new category of forums for Cloud development. The Software and Web Development might apply, but with the cloud being so versatile, you could technically do either Software or Web work on it. Just throwing that out there :) | |
I'm sorry if this is the wrong place to put this, but since I normally code in C#, and my potential solution would involve using C# I figured this would be the best place to start. I've been given a task at work to allow our customers the ability to … | |
Good morning! I was wondering if anyone could send me in the correct direction to locate documentation on how the Windows Sensor and Location Platform gets its data so that I can have a Windows service that will respond to GPS requests (without actual GPS hardware)? I'd like to have … | |
Good morning everyone! I haven't been here in a while, but I have a question that I thought someone here might be able to help with. When it comes to accessing data from a SQL server, I know the logistics of getting that data through code, no issues there, but … | |
Good afternoon! I seem to disappear from this forum for a while then re-appear...I've been so busy with my first born baby girl that I haven't had time to check my email much less work on any of my projects, but something has come up and I need some input. … | |
So I have a table I am trying to create, but as I am working on this, I am worried that the idea is flawed. Here's the SQL code to create the table so far: CREATE TABLE #ConversionLog ( EventTime DATETIME NULL, EventType NVARCHAR(20) NULL, RecordID INT NULL, EventTarget NVARCHAR(255) … | |
Good morning strangers! I haven't posted in a while, but you always seem to be helpful... I have an application that uses SQL as a back-end to store data so that multiple users can access it at once. The question I have is, the requirements have changed and the SQL … | |
Good afternoon! I am wondering if there is a way to log queries that have occured on a database or specific table? For example, is it possible to log the user, the query type (insert, update, delete, select, execute etc...), date, time, table, row and column(s) affected by the queries … | |
Out of curiosity, when you start a new solution and you add your first project to it, if it's a window's form application, you get a nice and neat form called "Form1" (how creative!). Do you rename that file? If so, what do you name it? If not, why?  method from the Main() method, I noticed that the controls on the design surface don't change, they maintain their visual style, but when the application is run, it doesn't have the styles. Is there a … | |
There have been a total of 9 different versions of Visual Studio now going all the way back to 1995. My question is for those of you who use Visual Studio, how often have you upgraded your Visual Studio version? Going from 2005 to 2012 for example, not applying updates, … | |
Re: That's the only way to do it as far as I know. You can create just one handler method though and have all the controls subscribe to the same one so you don't have to make 84 handlers. That is assuming they all do the same thing and you can … | |
I am attempting to replicate the grid you see below taken from a popular accounting software program. I'm not after the title bar or any of the other controls, just a data grid view that behaves like the one shown, kinda like a check register. Does anyone know if this … | |
I'm not really sure how to accomplish this task and would like some help with ideas or, if someone knows how to do this, some advice would be greatly appreciated! I am working on a custom usercontrol. The usercontrol has a listbox (or rather it IS a listbox, just docked … | |
Hi everyone! I am working on a custom control, and for the life of me I can't figure this one out. As of right now, all properties for controls that are settable in the editor I use this code: [Browsable(true), Description(""), Category(""), DefaultValue()] I fill in the blanks appropriately, but … | |
Re: Ancient Dragon, the @ translates to literal so that you don't have to escape all escape characters. In other words: `"this is a line\r\l this is a new line"` will print: > this is a line > this is a new line while `@"this is a line\r\l this is a … | |
So I've been thinking about SQL security lately and wanted to see what others are doing. I have been using integrated security (window's authentication), stored procecedures when necessary and have done my best to limit access to tables and those stored procedures with SQL server in conjunction with my application. … | |
Re: Yes, different name spaces in one project are allowed. :) I think of namespaces as a folder tree with each "." defining a new folder. I use them a lot for organizing my code. | |
Re: Hiya! Your catch and/or finally blocks don't return a value. If the try statement throws an exception, and the catch block handles it, it should return a Datatable (or rethrow the exception), in either the catch or finally block. I use the using statement when I have something that doesn't … | |
Re: Yes, What I have done in the past is create a base form that all others will inherit from. Make that form have no border and add my own basic window design. Make sure you add close buttons, minimize and maximize buttons. If you feel creative, add properties to show … | |
I have a DataGridView that contains 3 columns, the first is a drop down and the second and third are textboxes. However, the third one is read-only and is only there to provide information to the user on the item selected from the dropdown column. If the user changes the … | |
I am considering an option for users that will allow them to write their own account numbers or create their own algorythm for creating custom account numbers for customers, but also want an option that will auto-generate them if the user doesn't care by using the identity property in SQL. … | |
| |
In order to show a first run dialog (a window that appears before the main application starts if certain conditions are met) I have decided to modify the Main method and do this: static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); if (Properties.Settings.Default.FirstRun) { Application.Run(new RunOnce()); } Application.Run(new Main()); } Is this … | |
So I downloaded the [Adventureworks 2012 SQL database](http://msftdbprodsamples.codeplex.com/releases/view/55330) to browse hoping to find something interesting and just nearly fell asleep looking at example data when I came across something new or that I at least never noticed before...a field with a data type of "xml(CONTENT Person.AdditionalContactInfoSchemaCollection)" and when viewing the … | |
The question I have involves 3 basic objects, (1)a class that contains methods to serialize and deserialize another class that is then saved to a file on a disk, (2)a class that contains methods and values that is marked serializable and is the class that is serialized to disk and … | |
Re: Try removing the shapes and drawing the shapes using System.Drawing and see if that fixes the problem. I've never used the vbPowerPack stuff so I'm not sure if that could be the cause, but wasn't the vbPowerPack stuff supposed to be used with VB only? I didn't even know it … | |
Silly question I am sure, and I'm almost positive I know the answer to this, but, if I have a static method that has a return type that is a non-static class type, when the static method is executing and after the method has initialized the class to return (but … | |
Greetings again friends! It's been a while since I've visited. I had to take a while off from working because of family issues, but things are getting better and I'm starting to work again and that means I get to come back and exchange Q&A with the best programming web … |
The End.