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

C#

 
GeneralMultiple Forms Pin
Jon_Slaughter28-Jun-04 6:44
Jon_Slaughter28-Jun-04 6:44 
GeneralRe: Multiple Forms Pin
Heath Stewart28-Jun-04 6:56
protectorHeath Stewart28-Jun-04 6:56 
GeneralRe: Multiple Forms Pin
Jon_Slaughter28-Jun-04 8:21
Jon_Slaughter28-Jun-04 8:21 
GeneralRe: Multiple Forms Pin
Heath Stewart28-Jun-04 8:57
protectorHeath Stewart28-Jun-04 8:57 
GeneralRe: Multiple Forms Pin
Jon_Slaughter28-Jun-04 9:16
Jon_Slaughter28-Jun-04 9:16 
GeneralRe: Multiple Forms Pin
Heath Stewart28-Jun-04 9:34
protectorHeath Stewart28-Jun-04 9:34 
GeneralRe: Multiple Forms Pin
Jon_Slaughter28-Jun-04 11:14
Jon_Slaughter28-Jun-04 11:14 
GeneralRe: Multiple Forms Pin
Heath Stewart28-Jun-04 11:27
protectorHeath Stewart28-Jun-04 11:27 
For one, you need to qualify the CreateParams type as I did in my code. There is ambiguity when you use CreateParams for both the property name and use it internally. This may be causing problems with the designer. You can always use the work-around I gave you too (after all, why do you need layered windows at design-time?). It's not uncommon for controls to draw differently at design-time than they do at runtime (take the grid being drawn on the control at design-time, for example).

Finally, I would recommend you create a base class, perhaps something like LayeredForm from which both FormA and FormB derive, unless you wanted FormB to look and act exactly like FormA (unless you plan on overriding a whole bunch of functionality and programmatically removing and adding controls). When you inherit a form, you don't just inherit the functionality - you inherit the UI (the UI is build, after all, from the code being inheritted).

 

Microsoft MVP, Visual C#
My Articles
GeneralMulticast Programming Pin
goodpilot28-Jun-04 6:25
goodpilot28-Jun-04 6:25 
GeneralRe: Multicast Programming Pin
Heath Stewart28-Jun-04 6:47
protectorHeath Stewart28-Jun-04 6:47 
GeneralRe: Multicast Programming Pin
goodpilot28-Jun-04 7:35
goodpilot28-Jun-04 7:35 
GeneralGetting a ConfigurationException and I dont know why Pin
Flack28-Jun-04 6:18
Flack28-Jun-04 6:18 
GeneralRe: Getting a ConfigurationException and I dont know why Pin
Heath Stewart28-Jun-04 6:25
protectorHeath Stewart28-Jun-04 6:25 
GeneralRe: Getting a ConfigurationException and I dont know why Pin
Flack28-Jun-04 6:35
Flack28-Jun-04 6:35 
Questionhow to retrieve the ProductCode? Pin
econnor28-Jun-04 6:15
econnor28-Jun-04 6:15 
AnswerRe: how to retrieve the ProductCode? Pin
Heath Stewart28-Jun-04 6:21
protectorHeath Stewart28-Jun-04 6:21 
GeneralRe: how to retrieve the ProductCode? Pin
econnor29-Jun-04 3:53
econnor29-Jun-04 3:53 
GeneralEnumerations (design question) Pin
mealnumberone28-Jun-04 5:44
mealnumberone28-Jun-04 5:44 
GeneralRe: Enumerations (design question) Pin
Heath Stewart28-Jun-04 6:33
protectorHeath Stewart28-Jun-04 6:33 
Questionneed to send within the current connection ..? Pin
Adel83k28-Jun-04 5:18
Adel83k28-Jun-04 5:18 
AnswerRe: need to send within the current connection ..? Pin
Heath Stewart28-Jun-04 6:29
protectorHeath Stewart28-Jun-04 6:29 
GeneralWindows Service App Pin
japanreddy28-Jun-04 4:37
japanreddy28-Jun-04 4:37 
GeneralRe: Windows Service App Pin
Heath Stewart28-Jun-04 4:55
protectorHeath Stewart28-Jun-04 4:55 
GeneralRe: Windows Service App Pin
Xiangyang Liu 刘向阳28-Jun-04 5:17
Xiangyang Liu 刘向阳28-Jun-04 5:17 
GeneralFolderBrowserDialog external machine selection Pin
fozzwald28-Jun-04 4:29
fozzwald28-Jun-04 4:29 

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.