Application Consists Of About Ten Forms So Far?

Apr 12, 2010

My application consists of about ten Forms so far. One of the forms gives the user the option of choosing the language that all the text on the forms will use. Each Form has a declaration like this

[Code]...

I have this declaration (Public myLanguage As New DataClass.LanguageStrings) where I had intended to keep my working copy of the chosen language strings, so that each Form's Constructor could set the xxx.Text properties using this type of assignment - ... = myLanguage.yyyStrings.xxxString. However, the IDE throws an error at the first occurrence of "myLanguageSet" in the module SetLanguages above, saying that I should use "New" to declare an instance which I can then use, despite the line above that point where I thought I was doing just that. It doesn't seem to matter where I put the declaration of myLanguageSet, I just can't avoid the "New" error being thrown.

View 1 Replies


ADVERTISEMENT

Forms :: VB - MDI - Application That Consists Of Mainly One Main Form - Ranging Form Graphs, Tables, Dropdown Boxes, Print Preview

Apr 7, 2010

I have to write an application that consists of mainly one main form, but several different things I wanna display. Pretty standard I guess. So there is a menu, some controls, and the main stuff below (ranging form graphs, tables, dropdown boxes, print preview, etc). I would like to use it like one would use frames in html, design an object that is limited to a box or panel that I define. The literature I have does not give me a clear idea of how to do this (yet). The most obvious seem to be the use of MDI, open a predefined form with no borders, maximize it before showing and remove all minimize/maximize options. But that does not work so well. The form inside the MDI parent does not fit the size that is given for it when it is loaded. e.g.

[CODE]:......................

So my main question is: Is MDI the way to go here at all or are there better/easyer ways to achieve this? If MDI is the way to go, how do I sucessfully restrict a child form inside another object, without giving the user any opportunity to resize (i noticed that I have minnimize/maximize/close buttons, even if I disable them on the child forms themselves)

View 6 Replies

Application That Consists Of About 4 Screens - Slow Launch Time

Aug 23, 2010

I have an application that consists of about 4 screens. Screens can be changed by clicking on buttons or via menu item. I use about 16 to 17 tables in all for all 4 screens. I've publised the application and it works fine except that it takes about 1 1/2 to 2 minutes to launch the application using the setup file that I save onto my PC. If I get lucky, a little over a minute is already fast for me. What can I do to help speed up the launch time?

View 12 Replies

IDE :: Excluding Forms To Convert A Window Forms Application To Class Library Application

Jan 16, 2012

I am not able to find the Exclude Command in VB 2010 Express. I have no idea which version of Visual Studio it is working with. I've got one 217MB VB 2010 Express file and many 2008 VB Express files with one of them measuring 31 MB. There many other SQL files and .Net Files.

View 4 Replies

Class Which Consists Of A Persons Name And Their Height

Jan 7, 2012

I've got a class which consists of a persons name and their height. I then want to sort there height which is in an array, which I can do. However when I want to display both the height in order with there name I can't. The heights are sorted in order but the names just appear in the order they were entered. How do I make the right name appear next to the height?

View 2 Replies

SaveFileDialog1 - Form That Consists Of A Tab Control

Mar 11, 2010

I have a form that consists of a Tab Control..that is filled with text boxes..a ComboBox..and a Notes Box. I just really dont know what extension to put in the SaveFileDialog : Can I just put something like *.* or maybe All Files,,

View 2 Replies

VS 2008 - Print Consists Of Textboxs?

Apr 21, 2010

I have 10 textboxs on my form, and I'm interested how to print consists of those textboxs.

View 1 Replies

Winform App Consists Of A Main.exe And A Launcher.exe?

Jan 13, 2010

Our Winform app consists of a Main.exe and a Launcher.exe. The purpose of the Launcher app is to check for updated versions of the Main.exe. If it finds no updates it launches Main.exe using System.Diagnostics.Process.Start

If it finds an update, it copies the new Main.exe into position and launches Main.exe the same way (in this case it will be a fresh copy of Main.exe).Here's the Process.Start code:

Dim p As New ProcessStartInfo
p.FileName = "Main.exe"
p.WindowStyle = ProcessWindowStyle.Normal
Process.Start(p)

This code executes whether or not there's been an update and always successfully fires up Main.exe.However our Main.exe, if it's being run for the first time (ie. after an update), will error on any line which references the My namespace, such as My.Settings or My.Computer.FileSystem For example this line will cause an error:Msgbox(My.Computer.FileSystem.SpecialDirectories.Desktop)

Here's the error: System.IO.DirectoryNotFoundException: Could not find special directory 'Desktop'. at
Microsoft.VisualBasic.FileIO.SpecialDirectories.GetDirectoryPath(String
Directory, String DirectoryNameResID)at
Microsoft.VisualBasic.FileIO.SpecialDirectories.get_Desktop()
at
Microsoft.VisualBasic.MyServices.SpecialDirectoriesProxy.get_Desktop()

But while this example refers to Desktop remember it can't find any of the SpecialDirectories. It's not restricted to Desktop. But only the first time it's run (ie. immediately after an update). Thereafter it will run fine.If the process failed more spectacularly, to do with file system issues, locks or threads, it would be more understandable. But why just this "minor" problem with the My namespace?

View 1 Replies

Make A Program That Consists Of Two List Boxes

Jun 9, 2011

I am trying to make a program that consists of two list boxes. The first list box contains the names of several employees of a given company, and the second is to display the name, department, ID number, and phone number of the person when the name is double clicked in the first list box. The file I have been given to carry this out with reads as follows. [code] I have no idea what I am doing.I know that I have to use the system imports streamwriter and streamreader, but I really am lost as to how. I don't even know where to begin really.

View 3 Replies

Regular Expressions - Finds All Words Which Consists Of Letters

Jun 9, 2011

[Code] This Regex "^[" + w + "]+$" finds all words which consists of letters "rca". This matches for all words, because all words are made up from "rca". Is there something I could add, to return False for "caar", because "rca" has only one "a", but "caar" has two "a"?

View 4 Replies

Main Array That Is A Structure With Three Fields Which Consists Of Id_code(int), Members(int) And Annual_income(dec)?

Mar 2, 2010

I have a main array that is a structure with three fields which consists of id_code(int)members(int) and annual_income(dec). I've get everything entered and I want to go to a procedure that prints a report giving the total percentage of families below a particular income and the level is different depending on how many members there are in the family.

Option Strict On
Public Class Form1

[code].....

View 6 Replies

Double Click On Datagridview Row In Order To Display A Form That Consists Of Data Detail View?

Apr 11, 2009

I would like to know how I can make this happen?

When I double click on a row on a datagrid, a form will appear like the above screenshot.

When I double click on the row which consist of Brian/Kendall, a form will appear and should show Brian in the First Name text box and Kendall should appear in the Last Name textbox.

View 7 Replies

Basic Application(windows Forms) Doesn't Exit Properly After Navigating Through Forms

Jul 9, 2010

I have a basic three form application. It doesn't seem to close after navigating through forms. If I were to open the application, and the main form is displayed. If I press the X button, the application closes fine(Goes from processes) If I were to open the application, and then navigate from the main form to another form using me.hide & form1.show, and press the red X on Form1, the application again, closes fine.

[Code]...

View 6 Replies

Application That Has Multiple Front Ends Developed Using Windows Forms / WPF / ASP / Compact Framework Mobile Forms

Apr 9, 2010

I have the requirement to create an application that has multiple front ends developed using Windows Forms, WPF, ASP and Compact Framework Mobile Forms.I would like to be able to create a series of obejct representing the business logic and have this logic accessible from the various front ends available. My first thought was to use remoting as I'd like to be able to pass the business objects back and forth between client and server but the compact framework doesn't support remoting and also transferring a full framework business object to a compact framework business object doesn't seem possible.My next thought was to use web services but again the passing of business objects seems to be very hard to accomplish. Without doing this I would have to create individual web methods for each business operation.

Finally my next option is to use sockets and write the whole client/server logic within some classes and expose them to the UI/Business layer. My only problem with this is it is not scaleable should the number of clients increase dramatically whereas using remoting or web services I can host the solution via ASP.Net.Does anybody have an ideas on the best way forward for this or even have any input on how they would write an application that required a windows form, wpf, asp website and mobile device GUI all of which want to use the same business logic?

View 3 Replies

Application Does Not Return From Call To System.Windows.Forms.Application.DoEvents?

Aug 2, 2011

I have a windows forms application written in VB.NET which scrapes information from serveral web pages (who doesn't right)? Anyway, I am having problem with one particular site where partway through the page navigation my application hangs. When I press pause (or break) in the debugger, it stops on a call to System.Windows.Forms.Application.DoEvents.

Resuming execution shows that it really is stuck on this line (it does not reach the next line of code). It also hangs about the same point each time I run it (at least its consistent). Since System.Windows.Forms.Application.DoEvents yields to other threads on the same processor and then resumes execution of the current thread, I think the problem is that some other thread is not behaving well (not returning from some event handling code). I thought Windows 7 was pre-emptive, which makes me
doubt that theory but I really don't know.

[Code]...

The program scrapes somewhere between 12 and 14 pages before it gets stuck on the call to DoEvents. Does anyone have a clue why this would happen? Why would any call to DoEvents hang?

View 1 Replies

Re-direct Output From A Console Application To A Textbox In A Windows Forms Application?

Sep 14, 2010

I am trying to use the System.Diagnostics.Process class.I have the following Windows Forms application. It consists of 1 Button and 1 TextBox. The only code is for the button click event as follows.

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim myProcess As New Process()

[code]....

View 2 Replies

Convert A VB2008 Console Application To Windows Forms Application

Feb 7, 2010

I have a fully functional multi-threaded VB2008 console application that I need to convert to a windows forms application. I am doing this to add additional functionality at a later time. How would I go about doing this?

View 9 Replies

Forms :: Transfer Console Application To Window Form Application

Dec 22, 2011

modify console application below to window form application for me.I've tried by myself for million times, but i couldn't console application.rar?

View 2 Replies

Write A Program For VB Class That Consists Of A Resistance Checker Program?

Sep 20, 2010

i have to write a program for my VB class that consists of a resistance checker program. I've searched like a madman to help me through this and I have found nothing >. The program consists of 2 combo boxes, the first one is the nominal resistance drop down list of the numbers :100, 150, 220, 330, 470, 680, 820 and 1000. The second list is of the tolerance numbers; +/- 0.4%, +/-0.6% and +/-0.8%. Now what i want to do is select a number from the first combo box and select the tolerance level of the second combo box and i input the resistor of said value into the text box. when i click the check resistor button it should display a message saying if the resistor is in or out of tolerance. For now I have the form all laid out and the values inputted into both combo boxes and i can go to run the program i am able to select said values. Now my problem is trying to get the right code so that i can check the resistors value.

View 2 Replies

Converting MS ACCESS Application To Windows Forms Application

Jun 23, 2010

My boss gave me an MS Access application that was developed by our former colleague. He wants me to convert that application to VB.Net Windows form application. I went through the MS Access Application. It contains tables, queries, forms, reports and macros. I could not find the programming (Where is the code written in MS Access?). My boss wants the windows application to be same as the MS Access Application (both in design and logic). I don't how will i develop the windows form. How can I achieve this?

View 2 Replies

Converting MS ACCESS Application To Windows Forms Application?

Jun 23, 2010

My boss gave me an MS Access application that was developed by our former colleague. He wants me to convert that application to VB.Net Windows form application. I went through the MS Access Application. It contains tables, queries, forms, reports and macros. I could not find the programming (Where is the code written in MS Access?). My boss wants the windows application to be same as the MS Access Application (both in design and logic). I don't how will i develop the windows form.

View 4 Replies

Forms :: Two Forms Application Is Closing

Dec 12, 2011

I have two forms and a button on the first form. What i want is when i click the button the second form to show and the first one to close. But this isn't working with: Form2.show() Me.close All the application is closing with the code above.

View 4 Replies

Forms :: On Top Of Application Only

Mar 17, 2011

I need a form to only be shown on top of all the other forms on my application, but not any others.

View 1 Replies

Run Application Without Any Forms?

May 4, 2009

I have a VB.NET application that will be launched from Windows Scheduler and will perform periodic database operations to a Sybase ASE system. I performed development and debugging by launching the code from a button on a form, but now I need for the application to run without intervention. Is there a class I can place the code under instead of the Form class I started with? How do you run VB.Net code without launching from a form.

View 3 Replies

Apply Changes To All Forms Of An Application

Jun 21, 2010

Is there a way to apply any changes made to an entire application and not just the open (active) form that you are in? I.E. I change the backcolor to a color from a color dialog. I want that chosen color to be applied to all the forms' backcolor in my project. Can this also then be applied to all the other controls' backcolor? The code that I posted works but all forms and controls have to have the changes applied to each one separately.

[Code]....

View 1 Replies

Forms :: .NET PC Booking Application?

Oct 11, 2011

I am making a vb.net client application that works with a php based website where users can reserve a pc for themselves at a certain day and a certain time. I have made the application in such a way that upon logon, it queries the database and finds the person who booked pc at this time and compares the username to the person logged on. If it matches a welcome screen is showed with additional options. Else a window is shown which says "This PC is already booked. You will be logged of in 10 seconds".

The problem i am facing is, i have coded the close button to logoff since i dont want user to bypass this part, but yesterday i saw that if i close the app directly from taskbar (processes) it just closes.without logging him off.How can we code or is there anything we can do that, even if he closes the application through task bar there is still an instant log off?

View 6 Replies

Forms :: Get Key Presses On Application

Jan 4, 2012

I want to get key presses on my application. The problem is when I use API.UnhookWindowsHookEx and after sometime to restart hooking as follows, application does NOT gets the key presses anymore. [code]

View 1 Replies

Loading .net 3.5 Wpf-forms In A .net 2.0 Application?

Aug 19, 2009

I'm trying to load and host a WPF control in a .net 2.0 windows forms application. The WPF control should only be loaded if .net 3.5 is installed.

I found a link to Hosting WPF Content in an MFC Application and that is about what I'm trying to do but my C++ knowledge isnt sufficient to be able to 'translate' it to .net.

here is another link: Hosting WPF Content in a Java Application that doest the same again but I dont know where to start writing that code in .net.

View 3 Replies

Multiple Forms In One Application?

Jul 28, 2009

Is it possible to make an app where, for example, I will make one form which will have buttons linking to a number of other forms which take the place of the first form?To use a bad example to illustrate what I mean, where it will be like reaching the load game screen in Pokemon on Gameboy; I have multiple options that will all lead me to a new form (in the same window).

View 1 Replies

Only Having One Tab On The Taskbar For All The Forms In Application

Dec 16, 2009

Is it possible to make my app only have one tab on the taskbar? I have already created all the forms and now i am 'tidying it up' and i want there to only be one tab for the whole app. Will i have to set one form as a parent and all the others as child forms? Or is there a setting that just needs to be turned off?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved