vb.net adding file to existing project - vb.net

Sorry to bother you with the same problem.
I use Visual Studio for my small project. I'm a newbie.
I created separate project(s) Dailycount form & LiquorCount form.
I'm trying to bring the forms from both the project (using copy and Add Existing Items in solution explorer) to a Combined Project.
But when I open the forms in Design View. I just get the Blank form. when I build the application only 1 form is generated and another one is still blank form.
Files copied are:
Dialycount.vb
Dialycount.Designer.vb
Dialycount.resx
Liquorcount.vb
Liquorcount.Designer.vb
Liquorcount.resx
Trying to find the solution to this for the last 2 weeks and it's frustrating.

Related

How to add an existing form to an existing VB Project

I am trying to add an existing form to a VB project(Ctrl-D) when I locate and copy the 3 files into the project the designer.vb form name appears with a small "VB" logo attached and the form is blank but has the correct filename/form name.
The code behind the form is correct and intact.

Creating Custom Form Template

I'm creating a vb.net project with over 20-30 forms. I want to apply same options for every form like "no border,backcolor,picturebox at left bottom etc.". and it takes much time to do these for ever form. Please tell me a shortcut :)
(I've thinked about creating one form and duplicating it.)
Creating Template Forms using Visual Inheritance
https://www.codeproject.com/Articles/7038/Creating-Template-Forms-using-Visual-Inheritance
[RESOLVED] Creating a Windows Form template/library?
http://www.vbforums.com/showthread.php?641019-RESOLVED-Creating-a-Windows-Form-template-library&s=1fb7d88423241485b8fff8e50ef97d04
Create your Form with the properties set then
File (Menu) | Export Template
Note: Links to other posts aren’t advised but there is a lot of content and didn’t want to just copy/paste, these could become dead links in the future mind.
You can create Project Templates and Item Template which can have code files, assets etc already there, it’s how File | New works.

Location of Infopath Custom Code on SharePoint

I have an Infopath 2010 form that's been developed for a document library in SharePoint 2010. The form contains custom VB code, which is saved on a shared drive.
However, should the VB project on the shared drive get deleted/damaged/forgotten about, is there a way to retrieve the custom code from SharePoint itself? I know you can go to Library Settings>Advanced Settings>Document Template>Edit Template to retrieve the Infopath form, but when you attempt to edit the custom code, Infopath asks for the VB project location.
Does a plain-text, uncompiled version of the code get stored somewhere in SharePoint when the form is deployed?
When I have needed to get the code for a form and don't have access to original code files, one approach I have taken is to save the form as source files (either unzipping the template with a tool like 7-zip or from the publish menu in InfoPath in design mode) and then decompiled the code DLL with ILSPY. Imperfect & a bit of a pain, but has allowed me to see what may be going on in a template file and recreate the source code when needed.
Found my own answer - looks like I'd be out of luck.
http://www.bizsupportonline.net/blog/2013/recover-make-changes-infopath-forms-sharepoint.htm
Paragraph at the bottom just before "3 ways you can find out whether code was written for a form template"
That's a pretty helpful feature, Infopath...

Unable to view form in designer view visual studio 2010

net programming . I created a form and add few controls in it. I close it then when I reopen it. Designer view was blank , was unable to add more controls in it. Have a look at this picture
Here is the code
Any help !
Try to exclude the form (all 3 files .vb, Designer.vb, .resx) and include it again into your project.

Corrupt forms, not displaying in "startup form"?

In properites>Application>"Startup form" combobox, in my VS VB.NET project, I see only 2 forms listed, while my application has 6 forms. Does this mean something is corrupt?
I tried to make a new project, then copy only the old vb files into this new project. But still only those two (of 6) forms show up in the "Startup form" combo box.
Well, that's pretty odd. This list is almost certainly filled from the project file, the <SubType> element should be significant. But you eliminated that possibility by recreating the project file from scratch. I can't see how a property on a form would make it disappear from the list.
One thing you could try is editing the My Project\Application.myapp file with Notepad. Copy the solution first and make sure it isn't loaded in VS. Change the <MainForm> element to one of the forms that isn't listed. Load the project and see what is shown in the project property page and if anything breaks when you compile it.