I am using VB for our entire company. Recently, we have had a need to dial into a VT220 to retrieve information from our customers. We are using ZOC terminal and it has a .dll for Visual C that lets us automate ZOC without needing a human interfacing with it.
Does anyone know anyway for a VB application to run a VC file? I highly doubt it and no one here has ever tried something like this, nor have I ever heard of anyone try this before. Just trying to see if this is even possible and if so - how...
Limitation: -We cannot restructure our company using VC (way too large)
Reason: -We import data on a daily basis but do not want to have to have someone remember everyday to run ZOC. In addition, our imports are done before anyone is in house.
I do one project in visual basic 2010.In visual basic 6 project can be make Package and deployment (setup file or install file) file using Package and deployment wizard.But in visual basic 2010 express edition does not have Package and deployment wizard.how to make Package and deployment (setup file or install file) file in visual basic 2010 project?
1 List all of the data from Teams.txt in a Listbox. Include suitable headings.
2 List all of the data from Results.txt in the Listbox (use the same Listbox as in 1 above).Include suitable headings. Note that you cannot assume that the file contains onlyresults for the first 3 weeks of the season. Your program should be able to process a results file with more or fewer results.
3 List all of the data from Results.txt in the Listbox. However, in this case the actual team names should be output (your program will need to get this data from Teams.txt. The data should be formatted so that it is aligned correctly. Include suitable headings.
The output might look as follows:
Home Team Away Team Home Team Goals Away Team Goals Bunbury Braves Nedlands Nodders 5 2
When i try to open the file in Visual Basics 2008 it says: "The selected file is a solution file, but was created by a newer version of this application and cannot be opened"
I'm working on a school project right now and I have everything fine except this one part of the project: "The audit and errorevent logs should be archived if they are larger than 5K and up you need to keep up to 3 copies of the files." I know how to read and write text files just fine, so I don't need help with that. What I don't know is how to archive a file based on file size, or how to keep up to 3 copies of the files?
im making a simple program that will copy a single file. im trying to get the name of the file that i selected in the open file dialog but i get the location and file name (C:Users****Documents est est.txt) im trying to just get (test.txt)
I'm trying to use a .pdf file I've added to my project but can't figure out how to get it to show using the webbrowser control. Here is what I'm using to call it:
im having problems copying a file to another folder and replacing the original im trying to copy a dll to another folder but it says you can do this because the file already exists in this folder how can i do it so it will replace the original
So, I've got three files that are auto-generated XML reponses that I need to import into my database but I'm having some serious issues with thinking this one through and then coding it (I haven't coded in quite some time). The database is an Access accdb file with table tbl_ext and fields e_FN, e_LN, e_EXT, E_LOC.I need to do the following during each routine.1) Erase all current records in the table.2) Scan each of the three files (format of the files below), pulling out the First Name (e_FN), Last Name (e_LN), Extension (e_EXT), and Location (e_LOC), for each "record" in the response file.What would the most efficient way to do this, be? As I said, I need coding help in the extreme here.An example of the file would be:
I want to have a button where if i click it c:program filesinfinity softwareaerocrash appplayervlc.exe will open the file c:program filesinfinity softwareaerocrash appseason 11.mpack. I know shell execute can do it but i dont know how, im a newbie so please explain properly
i will explane more about it: Its continued from the thread [URL]..So here i need help about to start the GameServer1 2 3 and to write in Label2 message if the program closes
Example:GameServer1 closes In Label2 write message : GameServer 1 crashed , reopened after %seconds Here %seconds are the seconds from the .xml file in Time = the same goes for GameServer2 and GameServer3
And the last thing left is to start the links by the buttons Button3 (will start GameServer1 Path , Name , Port that are from the config file) Button4 (will start GameServer2 Path,Name,Port that are from the config file) Button5 (will start GameServer 3 Path,Name,Port that are from the config file)
For more easy way to help you to understand what i need i will upload my source code so you can take a look and help me made it[URL]...
I've created a help file to a program, and to test it, I've put it in BinDebug directory. It worked fine, and now I have to publish the program into a server, but it seems that the help file isn't running for the user.I'm using HelpProviders and Application.StartupPath & "help.chm" to access it. Oh, and I selected "The application is available offline as well (launchable from Start Menu)" option in Install Mode And Settings.What a I have to do to make it work? Do I have to put the help file into BinRelease?
I'm trying to write data to an INI file, I've got some code to read it: url...I've tried to modify this code to get it to be able to write to INI files, but I haven't had much success.I know there are DLL's designed for this, but I would like to have my application so it can be distributed as a single EXE.Also, I know there is My.Settings, but I cannot use this, as this INI file is used by another application, that I have not developed. So, I was wondering if anyone could help me modify this code to write to an INI file, something like WriteIniValue(IniPath, Section, Item, Value)
I want to know how to get the name of the profile's default of Firefox by vb.net and how can i editing Js file on vb.net < like i want to insert txt on the je file Under the line number 47?
How to open an array into visual basic. I have it saving as a text file correctly but i have no idea on how to open it up to use it again. what i have so far is Private Sub Hour1ToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Hour1ToolStripMenuItem.Click[code]...
I have created a .wsf file which on opening executes some functionality. I need to open this file in vb for my project to work, but i don't know how to do this.
-to know when the file was created (i remember that it is possible as i've done it before)-if there are any other copies of the same file in the entire pc
I've just recently started noticing this crash as my program has gotten more complicated. I have a few lines that look like this in my program: Dim alines() = System.IO.File.ReadAllLines("C:deviceinfo.txt")
The problem that I am seeing is that my program is updating these files every second, so sometimes the files are being appended and or just being replaced as it is trying to run this line. Receive the error, "File is in use or does not exist." Is there anyway to put a line of code that tells the program that if the file does not exist to check again till the file does exist.
Sort of: If System.IO.File.exists(cstr("C:deviceinfo.txt")) then Dim alines() = System.IO.File.ReadAllLines("C:deviceinfo.txt") else loop endif
Or I read somewhere that you can use: If Len(Dir("C:deviceinfo.txt")) < 0 Then or If Dir("C:deviceinfo.txt") <> "" Then
Maybe: Loop while Len(Dir("C:deviceinfo.txt")) < 0 else Dim alines() = System.IO.File.ReadAllLines("C:deviceinfo.txt") next
I realize the danger of having a possible never ending loop in the program, but I cant think of another way to have the program wait for data and use the data immediately as it becomes available. I looked into having a wait() sub or to do system.threading, but my rational behind not using those are because waiting for 200 ms doesnt ensure that the data actually shows up, I could still receive the error.
I have a database is SQL Server 2008 Express. I have added this database to an ASP.NET project, now I want to add the same database to a VB.NET project, however, when I try to set it up it says I need to choose a different file because it already is in use (which makes perfect sense). So how can I set the database up so ASP and VB can use at the same time?
I want to create a .DLL (my library file) so that it can be used as data source for reports (to use with .RDLC files).Can I use same .DLL in my ASP.Net application for reports as data source (here also .RDLC files).It will save my time and maintain report integrity between WinForms application and ASP.Net application.
I am making an application so I can easily clear up this ini file. The ini file contains such data as playerlevels, abilities they own, abillities available, conclusion: it contains all information for the RPG modification for a game.Now when I have for example this in my INI:
;Each ability will be removed. The problem here is that earlier in the code you also have Abilities= which I really need to keep, I only want to remove it from parts starting with the header [**some name** RPGPlayerDataObject]
I have a peculiar error in a Visual Basic 2010 Express that doesn't seem to cause any problems, but it's there every time I open this particular project. It's a Windows Forms Application. If I do a Build function on the project, the error message goes away. But if I close the project and re-open it, the error is back again.Here's the error as it appears in the Error List at the bottom of the screen:[code]
I'm working on a program. It watches a folder for file changes. in certain cases, it needs delete the files in that folder. sometimes, it has this error:
The action can't be completed because the file is open in another program
is there a way to force delete a file? or this is not possible?