Click here to Skip to main content
13,195,594 members (71,742 online)

Windows Forms

 
QuestionImplement jQuery Tag-it functionality in C# Win Form Pin
Member 29389611-Feb-13 7:47
memberMember 29389611-Feb-13 7:47 
QuestionRe-write a MS Access application to Visual Studio Pin
Jaap Britz19-Jan-13 23:23
memberJaap Britz19-Jan-13 23:23 
AnswerRe: Re-write a MS Access application to Visual Studio Pin
Eddy Vluggen20-Jan-13 2:32
mvpEddy Vluggen20-Jan-13 2:32 
GeneralRe: Re-write a MS Access application to Visual Studio Pin
Maciej Los19-Mar-13 7:01
mvpMaciej Los19-Mar-13 7:01 
AnswerRe: Re-write a MS Access application to Visual Studio Pin
Maciej Los19-Mar-13 7:05
mvpMaciej Los19-Mar-13 7:05 
QuestionHow to Deploy my application along with database Pin
Member 929272931-Dec-12 0:27
memberMember 929272931-Dec-12 0:27 
AnswerRe: How to Deploy my application along with database Pin
savbace10-Jan-13 22:54
membersavbace10-Jan-13 22:54 
QuestionWindows Form Designer code and importing old projects Pin
Aaron Hartley28-Dec-12 10:42
memberAaron Hartley28-Dec-12 10:42 
I've recently brought an old PPC (PocketPC) 2003 project developed in VS 2003 into VS 2008. This converted project has some issues with it so as an alternative to conversion I created a new project a brought the code and forms from the old project, otherwise identical to the original.

One problem is that I'm running into with both the old original and new projects is that if I change a form in any way and then save a new error is flagged by VS: "Constant cannot be the target of an assignment." The error is the same in every form: code generated by the Windows Form Designer, the line that sets name of the form.

Me.Name = "[formname]"


([formname] depends on the form, is something like frmAvailableMaterial, etc). If I delete this line of code the error disappears but the next the time I change the same form, Windows Form Designer again adds the line Me.Name = "[formname]" and is flagged as an error. So the problem keeps reappearing on forms that I have already "fixed". VS 2008 keeps putting back a line that it flags as an error.

For comparison, I looked at a "clean" VS 2008 project that had no forms imported from a VS 2003 project, only forms created within VS 2008. The VS 2008 forms do not show any code generated by Windows Form Designer within the IDE. This form code isn't directly visible to the developer, only indirectly via the form editor. The VS 2003 forms still have this Windows Form Designer code even when brought into VS 2008. Since VS 2008 is having an issue with this form code, it would be ideal if VS 2008 could convert the VS 2003 form to where it would be fully compatible with VS 2008, to where there would be no real functional difference between an imported VS 2003 form and a form created in VS 2008.

Currently, the only work-around that I can think of would be to create new forms within VS 2008 and copy/paste controls and code and manually rewrite events. I'm certain that this would work with the downside being that this would also be a big investment of time and labor. I would like to see if there is an alternative way that permanently fixes this problem but doesn't require a complete reworking of the project. Does anyone know of a way to accomplish this?

You can probably duplicate this error yourself by importing a PPC VS 2003 project into VS 2008 (perhaps it doesn't even need to be PPC).
AnswerRe: Windows Form Designer code and importing old projects Pin
Mike Meinz21-Jan-13 8:44
memberMike Meinz21-Jan-13 8:44 
Questionparent/child bindingsource save on new row does not work Pin
PrissySC8-Dec-12 11:07
memberPrissySC8-Dec-12 11:07 
AnswerRe: parent/child bindingsource save on new row does not work Pin
PrissySC10-Dec-12 3:36
memberPrissySC10-Dec-12 3:36 
QuestionDetect if ANY control is clicked inside a form, regardless of the container Pin
Dennis Bork3-Dec-12 3:39
memberDennis Bork3-Dec-12 3:39 
Answercrosspost from C# forum Pin
Eddy Vluggen3-Dec-12 4:47
memberEddy Vluggen3-Dec-12 4:47 
GeneralRe: crosspost from C# forum Pin
Pete O'Hanlon3-Dec-12 4:54
protectorPete O'Hanlon3-Dec-12 4:54 
GeneralRe: crosspost from C# forum Pin
Eddy Vluggen3-Dec-12 4:56
memberEddy Vluggen3-Dec-12 4:56 
AnswerRe: Detect if ANY control is clicked inside a form, regardless of the container Pin
Eddy Vluggen3-Dec-12 5:03
memberEddy Vluggen3-Dec-12 5:03 
AnswerRe: Detect if ANY control is clicked inside a form, regardless of the container Pin
April Fans27-Dec-12 16:13
memberApril Fans27-Dec-12 16:13 
AnswerRe: Detect if ANY control is clicked inside a form, regardless of the container Pin
jenitshah19-Jan-13 15:59
memberjenitshah19-Jan-13 15:59 
AnswerRe: Detect if ANY control is clicked inside a form, regardless of the container Pin
Simon Bridge4-Feb-13 12:13
memberSimon Bridge4-Feb-13 12:13 
QuestionWix based installer does not execute custom action on upgrade Pin
Prasanth Vijayan11-Nov-12 23:12
memberPrasanth Vijayan11-Nov-12 23:12 
Questionhow to ad a new records into database using data binding? Pin
LearnByHeart26-Oct-12 23:42
memberLearnByHeart26-Oct-12 23:42 
AnswerRe: how to ad a new records into database using data binding? Pin
Eddy Vluggen28-Oct-12 0:39
memberEddy Vluggen28-Oct-12 0:39 
GeneralRe: how to ad a new records into database using data binding? Pin
LearnByHeart28-Oct-12 22:36
memberLearnByHeart28-Oct-12 22:36 
GeneralRe: how to ad a new records into database using data binding? Pin
Eddy Vluggen28-Oct-12 23:28
memberEddy Vluggen28-Oct-12 23:28 
QuestionCurrency formatting Pin
MandyHouse22-Oct-12 15:34
memberMandyHouse22-Oct-12 15:34 

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.


Advertise | Privacy |
Web02 | 2.8.171019.1 | Last Updated 29 Sep 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid