Click here to Skip to main content
15,921,452 members
Home / Discussions / C#
   

C#

 
GeneralOT- Welcome in the CP's memorable quotes Pin
CPallini6-Jan-09 6:16
mveCPallini6-Jan-09 6:16 
GeneralRe: OT- Welcome in the CP's memorable quotes Pin
EliottA6-Jan-09 6:23
EliottA6-Jan-09 6:23 
QuestionDataSet Problem ! Pin
Mohammad Dayyan6-Jan-09 2:39
Mohammad Dayyan6-Jan-09 2:39 
AnswerRe: DataSet Problem ! Pin
Wendelius6-Jan-09 2:47
mentorWendelius6-Jan-09 2:47 
AnswerRe: DataSet Problem ! Pin
Jason C Bourne7-Jan-09 11:21
Jason C Bourne7-Jan-09 11:21 
GeneralRe: DataSet Problem ! Pin
Mohammad Dayyan7-Jan-09 23:27
Mohammad Dayyan7-Jan-09 23:27 
QuestionDisable/enable CollectionEditor properties? Pin
kanchoette6-Jan-09 2:35
kanchoette6-Jan-09 2:35 
AnswerRe: Disable/enable CollectionEditor properties? Pin
Henry Minute6-Jan-09 2:58
Henry Minute6-Jan-09 2:58 
I don't know if this can be done but I am sure that someone else will provide help if it can.
What I would say is that if you look at similar properties in the inbuilt controls e.g. AutoSize for labels, textboxes etc. they do not disable other properties when set. The program logic just ignores changes to the irrelevant properties if they (AutoSize) are set to true.
So in the setter for ColumnWidth only apply setting if AutoWidth is false.

something like:

public int ColumnWidth
{
    get
    {
        return this.columnWidth;
    }

    set
    {
        if (!this.autoSize)
        {
            if (this.columnWidth != value)
            {
                this.columnWidth = value;
                this.Invalidate();
            }
        }
    }
}


Hope this helps.


Honi soit qui mal y pongs - Evil to he who thinks it stinks

GeneralRe: Disable/enable CollectionEditor properties? Pin
kanchoette6-Jan-09 3:32
kanchoette6-Jan-09 3:32 
GeneralRe: Disable/enable CollectionEditor properties? Pin
Henry Minute6-Jan-09 4:25
Henry Minute6-Jan-09 4:25 
GeneralRe: Disable/enable CollectionEditor properties? Pin
kanchoette6-Jan-09 4:30
kanchoette6-Jan-09 4:30 
QuestionShowBalloonTip of notifyicon not working Pin
Tridip Bhattacharjee6-Jan-09 2:08
professionalTridip Bhattacharjee6-Jan-09 2:08 
AnswerRe: ShowBalloonTip of notifyicon not working Pin
Wendelius6-Jan-09 2:19
mentorWendelius6-Jan-09 2:19 
QuestionPanels - Changing their width and dealing with the Horizontal Scroll Bar Pin
Matthew Klein6-Jan-09 2:07
Matthew Klein6-Jan-09 2:07 
AnswerRe: Panels - Changing their width and dealing with the Horizontal Scroll Bar Pin
EliottA6-Jan-09 2:14
EliottA6-Jan-09 2:14 
AnswerRe: Panels - Changing their width and dealing with the Horizontal Scroll Bar Pin
EliottA6-Jan-09 7:28
EliottA6-Jan-09 7:28 
AnswerRe: Panels - Changing their width and dealing with the Horizontal Scroll Bar Pin
#realJSOP6-Jan-09 8:31
professional#realJSOP6-Jan-09 8:31 
GeneralRe: Panels - Changing their width and dealing with the Horizontal Scroll Bar Pin
Matthew Klein6-Jan-09 10:28
Matthew Klein6-Jan-09 10:28 
Questionfilling and adding to byte array [modified] Pin
A4ad6-Jan-09 2:04
A4ad6-Jan-09 2:04 
AnswerRe: filling and adding to byte array Pin
Le centriste6-Jan-09 2:21
Le centriste6-Jan-09 2:21 
GeneralRe: filling and adding to byte array Pin
A4ad6-Jan-09 21:31
A4ad6-Jan-09 21:31 
GeneralRe: filling and adding to byte array Pin
Le centriste7-Jan-09 1:02
Le centriste7-Jan-09 1:02 
QuestionHow to change computer name with c# ? Pin
mshannaq6-Jan-09 1:44
mshannaq6-Jan-09 1:44 
AnswerRe: How to change computer name with c# ? Pin
Simon P Stevens6-Jan-09 1:55
Simon P Stevens6-Jan-09 1:55 
GeneralRe: How to change computer name with c# ? Pin
Luc Pattyn6-Jan-09 2:34
sitebuilderLuc Pattyn6-Jan-09 2:34 

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.