Click here to Skip to main content
15,921,697 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Form with BackGroundWorkers Pin
Luc Pattyn26-Feb-08 6:09
sitebuilderLuc Pattyn26-Feb-08 6:09 
GeneralRe: Form with BackGroundWorkers Pin
Herman<T>.Instance26-Feb-08 23:01
Herman<T>.Instance26-Feb-08 23:01 
GeneralRe: Form with BackGroundWorkers Pin
Luc Pattyn26-Feb-08 23:50
sitebuilderLuc Pattyn26-Feb-08 23:50 
GeneralRe: Form with BackGroundWorkers [modified] Pin
Herman<T>.Instance27-Feb-08 1:15
Herman<T>.Instance27-Feb-08 1:15 
GeneralRe: Form with BackGroundWorkers Pin
Luc Pattyn27-Feb-08 4:04
sitebuilderLuc Pattyn27-Feb-08 4:04 
Questiondocking and floating window Pin
algates002724-Feb-08 19:28
algates002724-Feb-08 19:28 
GeneralRe: docking and floating window Pin
John_Adams24-Feb-08 22:04
John_Adams24-Feb-08 22:04 
GeneralInherited ComboBox Pin
Brady Kelly23-Feb-08 23:26
Brady Kelly23-Feb-08 23:26 
I'm busy creating an extended ComboBox control, called for now, DropDownList. My reason for the extension is to be able to optionally insert a first item, such as "Add new Customer...", with any data source. I'd like some opinions, please, on how I currently achieve this.

I have a DropDownListItem, which has two properties, ItemType and ItemObject. Then, I hide the base DataSource property, and in its replacement setter, I call a MergeDataSource method. This creates a List<dropdownlistitem>, with one Object type item for each object in the new data source, plus one Prompt type object for the initial "Add new Customer...", and I set the base.DataSource to this new list.

I also hide the Items property, and in the replacement getter, I create a fresh ObjectCollection, but without the prompt items, i.e. only the items from the original data source collection. I see minor potential problems here, as code that expects to manipulate the Items collection will not have access to the actual, current Items collection. However, it is illegal to modify the Items collection while the DataSource property is set anyway. When the DataSource is null, I just return the base.Items property.



GeneralRe: Inherited ComboBox Pin
darkelv24-Feb-08 6:49
darkelv24-Feb-08 6:49 
GeneralRe: Inherited ComboBox Pin
Brady Kelly24-Feb-08 7:19
Brady Kelly24-Feb-08 7:19 
GeneralRe: Inherited ComboBox Pin
Brady Kelly26-Feb-08 1:48
Brady Kelly26-Feb-08 1:48 
GeneralRe: Inherited ComboBox Pin
Ed.Poore24-Feb-08 7:26
Ed.Poore24-Feb-08 7:26 
Generalrichtextboxes Pin
jazy121-Feb-08 21:29
jazy121-Feb-08 21:29 
GeneralRe: richtextboxes Pin
Christian Graus21-Feb-08 23:42
protectorChristian Graus21-Feb-08 23:42 
GeneralRe: richtextboxes [modified] Pin
jazy127-Feb-08 14:36
jazy127-Feb-08 14:36 
GeneralWinforms GUI / Design Guidelines Pin
James Spibey18-Feb-08 5:28
James Spibey18-Feb-08 5:28 
GeneralRe: Winforms GUI / Design Guidelines Pin
Brady Kelly18-Feb-08 6:02
Brady Kelly18-Feb-08 6:02 
GeneralRe: Winforms GUI / Design Guidelines Pin
N a v a n e e t h21-Feb-08 21:50
N a v a n e e t h21-Feb-08 21:50 
GeneralDeselecting ComboBoxes Pin
Brady Kelly18-Feb-08 2:21
Brady Kelly18-Feb-08 2:21 
GeneralRe: Deselecting ComboBoxes Pin
darkelv18-Feb-08 5:16
darkelv18-Feb-08 5:16 
GeneralRe: Deselecting ComboBoxes Pin
Brady Kelly18-Feb-08 5:24
Brady Kelly18-Feb-08 5:24 
GeneralRe: Deselecting ComboBoxes Pin
darkelv18-Feb-08 5:41
darkelv18-Feb-08 5:41 
GeneralRe: Deselecting ComboBoxes Pin
Brady Kelly18-Feb-08 6:00
Brady Kelly18-Feb-08 6:00 
GeneralRe: Deselecting ComboBoxes Pin
Patrick Etc.18-Feb-08 7:30
Patrick Etc.18-Feb-08 7:30 
QuestionHow to create a new text filename if it exists in window forms using C#net Pin
sivaram praveen17-Feb-08 19:59
sivaram praveen17-Feb-08 19:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.