249 Posted Topics
If anyone wants to share who you voted for and your predictions, you can fill my survey out anonymously here: https://docs.google.com/spreadsheet/viewform?formkey=dDBJQlRSWlUyeXdsLXUzNk90MDg5dFE6MQ#gid=0 | |
If anyone is bored and want's to spend a few moment's filling out a survey on programming languages, I am collecting responses on one [here](https://docs.google.com/spreadsheet/viewform?formkey=dFFWU2s1cWQ1bXVvNUI4VEVrOGp6REE6MQ). | |
Re: I must respectfully disagree with rubberman. While it might take some effort to write a useful algorythm for licensing, you can do it, and you can do it effectively with some practice. I agree that software which thinks I have an invalid license when I do not would be annoying … | |
The application I am working on uses SQL to store data. Most of the data is fine the way it is, but one of the tables contains information that would be very tempting for some users to alter. My original plans were to have the application check the identity column … | |
Re: You need to do it again in ASP then. Some of the code might be reusable to speed it up, but a web server can't run a winforms app in a browser. Unless your asking something different, you would need to make the application twice. | |
Re: The program you installed on the other computer doesnt have ACE OLEDB 12.0. You can fix it by installing http://www.microsoft.com/en-us/download/details.aspx?id=13255 on the computer you installed your program on. That *should* fix it, barring no other odd issues. Cheers! | |
Just came across [this](http://www.faqs.org/rfcs/rfc2821.html) (RFC2821) and in section 4.5.3.1 (Size limits and minimums) it states (emphasis added): > There are several objects that have required minimum/maximum sizes[...] > **local-part** > *The maximum total length of a user name or other local-part is 64 characters.* > > **domain** > *The maximum … | |
Re: > Also who here didn't want to make a game. I didn't, still don't. :) But in all seriousness, I did read your post and while I personally would be unable to help as I am working on a proprietary project already, I thought I would give my 2 cents … | |
Hello again everyone! I've been away for a while, but I've started working again and have a question I am hoping someone might be able to provide some feedback on. I have a SQL database that has many relationships that utilize surrogate keys. These relationships (some of them) have cascading … | |
I have a listbox that has a context menu that goes with it. The context menu has 3 options on it following the basic "Create new...", "Edit selected..." and "Remove selected..." style. The rule is that at least one item must be in the listbox at all times, the user … | |
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? | |
 I was tired of always looking for a way to underline labels like in Windows property dialogs. I created this little control that allows you to set a two-tone line above, below behind or in front of a label (even through it!) to solve that problem. The image … | |
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 … | |
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 … | |
I don't work with ASPX or whatever it is now very much at all. I work with WinForms and DLLs most of the time, but I was asked by a client to make a portion of an application available online so that their clients can access certain information without calling … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
So I'm working on this CheckListBox and would like to override the Add() method which adds a new item to the checklistbox, but, the method is not a CheckListBox method, it's a method in the CheckListBox's ObjectCollection. So, two questions: 1. Can this method be overriden from within a control … | |
Dunno if anyone knows about this comic but it is hillarious and highly recommend it for a good laugh. It's written by a former NASA employee. Here are a few of my favorates (it's licensed under the CCL so the images are cool) you can read it at [XKCD.com](http://www.xkcd.com/) : … | |
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 … | |
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 … | |
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 … | |
I've been reading about various methods of how to do this, but I wanted to ask if something will work or not and was hoping someone could be kind enough to test this out for me. I do not have an email client (Outlook etc...) and just use Gmail. If … | |
I have a few code files that are rather large in length. The one I have open right now is approaching 750 lines and is growing quickly. I'd rather not split the class among multiple files, doing that just makes me nuts (even when VS puts the control declarations in … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Is it possible to transform a label's ellipsis text based on the text displayed on the screen? For example, if the labels text is constructed from multiple strings and only 2 of the 5 are displayed, can the ellipsis text display "...and 3 others" or something like that? I have … | |
I was hoping someone might be kind enough to throw some advice my way on this one. I am using stored procedures to perform many of the queries for my application. One of the reasons I chose stored procedures was for security. Because I would like to make the application … | |
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: … | |
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 … | |
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 … | |
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 … | |
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 … | |
I have searched high and low for an answer to this question and the answers I have found don't generally apply to what I am looking at and was hoping someone might have some suggestions. I have a form that is bound to a dataset that retrieves its data from … | |
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 … | |
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 … | |
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 … | |
I have a Bit field (On/Off; True/False) that I would like to bind to a label and ComboBox, but I can't figure out how to have them display anything other than True or False. I'd like something like "Secure" "Unsecure" or "Male" "Female" but the text "Secure" corresponds to say, … | |
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 … | |
Long time no post! I hope everyone's well! I'd appreciate some input here on this one... I still, even after reading the MSDN documentation on the Listbox and ListControls, have no clue what exactly these properties are for. I'm assuming the SelectedValue property, when accessed, returns the "value" of the … |
The End.