c# - Unable to open project in design/code mode? -
if have big software package check licence serial number upon starting. app wont start unitll correct licence number entered (real or trial one)
the problem here can not open code in visual studio (design or code mode) if don't provide licence details.
i know licence form (where user enters licence details) in form of usercontrol.
questiono :
which part of visualstudio defines code run upion opening form in design/code window ?
is csproj
file or ? aware of post-build
or pre-build
tasks code run before open package start coding !!!!
ps: here code found in project.csproj
where newlicenseform form used enter reg details. how can disable form firing upon opening project in design mode ?
<compile include="newlicenseform.cs"> <subtype>form</subtype> </compile> <compile include="newlicenseform.designer.cs"> <dependentupon>newlicenseform.cs</dependentupon> </compile> <compile include="newlicenseinfo.cs" /> <embeddedresource include="newlicenseform.resx"> <dependentupon>newlicenseform.cs</dependentupon> </embeddedresource>
it easy newlicenceform. check in if form in designmode
- form property (more info on msdn). in designmode
not run code.
Comments
Post a Comment