Main Page | Report this Page
.NET DotNet Forum Index  »  Visual C# Forum  »  Setting Dock for a Panel Causes "... Does Not Contain...
Page 1 of 1    

Setting Dock for a Panel Causes "... Does Not Contain...

Author Message
Abby Brown...
Posted: Thu Nov 05, 2009 4:49 pm
Guest
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...
Posted: Thu Nov 05, 2009 5:06 pm
Guest
"Abby Brown" <abbybrown at (no spam) charter.net> wrote in message
news:%23994WHmXKHA.412 at (no spam) TK2MSFTNGP04.phx.gbl...

Quote:
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.
 
Abby Brown...
Posted: Fri Nov 06, 2009 9:00 pm
Guest
"Jeff Johnson" <i.get at (no spam) enough.spam> wrote in message
news:ebY72QmXKHA.3676 at (no spam) TK2MSFTNGP05.phx.gbl...
Quote:
"Abby Brown" <abbybrown at (no spam) charter.net> wrote in message
news:%23994WHmXKHA.412 at (no spam) TK2MSFTNGP04.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.

Gary
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Thu Dec 10, 2009 1:58 pm