Click here to Skip to main content
15,917,329 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to connect MS acess with C#.NET Pin
Paul Conrad12-Oct-07 11:56
professionalPaul Conrad12-Oct-07 11:56 
QuestionDisable the designer Pin
Ennis Ray Lynch, Jr.12-Oct-07 8:39
Ennis Ray Lynch, Jr.12-Oct-07 8:39 
AnswerRe: Disable the designer Pin
Luc Pattyn12-Oct-07 9:28
sitebuilderLuc Pattyn12-Oct-07 9:28 
GeneralRe: Disable the designer Pin
Ennis Ray Lynch, Jr.12-Oct-07 10:05
Ennis Ray Lynch, Jr.12-Oct-07 10:05 
GeneralRe: Disable the designer Pin
PIEBALDconsult12-Oct-07 13:10
mvePIEBALDconsult12-Oct-07 13:10 
GeneralRe: Disable the designer Pin
Luc Pattyn12-Oct-07 13:43
sitebuilderLuc Pattyn12-Oct-07 13:43 
GeneralRe: Disable the designer Pin
PIEBALDconsult12-Oct-07 14:34
mvePIEBALDconsult12-Oct-07 14:34 
GeneralRe: Disable the designer [modified] Pin
PIEBALDconsult12-Oct-07 16:52
mvePIEBALDconsult12-Oct-07 16:52 
Come to think of it... maybe it's been fixed in VS 2005... but as I recall, in VS 2002/2003, the Designer wanted to design the first class in the file, so if you added some helper class you had to add it after your form, or the Designer would sit there looking stupid.

Maybe in the additional files you could add some class simply to have that attribute?

Dang... now I gotta try it...


-- modified at 22:58 Friday 12th October, 2007

Nope, didn't work. But I notice that the xxx.Designer.cs works the way you describe, so I'll look at how those are set up in the project file...


-- modified at 23:07 Friday 12th October, 2007

That turned out to be more difficult than I expected.

Step 1: Add a new Code File, the name should begin with the name of the form (like the xxx.Designer.cs file).

Step 2: Close the Solution

Step 3: Edit the project file, change

<Compile Include="Form1.CodeFile1.cs" />


to

<Compile Include="Form1.CodeFile1.cs">
  <DependentUpon>Form1.cs</DependentUpon>
</Compile>


(using whatever names you chose)

Step 4: Open the Solution

Step 5: Close the Solution

Step 6: Edit the Code File to have the namespace and class stuff

Step 7: Open the Solution


VS should have the ability to add other pieces of a Form class built in. Mad | :mad:

I also noticed that when a file is DependentUpon, it can be deleted, but not removed or renamed. WTF | :WTF:




-- modified at 23:46 Friday 12th October, 2007
GeneralRe: Disable the designer Pin
Luc Pattyn12-Oct-07 17:01
sitebuilderLuc Pattyn12-Oct-07 17:01 
GeneralRe: Disable the designer Pin
PIEBALDconsult12-Oct-07 17:48
mvePIEBALDconsult12-Oct-07 17:48 
GeneralRe: Disable the designer Pin
Daniel Grunwald13-Oct-07 0:02
Daniel Grunwald13-Oct-07 0:02 
Question.Net remoting's Http Channel. Pin
dhami_naresh12-Oct-07 8:34
dhami_naresh12-Oct-07 8:34 
AnswerRe: .Net remoting's Http Channel. Pin
led mike12-Oct-07 9:45
led mike12-Oct-07 9:45 
GeneralRe: .Net remoting's Http Channel. Pin
dhami_naresh12-Oct-07 21:58
dhami_naresh12-Oct-07 21:58 
GeneralRe: .Net remoting's Http Channel. Pin
led mike13-Oct-07 5:35
led mike13-Oct-07 5:35 
GeneralRe: .Net remoting's Http Channel. Pin
dhami_naresh13-Oct-07 7:43
dhami_naresh13-Oct-07 7:43 
QuestionLogon form problem Pin
MumbleB12-Oct-07 7:38
MumbleB12-Oct-07 7:38 
AnswerRe: Logon form problem Pin
led mike12-Oct-07 9:49
led mike12-Oct-07 9:49 
GeneralRe: Logon form problem Pin
MumbleB12-Oct-07 10:46
MumbleB12-Oct-07 10:46 
GeneralRe: Logon form problem Pin
led mike12-Oct-07 10:52
led mike12-Oct-07 10:52 
GeneralRe: Logon form problem Pin
MumbleB12-Oct-07 11:05
MumbleB12-Oct-07 11:05 
GeneralRe: Logon form problem Pin
Paul Conrad12-Oct-07 11:59
professionalPaul Conrad12-Oct-07 11:59 
GeneralRe: Logon form problem Pin
MumbleB12-Oct-07 20:31
MumbleB12-Oct-07 20:31 
GeneralRe: Logon form problem Pin
MumbleB12-Oct-07 21:02
MumbleB12-Oct-07 21:02 
GeneralRe: Logon form problem Pin
Paul Conrad13-Oct-07 4:48
professionalPaul Conrad13-Oct-07 4:48 

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.