Default Instances For Forms, Different .Net Versions And Project Templates?
Jan 11, 2011
I believe one or more versions of VB.Net did away with "default instances" for Forms.
1) Was it in the 2003 or 2005 version(s)?
2) With the more recent 2008 and 2010 verions, is it possible to use a template or
change one of the files in the project so that default Form instances are not created?
I was recently looking at some of the other .Vb files in VB.Net 2008 Express Edition.
By the way, just so you know I could install a full version of Visual Studio if need be from;
2203, 2005, 2008 or 2010
View 5 Replies
ADVERTISEMENT
Aug 20, 2010
I'm using Visual Studio 2008 writing a Windows Forms project and I'd like to know a way to step around 'default instances' of forms. I don't like default instances, they constantly get in my way, and working in a team it's causing some really annoying confusion about the object identity of which form is actual in focus at this moment. This means I need to go threw the entire project (big) and remove ALL references to any 'default instance' of a form. But this is difficult to do as there's no errors or anything, it basically requires me to search for every text of "MyFormType." and then checking if it's accessing a default instance and fix it like that.
It'd be nice if I could just turn it off or something so I could
1) easily find all erroneous lines of code
2) avoid the accidental use of it in the future by anyone on the team
View 1 Replies
May 4, 2009
tell me the difference between the different project templates, or examples of when to use each? Or is there a good place I can find explanations? The short descriptions in the statusbar don't really explain well enough for me to clearly understand.
View 2 Replies
Oct 23, 2008
I started trying to do this... [URL]...and quickly ran into a problem because I don't have a Windows Class Library project template. The option simply isn't there.[URL]So I start a Windows Application and try adding an Inherited User Control to the project, and I get this error.[URL] Building the current application does nothing for this. I tried browsing to system.windows.forms.dll and nothing happened.
View 1 Replies
Jun 17, 2009
I found very few project templates in my vs 2008 express edition, so where i can find more project templates on net to download?
View 1 Replies
Jul 2, 2009
I have created a Customized Excel template for Office 2007 using VSTO. currently i am showing this template under my templates. is it possible to show under Installed templates?
like we have in office 2007 Billing Statement, Blood Presser Tracker, Time Card , etc. Is it possibe to show the template which is created by me; under Installed templates?
View 10 Replies
Oct 6, 2008
I would like to get a list of sql server instances on a computer but need both default and named instances.In the post: [URL] the code works perfectly for finding the default instance of SQL Server but it doesn't show other running instances (named instances). On my development computer, SQL Server Express, SQL Server 2005 (both named instances) and SQL Server 2008 (default) are all running but express and 2005 don't appear in the combobox dropdown list.
View 3 Replies
Oct 4, 2011
I don't think this is possible but thought I'd just double check...
I have a class library project (i.e building this project results in a DLL being created) and I add a reference to this DLL in several of my other applications. This DLL project targets .NET Framework v2.0.
However, some of these apps that use the DLL target .NET 2.0 (or 3.5) and some target .NET 4.0. But because .NET 4.0 does not include 2.0 and 3.5 in it, its possible for someone to have .NET 4.0 installed but not .NET 2.0, therefore meaning that they won't be able to run my app because of the reference to a DLL that requires .NET 2.0.
So the solutions as far as I can see are: 1. Include .NET 2.0/3.5 as an additional prereq for my .NET 4.0 apps... ewww. 2. Create a copy of this DLL project and make it target .NET 4.0 then in my .NET 4.0 apps add a reference to that rather than the .NET 2.0 version.
So far I've been using the second option, which is working fine but its just very annoying having to remember to copy and paste any changes I make in one version of the DLL project into the other one.
So is there any way I can have a single DLL project but have it build 2 versions of the DLL, one targeting .NET 2.0/3.5 and one targeting .NET 4.0? As I've written this down I've just realised I could always build the solution, copy the DLL out to another folder, then change the target framework and build it again to get the new DLL but that's still not ideal.
Using VS 2010 Ultimate by the way in case that makes any difference to the options I've got available
View 6 Replies
Jun 23, 2011
I want to update the project with some new functionality but I want to keep the original intact.What's the best way to go about creating a new project with copies of all the files and resources from the original, but with paths that all point to the new copy?
View 5 Replies
Aug 16, 2010
I made a small program which i have sent to all users in my network. Unfortunately i forgot about older versions of framework.
Is there a quick and easy way to add older versions compatibility of framework to my project?
View 7 Replies
May 3, 2009
I am using using Visual Basic Express edition 2008. How can save / save as my project in different version when I make changes to the code? i.e. save the same project whenever I make a change in the code and keep the previous version of the code for future reference?
View 3 Replies
Aug 19, 2010
To the board: Lately I've been getting Runtime error 3447 ("The Jet VBA file (VBAJET.dll for 16-bit versions, or VBAJET32 for 32-bit versions) failed to initialize when called. Try reinstalling the application that returned the error") when attempting to open a certain program (not one that I designed, just downloaded and installed). I installed this program in January 2009, but this error began happening only this past July. someone else to information about the files vbajet32.dll and expsrv.dll. One site said that the problem was probably caused by the file expsrv.dll being absent, but I checked my System32 folder, and it's there. As far as I can tell, it has always been there (the computer was made in 2008, and as I said the program had always worked before). Vbajet32.dll is also there. I tried uninstalling and reinstalling the program, but error 3447 still occurs. I also tried uninstalling the program and installing an older version, but 3447 is still there.
I tried replacing expsrv.dll, thinking it might have been corrupt, but that didn't help, and I cannot register that dll anyway. I can't figure this thing out. Both of the files are there, and I didn't change any settings or anything anywhere between last January and this July. By the way, I am on Vista.
View 1 Replies
Feb 24, 2010
What I'm trying to achieve is for a file to be copied from a templates folder to a project folder. The project folder path is constructed using the selected item in a combo box and a list box. [Code]
View 4 Replies
Feb 15, 2011
I have been trying to create good multithreading programs and it is not working well considering the use of global variables, local variables etc and thread safe controls. I have not found a good way of doing it since it seemed to be not as efficient as just running it on a single thread.
The program accesses facebook and twitter api, parses etc. and I am wondering if I can just create new tasks and map the program project file and fire new instances of the project. Someone this using the taskfactory in 2010 but I thought this was just the same as the threadpool. on this: create windows services and set them to run on task scheduler??
View 2 Replies
May 28, 2010
Is it possible to set a project default for VB.NET winforms projects so that the default Modifier for controls added to winforms is Private (not Friend)?I know there's a "modifiers" property in the properties window so I can set it for each individual control however I would like to change the project so from now on myself and other developers have to specifically decide to change from friend to private. (Which I would strongly discourage them from doing).I believe there is no way of doing this, but on another forum a while ago someone mentioned it would be possible with an add-in (but didn't name the add-in or where to get it).
View 1 Replies
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
Jun 22, 2009
Good Day. Kinda banging my head against the wall on this one. I have a Mdi application with the start form(mdiparent) and form1(mdichild). On the start form, there is a textbox and a button. Heres how I want it to work:
1. value is entered into textbox and button is clicked
2. if form1 is open with that value, Bring it to the front if not, create a new instance of form1
If Not IsNothing(frmForm) Then 'If it is something
If Not frmForm.IsDisposed Then 'it's not disposed
'loop through the open form1s and compare the form1s property to the startform textbox
'if its the same, bring the form1 to the front
[code]....
View 3 Replies
Oct 24, 2010
how to have only one child form open at a time. I'm trying to close the open one from a second button on the parent form. or maybe there is some way to use the same button to close the first form and open the second.
View 3 Replies
Jan 21, 2010
I have a program with 3 forms; each has a different role behind them. Form 1 loads when the program executes and the other 2 load by clicking on buttons from form 1. I would like to implement a multithreaded approach where even after clicking on form2 and form 3 I can still execute other form 1 options while form2 and form 3 contents execute. I read through some tutorials and still not to sure how to implement. I figured I need to create instances of the forms 2 and 3 but how to call the threads and control them? I did try a simple one and had some error concerning delegates.
View 4 Replies
Nov 3, 2011
I am trying to create a new instance of a form if its not allready been created the only problem is is that the instance creation is inside a worker thread.[code]...
View 2 Replies
Sep 27, 2010
I am making a visual basic game. And in the game I have a few instances where I want to call open a window (let's save to save the user's preferences) from a form, then I want to go from that form to another one.
Example:
The user has completed the new game page. I have the users choices in a host of string, integer, and boolean variables. Now I want to use a generic saving screen I made with a progress bar. When I open up the saving box, I want to close or hide the new game setup menu (whichever I need to do). Then when it is done saving I want the Saving bar to return and cause the new game form to open the actual game form and close itself.
So I guess my question is this: What is a reliable(or correct) way to poll for a return in form to signal it to go ahead with execution?
Second:
This is similar to the first question. Instead of keeping the first form open when I use the saving form; is there a way I can save the name of a page I want the saving bar to go to once it's done?
I want the user to enter their prefered username before they start a new game for the first time. So I poll the saved username setting I have and if it equals "username" I want the Username entry form I made to pop up, but once it's done I want it to immediately call the new game screen. I also want to use this username entry form on the options screen so that the user can change their accepted name at anytime; but I want this screen to return back to the options screen.
What is the accept way to do this? Is it done through stacks? (form information -> stack : load new page : Do stuff: load stack value -> goto)
Finally:
Do I have to keep a window open (not close it) to access the variables that I have defined in it, and have stored values too? Does this apply to hiding too?
View 1 Replies
Jun 30, 2010
Basically in visual basic 6 I could access word tables in existing templates with the code owordactivedoc.tables(1).select() where owordactivedoc refers to the active word document and tables(1) refers to the first table in the template.Trying the same code in VB 2003 just leads to errors. Secondly how do I access bookmarks or alternatively word variables.Furthermore how do one deploy web.services. For example the current program I am building is for another computer. Simply copying the web service to Inetpubwwwroot dont work because it is not picked up by the Internet Information Services program. I have to create the web service in vb2003 on the other computer change msconfig manually. Copy and paste the existing service vb file in the created folder replacing the empty vb file.
View 3 Replies
May 22, 2009
I'm creating setup using VS2008 and I can able to create. The problem is the setup location is always c:program filesdefault company name.
I can rename that while installing. but, how can I change default company name while creating setup.
View 13 Replies
Dec 5, 2009
Is that possible to create a class in vb.net that is not in the default namespace of the project?
for example, say you have a project call sample1, then automatially IDE will have everything default to the Sample1 as your namespace root rather than under global, which is find for most case.but I want to create some classes that is directly under global namespace
View 7 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
Nov 11, 2011
I have a form that runs a report to pull info. (Not sure if this is even the correct subforum to put this on)And what this query is supposed to do pull info from combo box based on the start and ending numbers of orders for customers, but what I want to do is default the ending number to be what the starting number was as soon as the starting number is entered, but allow the user to change that if they want. I just want to make sure that it has a value. I tried to set the field to required, but that doesn't seem to be doing the trick.
View 1 Replies
Feb 23, 2010
When I drag a label control from toolbox to form, default autosize is true. I need to change to false every time. (I do not like true). How to make default value as false as default value?
View 1 Replies
Jan 5, 2011
I am building a data entry form. I have code that runs when the 'submit' button is clicked to check that all required fields are populated; if not, the missing fields are hilighted in red:
Sub validatefields()
saveOK = True
If Trim(Me.cmbBillCat.Text) = "" Then
saveOK = False
Me.cmbBillCat.Appearance.BackColor = Color.Tomato
End If
My problem arises when I want to reset the color back to normal. In my form when you click Cancel or move to a new record, all fields are disabled (set to read only) until the 'Edit' button is clicked. Visually this is represented by the field backgrounds being gray. VB.Net automatically changes the text box/combo boxes backcolor to gray when I disable them. However, once I have explicitly changed a control's backcolor, thereafter disabling it does not change its color to gray.
[Code]...
I have tried changing the backcolor to System.Drawing.SystemColors.Window, but the problem is the same. The control whose color has been changed is disabled (won't accept entry) but the backcolor remains white, no matter how many times DisableFields() is issued.
View 3 Replies