Designer error ?!!

P

parslej

Something strange happened with my solution.
If I made some changes on the form in the designer mode
(for example: if I change label's background color, I see changes in
IDE, in compiled app as well. But if I close form in designer, reopen
then, all changes in designer are lost! Althrough I see previously set
background color in code view - this doesnt reflect in form preview
mode)

How can I fix it?!

Thanx
Parsley

C#. VS2003
 
T

Tim Haughton

I would try deleting any *.resx files relating to the problem object.

Regards,

Tim Haughton
 
P

Parsley

Thanx Tim,

I've removed resx file and now, while I'm switching from code preview
to form previrew I'm receiving an error:
The item form_name.rsx doesnt exist in the project directory....

What shall I do to recreate resx file ?

rgs,
Maciej Pietruszka
 
T

Tim Haughton

Delete the cs file (after making a backup), add it back in.

Regards,

Tim Haughton
 
M

Maciej Pietruszka

Delete the cs file (after making a backup), add it back in.

I've did as folow:
1) I've excluded from project,
2) removed from SSafe
3) I deleted resx.
4) Added cs again to project
5) resx was recreated

But unfortunatelly still get the same error.

Any ideas ?
 
T

Tim Haughton

Don't just remove it from the project, obliterate it, delete shred and
destroy. Create a new control, make sure the designer works OK, paste your
backup *over the top* of your new control, then build.

Tim
 
M

Maciej Pietruszka

Unfortunatelly it doesnt help as well :(

I recreated whole solution from begin and now it works
Thanks for effort

Rgs
Maciej
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top