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
ADVERTISEMENT
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
Aug 29, 2008
I am using VB 2008 Express: The template forms for splash and about screens have a background image
consisting of 3 circles (orange, green and blue).I would like to use this image throughout my app,
but can't find it anywhere.Does anyone know where this is located in the visual studio program
structure?
View 2 Replies
Jan 12, 2012
In the very near future I'll have to develop an application that uses multiple screens.
So I'll give you a practical example:
I have 4 screens where different pricing infomation is being displayed. At any given time, I have to show a Promotion which is a single image that needs to be displayed across all of the screens with text scrolling across the screens.
Now I'm wondering what the best way would be to achieve this.
At first I was thinking of using one form and to stretch it across 4 screens, while I create 4 'areas' on the form that represent a screen. However when you extend a form this big I'm afraid the text is going to look horrible.
Then I was thinking of using 4 forms and split up the image into 4 different images which are displayed on the different screens. However to get a scrolling text right on 4 different forms, that's going to take some trial and error.
how I can achieve this form of digital signage?
I want to use VB.Net unless this would seem impossible and I have to use other software?
View 1 Replies
Jun 27, 2012
I am switching from Winforms to WPF in April. I am also going to be in attendance at the Visual Studio Launch in Las Vegas.I have a real need to get up to speed quickly in WPF, so What sessions are going to be the best use of my time?I've got some picked out already, but I'm looking for some more advice on how to wade through all the marketing fluff and get some real educational value out of these few days. I have not been to one of these events before, so I don't really know how much is marketing hype, and how much is solid content/A couple of the workshops look interesting (VPR02 and VPS02), but I don't know enough about the actual content of these to justify the extra expense right now. I do have WPF learning planned other than just these few days in Vegas, but since I'm going to be there anyway, I want to learn as much as I can in the time available.
View 2 Replies
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
Jan 22, 2012
I'm using Visual Studio 2010 Pro on a Windows 7 PC, to build simple VB Windows Form Applications (I've just started learning VB). Lately when I try to debug my applications, it takes unusually long. For example, an application with just a blank form and nothing else will take about a minute to build, and then it will sit for another minute or two until the app window pops up. It didn't use to do this!
View 1 Replies
Nov 5, 2010
I have a program that after clicking start, starts looping. Most of the code is in the "start" button event, and the timer keeps calling it every second. Basically the program reads a line from the serial port, opens and reads a couple text files, opens and writes a couple text files, sends a string out the serial port, then repeats.
After about 24 hours of running, the computer and this program get very slow. Screen updates get really slow and clicking on buttons takes the program several seconds to respond. The actual loop itself slows too, I think, but not much. Restart the program and everything is happy again. What would be the best way to go about troubleshooting this? [Code]
View 4 Replies
Feb 5, 2012
Does anybody know why hitting web services the first time takes much longer? I am not sure if this is per user, or per the whole application, meaning that if one user is hitting a web service, will another user hitting the web site also have to wait a while? I am not sure what is happening to rev up the web service.
View 3 Replies
Feb 27, 2010
I'm using Process.Start method to launch another application from my application. Until today, there was no problem. But I have tested my application in a different OS, Windows XP (SP3), and my application didn't work right on that. I'm also using arguments to run that application. I guess for some reason my application couldn't send arguments to other application correctly under Windows XP. Maybe it is related to my code. But you should know, it works great on Windows 7.
[Code]...
View 3 Replies
Jul 1, 2010
I am using VB.Net with Access DB. Main form is a Parent MDI. Each form when open first time is slow. It takes noticible time. But, from second time it becomes very fast.
View 6 Replies
Aug 12, 2009
We have a project for a client that is written in VB.NET. In one of the projects, we have about 100 modules, which are all VERY simple. They're extension methods that convert between object types. Here is a small snippet:
Public Module ScheduleExtensions
<System.Runtime.CompilerServices.Extension()> _
Public Function ToServicesData(ByVal source As Schedule) As ScheduleServicesData
[code].....
View 2 Replies
Dec 14, 2011
I am trying to launch a application from a visual basic script. Everytime I run the script it looks for the application in whatever folder the script is sitting in. If I put the script in the folder where the executable is it works. Unfortunatley this script need to run from users temp directories.
' *****Declaring variables*****
Option Explicit
' Comment the next line out if you are not getting this to work and you need to debug.
[Code].....
View 1 Replies
Mar 8, 2011
We have a company intranet and the powers that be think it would be nice to have a collection of icons/links representing the applications that most reps use (Outlook, Excel, few other apps).
The idea would be that if the application is installed, clicking the link/icon would launch the application on the client machine.
Anyone ever had a requirement like that and been successful implementing it?
View 3 Replies
Apr 28, 2009
In VB 2008, I am using the class 'process' to launch and external application with a few parameters. Does anybody knows how can I send it programmatically to second monitor?
View 1 Replies
Jul 13, 2011
I want to launch an .exe file from my resources.?
View 1 Replies
Aug 15, 2011
I've been working on a piece of software for a few weeks now and I've got to the point where I'm publishing it and testing it on other computers, namely my colleague's. We're both working on the same network and have similar permissions for our accounts, but for some reason the application will launch on my account but not his.
We've tried using the same computer and just changing accounts, but that won't work either; he still isn't able to launch the published application.
I receive the standard "[x] has encountered a problem and needs to close. We are sorry for the inconvenience." message.
What is baffling me is that we've tried previous versions on his computer and they worked just fine. I can't think of any changes that I've made that would suddenly stop the application from running.
A few extra pieces of information: the application has a splashscreen, which displays for a few seconds before the error message crops up. In this time, the program is supposed to check if certain files and directories exist and, if not, create them. It also changes file attributes. These files exist in a directory we are both able to access and both have permissions to change. It also changes and sets some variables within the program itself, but I don't see that being an issue. It is able to catch exceptions of type IOException and InvalidOperationException (which was being thrown when a computer didn't have access to the intranet).
View 4 Replies
Mar 7, 2011
I have a windows program which is launched after pressing certain key combination (if its already running). Now i want to do this triggering through vb.net code? How can it be done?
View 3 Replies
Feb 10, 2011
how to check the server DateTime when the application launch. i want to make sure the user PC has the same DateTime as server when the user use the application. Reason being is some user may tend to change their DateTime backward and it causes a major confusion when it update in the server database. Below is my code....Both of the code giving problem and does not compare the date time to my pc datetime... how to check the the server datetime is same with the pc server time....
Public Sub GetServerDateTime()
Dim WMIScope As Management.ManagementScope
Dim WMIConnectionOptions As New Management.ConnectionOptions
[Code].....
View 1 Replies
Aug 26, 2010
I run the app under current logged in user from the service.To give you background, I have a VB.NET Windows service whose sole functionality is to run a Winform App at a specified time. Apart from that it also sets a system wakeup timer so that the system can be woken up at the specified time, if it goes into standby/sleep, to run the app. This service has to cater to XP/Vista/Win7 desktops on our network. This service won't run on servers and laptops.
The Winform App shows a UI for the user to provide some inputs. If the user does not provide the input within 15 minutes, then it defaults the value and then goes into system tray icon. The user can click on the icon and change the values later (within in a specified time frame and that too only twice).
There is absolutely no interaction between the service and the winform app apart from the service starting the app. It also monitors if the app has been killed by the user/crashed. If it has been killed/crashed, then a new instance is run after 30 mins from previous run.
If there is no user logged on, then also I want the app to be run at the specified time. As I said before, the app has a default timer. So if some user has just logged off from the system, then defaults would be set by the winform app.Now coming to why I am stuck with this design - I cannot use TaskScheduler because it has been disabled on all machines and security team is not willing to change it. TaskScheduler had the option to wakeup the machine from sleep and other things. So basically I ended up creating a service which is acting like task scheduler.
Currently when I run the app.exe via process.start() within the service, its running under SYSTEM account as the service is also running under LOCAL SYSTEM. So basically I am not getting any UI. Is there anyway to run it under the current logged in user? I am not worried about multiple user login as we wont be running it on servers and switch user is not enabled on our desktops. Even if somebody has done a remote login via mstsc, then also I need the run the app and show the UI to the user.
View 1 Replies
Mar 19, 2011
I have developed an application which launch an external executable. I want to be able that if I am using another one, like notepad, I dont loose the focus to the one called by my application. I have test it changing the startinfo.windows style ( http://msdn.microsoft.com/en-us/libr...ndowstyle.aspx ) from Normal, minimized and hidden.Every one I have used make notepad loose the focus to the new launched application. Is it there any way to launch an application and make this dont get the focus, in order I can continue working in other app without problems?
View 7 Replies
Feb 8, 2010
Gentlemen, I have an application made by a Vendor that sends a set of arguments to an application I am working on. I am unsure how to "launch" my application with these arguments. The vendor's app is a service that runs and launches my application when necessary. I'm assuming i need to modify the main form's constructor, but not sure.
View 2 Replies
May 3, 2009
I know how to run forms in second monitor, but I dont know how can I lauch and external exe program in second monitor. How can I do this?
View 9 Replies
Apr 12, 2007
What I'm trying to do is to launch Powerpoint Wiever 2003 in my secondary screen.I can get a form to launch in the 2nd screen but any programs I launch from that form stary screen.[code]
View 5 Replies
Aug 20, 2010
I have a legacy application that has an interactive graphical user interface, but also periodically checks for files in a directory and reacts to the files. I want to launch the application from a VB program, but not see the GUI (i.e., just let the file interface do it's thing). I really don't want to see the application running on the desktop at all (e.g., no windows, nothing on taskbar), the only evidence would be if I checked task manager I'd see it running.
Obviously this app would be ideally a service, but that's not where we are and I can't change it so I'm trying to simply not see the GUI.
I've seen the ProcessStartInfo.CreateNoWindow and WindowStyle = hidden flags but they don't hide the GUI of the legacy app.
again launch the legacy app (actually an unmanaged C++/MFC app) from a VB managed admin app.
View 4 Replies
Jul 16, 2009
I have seen various applications that can be launched from a link embedded in a web page. example: irc ://irc .freenode.net/#roomname Opens IRC and joins the room.
View 1 Replies
Jul 22, 2009
I have designed an application just like it is an Excel table. By changing each textbox the application runs a huge amount of vb code and it takes time.
E.g. you want to enter a three digits number it takes from two to four and sometimes more seconds for ech digit to enter. That`s really embarrassing.
View 11 Replies
Jan 23, 2009
I have a problem with a application, when i start the program the speed is ok.after 1 hour of use the prohram go very slow.
View 7 Replies
Aug 24, 2009
I have been developing an application using Visual Studio/VB and access 07 for my db. On the system I am developing my app. the db is local and the speed of the application is very good when I debug it. As I publish my application the db goes on a network server and the application is installed/used by 5-6 pc. The speed of the program drops alot as time passes and as is used, speed goes even more down. My problem is that I do not know what is making this change. Is it the server fault, the other pc, the many users, the lack of garbage collector ( other than the one vb does alone ), the existense of the db on the server? Based on the information I give does anyone has a tip on how to increase speed. I dont know how to begun to start fixing it as I do not know where the problem resides. One example of poor performance is the search I do on the program. For the first search I do they are ok then the more I make the slower they get.
View 16 Replies
Nov 1, 2010
I can launch Excel with the document I want using VB.Net 2010:
Dim p As New System.Diagnostics.Process
p.StartInfo.FileName = "c: empmyfile.xlsx"
p.Start()
Excel starts OK with the file opened. I edit the file, but when I close it down, Excel doesn't ask if I want to save changes. So it closes and loses my edits.
If I do the same with a text file:
Dim p As New System.Diagnostics.Process
p.StartInfo.FileName = "c: empmyfile.txt"
p.Start()
It opens (in Notepad++), I edit it and close it, and Notepad++ asks if I want to save changes.
I've now tried similar code with a Word document - and that's OK. Also with an OpenOffice Sheet document and that works as well.
This behaviour is happening in Windows 7 with Excel 2010. It works as expected in Windows XP with Excel 2007.
What am I doing wrong with Excel? Is it me?
View 2 Replies