185 Discussion / Question Topics

Remove Filter
Member Avatar for zachattack05

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 …

Member Avatar for skatamatic
0
158
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

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 …

Member Avatar for darkagn
0
147
Member Avatar for zachattack05

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

Member Avatar for pritaeas
2
140
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
102
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

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 …

Member Avatar for Mitja Bonca
0
152
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
141
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

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 …

Member Avatar for zachattack05
0
113
Member Avatar for zachattack05

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 …

0
65
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

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 …

Member Avatar for zachattack05
0
524
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 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, …

Member Avatar for zachattack05
0
303
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

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 …

Member Avatar for phoenix911
0
172
Member Avatar for zachattack05

I'm having a problem with using the table adapters to accomplish this and was wondering if someone might know of something I could be doing wrong. The scenario is this: Adding a new record to the underlying SQL database in this case requires that both a record exist in TableA …

Member Avatar for zachattack05
0
174
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
Member Avatar for zachattack05

Can this be done? I know you can databind to form controls, but what about object properties? For example, I have a form that has two functions, to edit a record and to create a new record, but the problem is that in order to create a new record you …

Member Avatar for jbisono
0
94
Member Avatar for zachattack05

How do you personally organize your methods, event handlers (kinda the same), properties etc... in your classes? I've been grouping things by type using regions and then alphabetizing them within the regions, but I was just wondering what other people do if there is a standard?

Member Avatar for zachattack05
0
138
Member Avatar for zachattack05

I have an issue where two text labels are on the same horizontal line on a form. The label to the left expands to the right and down and is anchored to the bottom left of the form. The label on the right is anchored to the bottom right of …

Member Avatar for Momerath
0
559
Member Avatar for zachattack05

Any idea how to determine if the vertical scroll bar is active in a multiline textbox? Active as in, the user can click the arrows and the text is long enough to scroll. Similiar to being enabled/disabled? I'm trying to have a mouse event so when the user moves their …

Member Avatar for zachattack05
0
1K
Member Avatar for zachattack05

Doesn't appear that a radio button has a value property other than true/false so I was hoping someone could help me out with this one. I'm writing a method applied to the "CheckedChanged" event. The method is applied to all of the radio buttons, so it always triggers regardless of …

Member Avatar for zachattack05
0
214
Member Avatar for zachattack05

I've done some research and it appears that Windows 7 is about tied with Windows XP users as far as current popularity (Vista seems to be a flop). My MSDN subscription includes access to multiple builds of various operating systems for "free" for development purposes. If my project is developed, …

Member Avatar for zachattack05
0
121
Member Avatar for zachattack05

The project I have been working on and seeking advice on from this forum for over a year is approaching it's final steps. All that really remains is arranging the controls on the forms into a layout that is both functional and "pretty" (and getting a nice bottle of champagne …

Member Avatar for pritaeas
0
114
Member Avatar for zachattack05

I have a databound listbox. The data source also has a bit field associated with it, I would like for listbox items that have a bit field value of 1 (true) to show bold and the rest to remain non-bold. Any idea how this can be done or is it …

Member Avatar for zachattack05
0
91
Member Avatar for zachattack05

Not sure how to do this one... I have a combobox that is bound to a datasource and I would like to add a entry to the tail end of the combobox that says "<Add New Item>" which, when clicked opens a wizard that will allow the user to add …

Member Avatar for zachattack05
0
179
Member Avatar for zachattack05

I'm looking for suggestions on the best, and easiest way to install a Windows OS (in this case, XP, Vista and 7) on a hard drive, install my app., test it, make changes and then reinstall my app with a clean copy of the OS? Instead of sitting around going …

Member Avatar for Ketsuekiame
0
114
Member Avatar for zachattack05

OK so I have a decent database that I have set up with all the correct tables and relationships, but now I have another issue, and that is distributing it. I don't know how to achieve what I am after. I know how to install SQL Server Express during my …

Member Avatar for zachattack05
0
126

The End.