Posts
 
Reputation
Joined
Last Seen
Ranked #377
Strength to Increase Rep
+8
Strength to Decrease Rep
-2
97% Quality Score
Upvotes Received
30
Posts with Upvotes
29
Upvoting Members
18
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
13 Commented Posts
~123.61K People Reached
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…
Favorite Tags
xml x 35
c# x 26
mssql x 14
sql x 10

249 Posted Topics

Member Avatar for zachattack05

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 …

Member Avatar for tinstaafl
0
4K
Member Avatar for zachattack05

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 …

Member Avatar for Reverend Jim
0
593
Member Avatar for Brian_22

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 …

Member Avatar for rubberman
0
541
Member Avatar for zachattack05

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

Member Avatar for Dani
0
662
Member Avatar for zachattack05

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 …

Member Avatar for rproffitt
0
533
Member Avatar for zachattack05

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 …

Member Avatar for rproffitt
0
588
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
337
Member Avatar for zachattack05

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 …

Member Avatar for RudyM
0
291
Member Avatar for zachattack05

On our site we have a "News and Information" section at the top of our landing page. Right now it looks like this: ![news.PNG](/attachments/large/2/edb1aaabb260ba04b597c3a2f4a351b3.PNG "align-center") 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 …

Member Avatar for zachattack05
0
522
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
450
Member Avatar for zachattack05

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 …

Member Avatar for ddanbe
0
298
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
322
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
311
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
221
Member Avatar for zachattack05

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 …

Member Avatar for JOSheaIV
0
573
Member Avatar for zachattack05

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 …

Member Avatar for diafol
0
220
Member Avatar for zachattack05

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) ![editor.PNG](/attachments/large/2/61f8ecd049dad3f28df2d6d98b522b69.PNG "align-center") When a user attempts …

0
168
Member Avatar for zachattack05

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 …

Member Avatar for Dani
0
910
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
419
Member Avatar for Jazerix

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 …

Member Avatar for hunny1
0
9K
Member Avatar for zachattack05

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 …

Member Avatar for pritaeas
0
206
Member Avatar for zachattack05

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

Member Avatar for pritaeas
0
255
Member Avatar for zachattack05

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 …

Member Avatar for RichardGalaviz
1
454
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
190
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
447
Member Avatar for zachattack05

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

Member Avatar for zachattack05
0
228
Member Avatar for zachattack05

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

Member Avatar for zachattack05
0
258
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
256
Member Avatar for zachattack05

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 …

Member Avatar for sinhaksaurabh
0
165
Member Avatar for zachattack05

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? ![2f9411f0a0998da1589835c36807a955](/attachments/small/2/2f9411f0a0998da1589835c36807a955.PNG …

Member Avatar for Momerath
0
274
Member Avatar for zachattack05

So I was playing around with Visual Studio 2010 and when I removed the Application.EnableVisualStyles() 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 …

Member Avatar for zachattack05
0
192
Member Avatar for zachattack05

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

Member Avatar for zachattack05
0
139
Member Avatar for vishalonne

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 …

Member Avatar for tinstaafl
0
216
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
267
Member Avatar for zachattack05

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 …

Member Avatar for Ketsuekiame
0
216
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
146
Member Avatar for ירון

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 …

Member Avatar for ירון
0
500
Member Avatar for zachattack05

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

Member Avatar for zachattack05
0
212
Member Avatar for WDrago

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.

Member Avatar for Ketsuekiame
0
205
Member Avatar for maurices5000

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 …

Member Avatar for zachattack05
0
361
Member Avatar for silvercats

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 …

Member Avatar for zachattack05
0
253
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
6K
Member Avatar for zachattack05

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

Member Avatar for reshea1950
0
151
Member Avatar for SQLpower
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
141
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
214
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
103
Member Avatar for disjes

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 …

Member Avatar for disjes
0
154
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
215
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
702

The End.