111 Solved Topics

Remove Filter
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

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
451
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

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

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 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 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
229
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
217
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 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 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 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
Member Avatar for zachattack05

Is there a way to set the default properties for a control? Specifically labels so that the margins are all 3 like text boxes? Any ideas?

Member Avatar for zachattack05
0
95
Member Avatar for zachattack05

I need to retrieve the major and minor version of the application, and instead of instantiating a new Version class with `new Version(Application.ProductVersion);` is there a static copy of the Version class that already exists? If so, I can't find it, can someone point me in that direction, or is …

Member Avatar for zachattack05
0
130
Member Avatar for zachattack05

I need an array for a method to use to iterate through a string's characters and perform certain operations when one is found or found in certain combinations. Anyway, to keep things separate and easier to interpret later, I have created an array of characters for the method to iterate …

Member Avatar for zachattack05
0
115
Member Avatar for zachattack05

I'm working on a method that will save checkstates to a SQL server and something occured to me and I thought I would ask if there is a simpler way of doing this. If I have a single parameter, for example an initial checkstate, and an if...else statement is supposed …

Member Avatar for zachattack05
0
176
Member Avatar for zachattack05

So if I have 3 stored procedures that act on a single table (or multiple tables for that matter), is it acceptable to combine them since they are related on some level and then using a switch or if statement to determine which "procedure" to actually run? As a simplistic …

Member Avatar for zachattack05
0
138
Member Avatar for zachattack05

I have a checklistbox that I have been working on and I need to commit the changes made to those checkstates to a sql table, removing rows where the checkbox is not checked and adding rows where the checkbox is checked (assuming the checkstate actually changed). Instead of doing a …

Member Avatar for zachattack05
0
208
Member Avatar for zachattack05

Is this possible? I am trying to modify how the CheckListBox works when a user clicks on an item. By default there are two options. One requires the user to "select" the item first and then they can check it, meaning 2 clicks. The other is they click the item …

Member Avatar for zachattack05
0
124
Member Avatar for zachattack05

I have a custom control that derives directly from CheckedListBox. If the CheckedListBox subscribes to its own event (ItemCheck for example) and the user of the control also subscribes to it, does the control's event trigger first before the user's? I read on MSDN that if multiple subscribers subscribe to …

Member Avatar for zachattack05
0
180
Member Avatar for zachattack05

I'm working on a databound CheckListBox and things are going well, but the name I chose for it is bugging me. Because the control CheckListBox already exists, I didn't want to name it that, and instead chose P_CheckListBox (the P represents the first letter of the company name) and is …

Member Avatar for zachattack05
0
126
Member Avatar for zachattack05

I was thinking that in the future I might be updating some of my class libraries and when I do that, it might be useful to keep old classes, namespaces and objects in the updates just for backwards compatability. I was wondering what you guys and gals thought of naming …

Member Avatar for zachattack05
0
103
Member Avatar for zachattack05

I can't seem to wrap my brain around this one and would really appreciate it if someone has some suggestions! :) I have two tables, one contains a list of locations (AccountLocations), another a list of contacts that belong to those locations (AccountContacts). What I would like to do is …

Member Avatar for zachattack05
0
206
Member Avatar for zachattack05

Was writing a new method to open a custom dialog box I created, and realized that the other method I wrote to open another custom dialog had the same name as the object representing it, but there was no error? This is what I mean: Originally the code read: Dialogs.Accounts.NewLocation …

Member Avatar for zachattack05
0
127
Member Avatar for zachattack05

It just occured to me that when I go to create a new SQL query using VS's query builder, it pre-fills in a query based on the datatable I am building the query with. Normally I just delete the standard query (unless it's sufficient) and write my own, but this …

Member Avatar for zachattack05
0
107
Member Avatar for zachattack05

I'm sure I know the answer to this, but I just want to double check because I'm doing some debugging and I want to rule this out. If I set the value of a variable with something like [ICODE]bool MyValue = MyMethod();[/ICODE] and initially the return value of MyMethod is …

Member Avatar for zachattack05
0
143
Member Avatar for zachattack05

Greets again! I am working on a project and have some controls that I have created, and even some full namespaces that I think would be very useful to other projects I am working on and possibly future ones. I'm considering pulling the code for those namespaces/controls out of the …

Member Avatar for zachattack05
0
136
Member Avatar for zachattack05

So the question is, if I am instantiating a control for use on a form (or any object really) at what point is the object and it's properties/methods considered loaded into memory? The reason why I ask is because evidently when I instantiate my custom controls, but before adding them …

Member Avatar for zachattack05
0
125
Member Avatar for zachattack05

Hi again! I was hoping someone would be kind enough to throw some advice my way here. I'm working on an application (still) that I would like to provide "Wizards" in. I have a general idea of how I would like to implement something like this, but staying in line …

Member Avatar for zachattack05
0
84
Member Avatar for zachattack05

This is a two part question I guess. I have a form that allows a user to edit an existing record stored in a SQL database. One of the items the users can edit must have a value when the record is edited using this particular form, but it does …

Member Avatar for zachattack05
0
589
Member Avatar for zachattack05

I'm writing my own validation code for some of my forms and I'm wondering what the best way to indicate that there is a problem is. Some ideas I've had: [LIST] [*]Highlight the textboxes, checkboxes or controls in red if they have an error. [*]Put a small icon inside or …

Member Avatar for zachattack05
0
181
Member Avatar for zachattack05

I have a method that has 3 overrides, but calling the method outside of a "parent" override (one that accepts no parameters) is useless. Other than a xml comment indicating this, is there an attribute that I can use to mark the method as such? Some additional information if needed: …

Member Avatar for zachattack05
0
158
Member Avatar for zachattack05

I have 7 different bindingsources on a form right now and I have a "cancel" button to allow a user to reject the changes they made and revert back to the original data in the dataset. Instead of having my cancel button click event call something like: [CODE=C#] private void …

Member Avatar for zachattack05
0
642
Member Avatar for zachattack05

If I have a DataRow list and use a foreach statement to create a string containing information in a list format and I want the last item in the list to be preceded by the string " and " how could I accomplish this within the foreach statement or is …

Member Avatar for zachattack05
0
119
Member Avatar for zachattack05

Quick question. A few of the commercial/closed source applications I use contain an external exception handler or crash catcher and I am wondering if anyone has ever implemented something like this and would be willing to discuss the use of such a method of exception handling? Basically the way it …

Member Avatar for Philippe.Lahaie
0
247
Member Avatar for zachattack05

Simple question: is it a performance issue or bad form to have if statements without a else following? As an example, an event that is triggered when a listbox selected index changes depends on the selected index value to run, and during the change, the value switches from some integer …

Member Avatar for zachattack05
0
1K
Member Avatar for zachattack05

So, the question is, if I have a table on a SQL server with 20 columns, and I need to retrieve just 4 columns for a form, and I am using stored procedures to do most of my queries, should I create a stored procedure to retrieve just the 4 …

Member Avatar for zachattack05
0
155
Member Avatar for zachattack05

I have a databound combobox and I need to get all of the ValueMember values from each item in the combobox. I'd prefer to not change the selected item in the combobox to do this, since each time the item in the combobox changes a few events are triggered that …

Member Avatar for zachattack05
0
109
Member Avatar for zachattack05

I'm lost on this one. I've got 3 tables involved here. An Accounts table, AccountsContacts table and a Contacts table. The AccountsContacts is a junction table between the two. The key columns for the tables are: Accounts: ID AccountsContacts: AccountID, ContactID Contacts: ID I need a way to select from …

Member Avatar for zachattack05
0
2K
Member Avatar for zachattack05

I'm curious about something. If I have a listbox that is databound and a filter is applied to that listbox based on the value in a combobox, what would be the best way to handle the null reference exception thrown when the form loads or the filter changes and everything …

Member Avatar for thines01
0
85
Member Avatar for zachattack05

Thanks to Antenka I have located the HTML Help Workshop to create a Help system for my software. Problem: writing HTML code is a heck of a lot more tiring than I expected. Does anyone know of a WYSIWYG HTML editor that only does the basics (fonts, tables, images etc...) …

Member Avatar for Cap'nKirk
0
99
Member Avatar for zachattack05

Does anyone have a link to a good article or guide on creating help files that work with Windows XP, Vista and 7? I've used a program in the past to create help files, but it was a demo product and quite costly (and if I recall poorly supported). I …

Member Avatar for Mirfath
0
126
Member Avatar for zachattack05

I'm working on a custom textbox control that can "filter" out inappropriate input. The filter property can be: None, Numerical, LowerAlpha, UpperAlpha, Alpha, AlphaNumeric, Symbol None would function like a normal textbox Numerical would be any number key (1,2,3...) LowerAlpha would be any alphabet character as long as it is …

Member Avatar for zachattack05
0
235

The End.