Click here to Skip to main content
15,891,136 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: The look and feel of the GUI in the application changes when executing from an MSI file created by Windows Install Pin
led mike17-Jul-08 10:48
led mike17-Jul-08 10:48 
GeneralRe: The look and feel of the GUI in the application changes when executing from an MSI file created by Windows Install Pin
Katalin2118-Jul-08 0:49
Katalin2118-Jul-08 0:49 
GeneralRe: The look and feel of the GUI in the application changes when executing from an MSI file created by Windows Install Pin
led mike18-Jul-08 6:05
led mike18-Jul-08 6:05 
GeneralRe: The look and feel of the GUI in the application changes when executing from an MSI file created by Windows Install Pin
Katalin2121-Jul-08 22:36
Katalin2121-Jul-08 22:36 
GeneralRe: The look and feel of the GUI in the application changes when executing from an MSI file created by Windows Install Pin
led mike23-Jul-08 5:42
led mike23-Jul-08 5:42 
Questionshow loading message Pin
SamRST17-Jul-08 4:04
SamRST17-Jul-08 4:04 
AnswerRe: show loading message Pin
Thomas Stockwell17-Jul-08 4:41
professionalThomas Stockwell17-Jul-08 4:41 
QuestionRepaint custom control when property changes in CollectionEditor Pin
willydemis16-Jul-08 11:39
willydemis16-Jul-08 11:39 
I've created a custom control, and a custom collection. I've also implemented a CollectionEditor so I can add items to the collection at design time.

In the Paint method of my control, I take each item in the collection and paint them much like a ListView in details mode.

My question is this:
When I add a new item to the collection, I need the Paint method to be called. I've found that adding or editing my collection through the CollectionEditor is not causing this to happen. As a reference- if you add an item to a ListView through the CollectionEditor setup for the Items property, you will see that as soon as you edit a property, the listview is updated in Visual Studio's designer. Mine is doing nothing when I edit a value... Does anyone know how the CollectionEditor should notify the control to repaint itself?



I don't think it will help to paste my code here, since this is more of a general question but here is my property with ample opertunity to cause a repaint:
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
[Editor(typeof(AccentListViewItemCollectionEditor), typeof(UITypeEditor))]
[RefreshProperties(RefreshProperties.Repaint)]
public AccentListViewItemCollection Items
{
    get { return _Items; }
    set
    {
        _Items = value;
        pnlContent.Invalidate();
        pnlContent.Update();
        this.Invalidate();
        this.Update();
    }
}



Any advice wold be greatly appreciated! Thanks!
AnswerRe: Repaint custom control when property changes in CollectionEditor Pin
Thomas Stockwell17-Jul-08 2:48
professionalThomas Stockwell17-Jul-08 2:48 
GeneralRe: Repaint custom control when property changes in CollectionEditor Pin
willydemis17-Jul-08 4:01
willydemis17-Jul-08 4:01 
GeneralRe: Repaint custom control when property changes in CollectionEditor Pin
Thomas Stockwell17-Jul-08 4:39
professionalThomas Stockwell17-Jul-08 4:39 
GeneralRe: Repaint custom control when property changes in CollectionEditor Pin
willydemis17-Jul-08 10:29
willydemis17-Jul-08 10:29 
Questionc# for driver level Pin
knmsuman15-Jul-08 5:53
knmsuman15-Jul-08 5:53 
QuestionDataBindingComplete firing on form Visibility change Pin
bigbrownbeaver15-Jul-08 1:55
bigbrownbeaver15-Jul-08 1:55 
AnswerRe: DataBindingComplete firing on form Visibility change Pin
led mike15-Jul-08 5:05
led mike15-Jul-08 5:05 
GeneralRe: DataBindingComplete firing on form Visibility change Pin
bigbrownbeaver15-Jul-08 5:31
bigbrownbeaver15-Jul-08 5:31 
QuestionORA-00936:missing expression Pin
varun_mca_ju14-Jul-08 21:13
varun_mca_ju14-Jul-08 21:13 
QuestionCould not receive Meesages from Socket Pin
HemJoshi14-Jul-08 20:31
HemJoshi14-Jul-08 20:31 
QuestionResize problem with Listbox Pin
emailthiaga14-Jul-08 19:26
emailthiaga14-Jul-08 19:26 
AnswerRe: Resize problem with Listbox Pin
John Ad15-Jul-08 3:18
John Ad15-Jul-08 3:18 
GeneralRe: Resize problem with Listbox Pin
emailthiaga15-Jul-08 4:01
emailthiaga15-Jul-08 4:01 
AnswerRe: Resize problem with Listbox Pin
emailthiaga24-Jul-08 0:05
emailthiaga24-Jul-08 0:05 
AnswerRe: Resize problem with Listbox Pin
darkelv15-Jul-08 23:09
darkelv15-Jul-08 23:09 
AnswerCross Post Pin
Thomas Stockwell16-Jul-08 5:10
professionalThomas Stockwell16-Jul-08 5:10 
QuestionSkins.. Pin
Slick6914-Jul-08 0:06
Slick6914-Jul-08 0:06 

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.