Add Forms To C# Project?
Dec 16, 2011
In vb.net, the Login Form, Splash Screen, and Dialog Form are nice to have. They are available through Visual Studio's Project > Add New Item... dialog. Is there a way to add these prebuilt forms to a c# project without jumping through hoops?If need be, the forms can be re-implemented or created in a vb.net project and then instantiated from the main (c#) project, but that is a lot of work if there's an easy workaround.
View 5 Replies
ADVERTISEMENT
May 6, 2009
I have a project that I have created, it something like a contact database.It is complete with its own sql server database, and controls and forms.I kinda of understand that I can include this project into another project.This is the tricky part,Can I include my contact project into another project and add more items to the database and forms in a new project?What I'm after is like using classes.My contact database would be like the base class, and the new project would be adding more features to that project.
View 10 Replies
Sep 13, 2010
What is the vb.net equivalent to accomplishing this?
static void Main()
{
frmCalcView view = new frmCalcView();
[code].....
View 5 Replies
Aug 15, 2011
I have two projects: SQLtesting and Controls. Their physical locations are:
[Code]...
View 5 Replies
Aug 15, 2011
I have two projects: SQLtesting and Controls. Their physical locations are:
C:My DocumentsVisual Studio 2010ProjectsSQLtestingSQLtesting [forms reside here]
C:My DocumentsVisual Studio 2010ProjectsControlsControls [forms reside here]
The code shown below works fine. I run it from the project SQLtesting. It loads a listbox and a checkedlistbox with the controls found on a form. I can change the value of the FormName field to any form within the SQLtesting project and get the form's controls. The forms are not actually opened/shown.I would like to be able to access forms in other projects i.e.
C:My DocumentsVisual Studio 2010ProjectsControlsControls
while running the code from the SQLtesting project.
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click
Dim <strong>FormName </strong>As String = "Form1"
Dim FullTypeName As String
[code]....
View 4 Replies
Jan 10, 2010
I have some form/vb in another project that I want to import to a new one. There are three files with these extensions - .vb, resx, and designer.vb. Which do I copy and how exactly?
View 3 Replies
Jul 28, 2010
I would like to use 3 forms on which there will be various controls. I want the user of the program to complete first the stuff on Form1 then click to Button 1 in order to go to the second form (which is "next" button). On second form, there will be two buttons (Back and Next) and these will navigate it next or previous form. My aim is to have a single window at all times (the user should not see several windows and have the feeling that all these different windows are in fact a unique window with navigation buttons on it).
I know how to make forms visible/invisible or determine manually the location on the screen. But my question is if there is a conventional way of arranging these forms and their navigation. I used codes like "Form2.show" but I am not sure if it is the correct way to show form2 and make Form1 invisible or disabled.
View 6 Replies
May 16, 2011
What i want to do is when button1 is clicked it disables tmr1 on the main form, and then opens up an instance of a new form, when that instance form is closed, the tmr1 on the main form is enabled again....how do i enable the timer control when the instance is closed?
View 2 Replies
Sep 18, 2011
I am using VB.net 2010 and I have two projects: SQLtesting and Controls. Their physical locations are:
C:My DocumentsVisual Studio 2010ProjectsSQLtestingSQLtesting [forms reside here]
C:My DocumentsVisual Studio 2010ProjectsControlsControls [forms reside here]
[code].....
View 1 Replies
Feb 4, 2009
is it possible to have the same effect as a dialogue box, with form focus? eg, when using the open dialogue box, if you try to focus on another form within the app, it doesn't' let you and starts flashing. But when you switch to another app, it doesn't interfere.
View 2 Replies
Oct 15, 2010
If I create a new class library project in VB.NET, I can create subfolders (a la C#), add WinForm objects to these subfolders, and then specify a namespace:
Namespace Sub1.Sub2
Public Class SomeForm
Public Sub New()
InitializeComponent()
[code]...
This resolves as ProjectRootNamespace.Sub1.Sub2.SomeForm, which is good.However, if I create a new WinForms project in VB.NET, and attempt the same thing, I get this error in the designer:The class SomeForm can be designed, but is not the first class in the file. Visual Studio requires that designers use the first class in the file. Move the class code so that it is the first class in the file and try loading the designer again.Is there a way to have forms in sub-namespaces of a VB.NET WinForms app instead of in the root namespace?
View 1 Replies
Sep 5, 2008
I want to create a table with 2 fields (FormName, ControlName) that consists of all form names and all control names (within that form).[code]...
How do I loop through all forms and controls in my project?
View 11 Replies
May 19, 2012
I am looking for Visual Basic 2010 code that would loop through all the forms in a project, i.e., the equivalent of the following VB 6 code:dim frmFom as Form for each frmForm in Forms
View 4 Replies
Dec 20, 2011
no forms can be seen when creating a new project.. i am going to choose a window form but there are no forms to choose.
View 12 Replies
May 27, 2011
I am looking for Visual Basic 2010 code that would loop through all the forms in a project, i.e., the equivalent of the following VB 6 code
View 1 Replies
Apr 6, 2009
I need to find an efficient way to print ALL the forms I have developed for this project (it's a lengthy one) for use in the project's storyboard.
View 1 Replies
Nov 18, 2009
I've set the Icon for my forms and project, and saved. But my project's icon is still the default app icon.
View 14 Replies
Apr 15, 2010
I declare an array on one form that i'd like to use on another form. I declare it public in the declarations area and edit it later within a Private sub. However, when i reference it from another form it's as if i haven't editted it at all and it is only grabbing the initial declaration.
Public Class form1
Public Array() As Integer
Private Sub button_Click(ByVal sender As System.Object, ByVal e As
[Code]....
View 13 Replies
Nov 22, 2009
How can i move a form to a different project.
View 2 Replies
Jun 1, 2011
i have tried googling this and cant find a way to do this, i hav 2 projects in the same solutions, i am trying to write a bit for Solution1_Project1_Form1 to open a windowsForm in Solution1_Project2_Form2.
Start main application & View 2nd application FROM within the main application.
Start the 2nd application WITHOUT using the main application.
both applications need to read and write to a database, i dont think this makes a big diferance but thought i would mention it
View 2 Replies
Dec 7, 2011
I have a question regarding VB.Net and Object-oriented programming.
I have a solution consisting of two projects.
One project is dedicated to the logic of the application, and one is only to show the Winforms form, and to reflect changes made in the logics project. In other words, when an array filled with various attributes residing in the logics project gets changed, then these changes should be reflected on the form (not that strange in theory).
Here comes the - for me - really tricky part:
I have created user controls, and these are residing in the forms project and placed on the aplication's form. When I click on any one of them, their respective onclick sub gets called okey, but how can I send a message to the logics project from their onclick subs? Basically, I'm not sure on what should be private or not, or possibly how to call the other project correctly. In any case, I can't get it to work.
To sum up: What I need is a line of code calling a class in another project, and someone telling me what should be private, static etc.
View 4 Replies
Aug 18, 2010
I can have all the projects existing in the same solution, and it builds fine. I can have a reference added to the project that I want to show a form from and still builds fine, every time I do something like this: Dim form_to_show as new Project2.Form1 form_to_show.show() It appears to corrupt the RESX file and stops compiling...it's really getting anoying..
View 7 Replies
May 2, 2010
I have a directory listbox, I try to set the path to a directory inside the project. how do I do that?
View 7 Replies
Dec 31, 2011
Can I protect my codes and forms in my project from viewing ?
View 9 Replies
Jun 17, 2011
I was wondering is it possible to put forms into a class library project and if so could I use those forms as an mdi child from my main forms app?A bit behind what I am trying to do:I am creating a game which is essentially going to have its own 'operating system' As the user progresses in the game they can 'install' new software into their operating system.I have my 'Desktop' that is an MDI Parent and what I want the users to be able to do it when they have purchased a new bit of software (also in game) the game will connect to my central server download a dll and place it in a directory, that is essentially installing the new bit of software and the game will then pick up that dll and add a new button the Programs list and when the user clicks on that software in the Programs list it will launch the form in the Class Library as an MDI Child of the 'desktop
View 2 Replies
Aug 31, 2009
the client has asked for all forms and classes to be hidden from the main project, so when he sells it, they will only be able to see part of the project and not all the classes and forms.My Solution: I have created another project called project2, and added all the forms and classes from main project, fixed all errors and compiled it.I deleted all the forms from the main project and added a reference so that it gets all the forms from the other project by referencing the dll file, but it does not seem to work and get a lot of errors.is there an easier way of hiding the forms and classes from the main project or do I need to do more then just add the reference.
View 2 Replies
Jan 1, 2011
I've gone brain dead and can't remember how (where) to declare a variable to be shared by 2 forms (classes) in the same project.
View 2 Replies
Aug 25, 2009
I have a web service that I'd like to include as a project reference inside a windows forms application. (The application will be running on non-networked hardware.) I could simply copy the *.vb files I need into my forms project, but I'd rather not fork the code base.It wasn't hard to include the ASP project in the windows forms solution. However, I can't figure out how to reference it in my forms code.
View 2 Replies
Jun 3, 2011
I am wanting to change my startup form for my application in Visual Studio for VB.Net. I double clicked "My Project" in the Solution Explorer and then clicked on the Application tab. For some reason I only see 12 forms out of the 6 forms I have in my project when the "Enable Application Framework" check box is True. When the check box is False I see all my forms, why?
View 9 Replies
Aug 11, 2010
What actually is required to consider something installed on a machine. What happens in the background? I know VB offers an installer but Im trying to build my own from scratch. What do I need to do to accomplish this?
View 13 Replies