VB 2008 Load .Txt On Start?
Dec 28, 2008how to save user settings. i've been doing this by using a .txt file... now i want this .txt to load on the form startup so the settings will load automatic?
View 3 Replieshow to save user settings. i've been doing this by using a .txt file... now i want this .txt to load on the form startup so the settings will load automatic?
View 3 RepliesIm simply trying to load a file on my network. The file is a database file for access.. This code opens the file on my computer. However on the four computers tested 2 of them throw an error stating that the user canceled the operation. However the user didn't do anything. The error is thrown automatically. The other two are working perfectly fine.
[Code]...
I have a startup form with one list view and one combo box. When combo box SelectedIndexChanged a make call a subroutine that perform read of a file. In Main_Form_Activated i give a default value in my Combo box. The problem is: The program didn't show me the main screen and after call the subroutine to load the file but without show me any screen starting to load the file and they show me the screen AFTER the load of the file.
View 6 RepliesHow can I get my application to load the Sub Main at the start rather than loading a form on start up.
I have tried declaring 'Public Sub Main' on my forms and in some modules, yet in my project properties, it is not one of the options.
i am trying to play a flash and cant seem to have it auto start. i am using the code below:[code].....
it finds and loads the .swf but will not start till i click on the box i want it to appear in.i want it to auto start when the main window begins.
I'm using VB.Net, and I have a set of data which I have to able to filter through fairly quickly.Basically, the program is like google sugest, but instead of a drop-down menu, I'm using a listbox. When a user enters a word, I compare the word using LINQ and filter those that contain the user's input. The data are all strings of variable length (from 0 to 200 characters, most on 150 character mark), and I have 240,000+ of this strings and counting- all stored in an XML file.
A colleague of mine told me that loading all of that to memory (using VB.Net's XML serializer plus collections of string/objects) is not practical, and would slow the 'startup' time of the program. I haven't finished building the program yet and I'm having second thoughts about continuing this path.
So, my question is: Should I continue with my current approach on the problem (which is load everything to memory on startup), or is there a better way of solving my dilemma?
Could anybody tell me which event is good to start the thread to load resultset?
Example :
Dim Table As DataTable
Sub LoadItem
Dim BL As New BLItem
BL.LoadResultSet()
[Code]...
How can I make a timer start 30 seconds after form1.load
View 6 RepliesHow can i automatically start a vb.net application on windows startup or load?
View 13 RepliesIm wanting to load a picture into a picturebox before i start with saving the image. but im stuck i cant figure out how to make the code wait.
cover.ImageLocation = file
cover.Image.Save(path.Text & "mymovies-front.jpg", System.Drawing.Imaging.ImageFormat.Jpeg)
When i use the code above and chack the picture after save it shows me the "x" picture just before the picture is loaded i have had a look at picture.waitonload
how to extract all the content from Twitter more data only start to load after scrolling down to a certain depth.
View 1 RepliesI have made my application to start automaticly when windows start (registry ../currentversion/run/appname + path). In this mode the application start minimized and an little icon appear in the notification icon area. With this icon you can maximize the app or exit it.If you exit the app and start it again using the Menu (Start/programs etc) than the application start in minimized mode (and in this case I would like to have it in normal mode) because the setting autostart is still true.Is there a way you can detect when the application start when windows startup using the above registry or when people click on an icon in the programs menu (or desktop)?
View 2 RepliesI would like to load a GIF file, and start with the first pixel and check to see if that pixel color is closer to Black, Red, Green or Yellow, then take what ever color it closest matched to and output that color as a number, 0, 1, 2 or 3. So just for a small example a 5x4 GIF would be converted to something like this: 0112223322220111332?
View 13 RepliesI recently installed vb express 2008 and with that download i also installed Sql server 2008. Earlier i have been working in MS Access so i have no experience in SQL server. My first problem is how to start sql server. I can see only following:
Start>All Programmes>MS SQL server 2008>Configuration Tools, Import and Export Data(32 bit)>SQL server configuration Manager,SQL server Error and Usage Reporting,SQL server Installation Centre. Moreover in Programme Files i have two folders:
1. MS SQL SERVER and
2. MS SQL SERVER COMPACT EDITION
how to start to create a database in SQL server with Vb express 2008.
I have custom asynchronous WebRequest class that I am testing to find out how fast the request will be cancelled and found some odd results, that starting 6 WebRequests with TPL and cancelling them right away takes 25 sec, but when I used just regular background threads it took only 5 sec.
Update: Running them without cancelling takes with Task.Start 9 sec and Thread.Start 3 sec accordingly.
Imports System.Net
Imports System.Threading
[Code]....
im using vs to create a simple security form, i am successful to create a a form of log but i need some more improve like
1) if the software remain untouch for a minute the login form should be shown as the user try to use it again
2) and how the software start automatically when window start
I'm using Process.Start to start an external command line application and using the StartInfo.Arguments method to send parameters to the application. I imagine I'll need to use a loop... but I can't figure out exactly how yet.I need to send anywhere from 1 - an infinite number of files names to this application. Each file has to be sent one after the other. So once the first one is done, I need to loop back around and past the second one.I can probably use the Directory.GetFiles method to get all of the files, but I don't know how to assign them.
View 7 RepliesI created 3 timers, i want each timer to take turn start which means timer1 stop then timer2 start, once timer2 stop timer3 start. But my code seem to be running together once i click the play button.And is there any ways to easy control how my picturebox move? Because my code for controlling it movement need to keep finding the correct number for it to move.
[Code]...
Visual Basic 2010 - Net Framework 4.0 Client
I have an application (application #1) running with Administrator privileges on Windows 7.
I want application # 1 to start another application (application #2) without Administrator privileges so application #2 is running as a standard user.
Is there a way to do this? I have been using Process.Start.
Here's what I currently have:
[Code]...
I've commented out various things to limit it to specifically this command (example, I can swap mklink out with notepad and it works fine). The command runs fine from a DOS window, but can't be found when I use it this way. I also tried using the SHELL command just to test and I get the same results. No idea why it can't be found, as like I said it executes from the command prompt just fine.
[code]...Cannot Start a Service After Changing 'Start' Property Through Registry
View 3 RepliesI am confused with the terms Build ,rebuild ,start , start without debugging in VS.NET.After writing the code what actually we want to do .We have to run directly by pressing F5 key or we have to build the solution .Usually i tried to run the application after coding and if shows any any errors i will fix that and run again .I never used build or rebuild thing .What exactly meant by building the solution .What is meant by rebuild and start without debugging.
View 5 RepliesHow can I make it so when a button is clicked it will make the program start on start-up but only if the checkbox is checked?
View 9 RepliesI want one of my programs to start only in one folder for example So i want Hello.exe to only start in this folder C:The Hello if the user starts the program on his desktop i want it to show an error and not start.
View 5 RepliesIs it possible to open another app without losing focus of the current foreground app? I have a program that will open another app and test something on it then close it, and reopen it again and repeat. Can this be all done in the back while i am typing away on another app in the foreground without getting interrupted by the new app opening and changing focus?
i dont want the new app open minimized or anything, just quietly open in the background.
I tried using process startinfo.windowstyle and that doesnt help much.
On my program I have a splash screen, which then goes to a form. For some reason, my form (not the splash screen, that's ontop) always starts up behind all the other windows on the screen. Is there a way to fix this, so it starts ontop, but its not always ontop of other windows?
View 12 RepliesI know that to start a program at startup, we should add this subkey
"C:Program Files<myprogram's path><nameoftheprog>.exe"
to
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun
Alright!
But the problem is when my program has to delete a certain file in C:/ at startup, it just can't because it's not ran as administrator!
I have a vb.net application and want it to start at Windows start up only if the user checks checkbox1 the procedures on how to do this and the code
View 1 RepliesWhile i Minimized the program and clossing the program , next times i start the program, it also minimized. how can i prevent this problem happen!! And i want to start the program at position which start minimized. how can i do it!!!
View 4 RepliesI am complete newbie to VB express. I have created a simple windows form that opens programs using menus and so on.Works great using the Process.Start on windows apps (word, excel, etc.) but I have some very old programs that run in DOS I am also trying to open that do not work when using the Process.Start method.
I am able to get the command prompt box to open up and in the title bar it shows the path of the .exe program I want to open but the actual program is not opening.
[Code]...