471,348 Members | 1,186 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

BrowsableAttribute using a bool has a bug

/// <summary>
/// </summary>
bool printFlag;
[Browsable(true), Category("Misc")]
public bool Print
{
get { return this.printFlag; }
set { this.printFlag = value; }
}

I'm using this but when I try to change a value it fires a SEHException in
the main function.

Is there something else I have to do?

Thanks.
Jan 18 '06 #1
3 1424
John,

I believe the problem is not in the Browsable attribut, but rather what
happens in the code when you set this printFlag.
I don't believe adding this attribute can cause such problem.

--

Stoitcho Goutsev (100)

"John Owens" <d9***************@hotmail.com> wrote in message
news:Xn**********************************@217.158. 240.10...
/// <summary>
/// </summary>
bool printFlag;
[Browsable(true), Category("Misc")]
public bool Print
{
get { return this.printFlag; }
set { this.printFlag = value; }
}

I'm using this but when I try to change a value it fires a SEHException in
the main function.

Is there something else I have to do?

Thanks.

Jan 18 '06 #2
> John,

I believe the problem is not in the Browsable attribut, but rather what
happens in the code when you set this printFlag.
I don't believe adding this attribute can cause such problem.


The set part is just setting a bool so it's not that.

Jan 19 '06 #3
John,

I'm not talking the setter of the property here. I believe you use this flag
somewhere in your program and perform some actions upon it. I think this
places are where you should look at.

You know your code, but the snipped that you've posted don't have any reason
to throw that exception.
--

Stoitcho Goutsev (100)

"John Owens" <d9***************@hotmail.com> wrote in message
news:Xn**********************************@217.158. 240.12...
John,

I believe the problem is not in the Browsable attribut, but rather what
happens in the code when you set this printFlag.
I don't believe adding this attribute can cause such problem.


The set part is just setting a bool so it's not that.

Jan 19 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by George Jordanov Ivanov | last post: by
13 posts views Thread by kamaraj80 | last post: by
reply views Thread by Mona | last post: by
40 posts views Thread by Mark P | last post: by
6 posts views Thread by =?Utf-8?B?U2FtZWVrc2hh?= | last post: by
1 post views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.