Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Setting Dock for a Panel Causes "... Does Not Contain A Definition For 'Windows'

1 view
Skip to first unread message

Abby Brown

unread,
Nov 5, 2009, 4:49:32 PM11/5/09
to
Hi,

Whenever I set the dock style of a control I get "... does not contain a
definition for 'Windows" There are a lot of uses of
"System.Windows.Forms.xxx" but only those that set the dock style yield this
message. What is happening?

Thanks,
Gary


Jeff Johnson

unread,
Nov 5, 2009, 5:06:22 PM11/5/09
to
"Abby Brown" <abby...@charter.net> wrote in message
news:%23994WHm...@TK2MSFTNGP04.phx.gbl...

You're failing to provide us with the full error message, that's what's
happening. I have a guess, but with a full error message I can probably do
much better.


Abby Brown

unread,
Nov 6, 2009, 9:00:37 PM11/6/09
to
"Jeff Johnson" <i....@enough.spam> wrote in message
news:ebY72QmX...@TK2MSFTNGP05.phx.gbl...

The message

"PDP1.CRTSystem does not contain a definition for 'Windows"

is all I get. On further fiddling, setting .Dock for any control on that
form yields the message. This is an existing form that I'm modifying. None
of the other forms have this problem.

Gary


Jeff Johnson

unread,
Nov 11, 2009, 10:56:22 AM11/11/09
to
"Abby Brown" <abby...@charter.net> wrote in message
news:%2399ZV40...@TK2MSFTNGP05.phx.gbl...

>>> Whenever I set the dock style of a control I get "... does not contain a
>>> definition for 'Windows" There are a lot of uses of
>>> "System.Windows.Forms.xxx" but only those that set the dock style yield
>>> this message. What is happening?
>>
>> You're failing to provide us with the full error message, that's what's
>> happening. I have a guess, but with a full error message I can probably
>> do much better.
>
> The message
>
> "PDP1.CRTSystem does not contain a definition for 'Windows"
>
> is all I get. On further fiddling, setting .Dock for any control on that
> form yields the message. This is an existing form that I'm modifying.
> None of the other forms have this problem.

Hmmm, sounds like a form behaving badly.... Next question: Are you setting
the Dock property via the designer (the Properties window) or through code?
If code, could you post the line when you're doing this?


0 new messages