Link To A Small Zip File With An Existing VB
Sep 23, 2010
Below is a link to a small zip file with an existing VB (2005 I think) program. [URL] This programs detects if the OS is Locked. I want to make a small edit, and have found the required code for the edit, but I have been unsuccessful at attempting to implement the code. As I said this program only detects windows locks and unlocks. What I want to do, is set it to run an exe when I lock my computer. Doesn't matter what the exe is, just a very basic program.
I however have not been able to find where I need to insert this code. The zip file contains about 6-8 files, I thought I found the if statement where I needed to drop the code but even when I added it to every if that seemed probably I couldn't get any result. what if statement the code I need to add should go into. honestly all I need, I can handle the code past finding that.
View 7 Replies
ADVERTISEMENT
Mar 17, 2009
Has anyone a sample code, or point me towards a guide on how to link in a Query from an existing Access Databse into my vb? Im wanting to populate some text boxes with information from a query.
View 1 Replies
Dec 4, 2010
I'm using visual basic 2010 express..I'm building my own web browser and want to add a download manager.I have been able to build one that will download a file if I type the file location into a text box.What I'm trying to figure out is how to have the download manager open when I click on a download link on a web page.How to make the download manager know it is a link to a downloadable file as opposed to something like a link to another webpage?
View 3 Replies
Aug 5, 2011
I have a workbook (Workbook1) that runs through some steps using visual basic, which ends up opening another workbook Workbook2). Once Workbook 2 is opened, I need to copy a section of data from it, into Workbook1 int a specific worksheet. I was able to do this by recording a macro, but the challange is, the name of Workbook 1, and Workbook 2, will vary by User. When I created the macro it uses the files as they are currently named. The section of code is below.
[Code]...
View 1 Replies
Aug 27, 2010
I need to make a small programm for ticketing on a parking for a small hotel.So i have 2 Printers pariking In (for delivery of the tickets) and 2 Readers PArking Out.Both Printers and REaders are working Serial.So i need to poll the serial ports of the printers and readers every second.The data is stored on a SQL database so i need to read and write in the database.Can i do this with 1 PC and 1 programm or 1 PC and 4 programms that are runnning at the same time ?
View 2 Replies
Feb 1, 2010
On form 1 , i have a number of buttons that open up different websites.What i want to do is when i click a button on form 1 , i want forum 2 to show ( Form2.show() ) , Form 2 will have a list (Buttons) of internet browsers.
View 4 Replies
Dec 17, 2010
Is it possible to use VB code to code an application that can merge Hex data from a small (50kb) .dat file with the hex data from another small (50kb) file? This would require designating specific offsets, which I can pre-program, but If I could have user input this would be preferred.
Example.
Hex_1.dat
00 00 00 00 00 11 11 11 11 11 (Offset = 5)
Hex_2.dat
22 22 22 22 22 33 33 33 33 33 (To offset = 5)
Result file
Result.dat
11 11 11 11 11 22 22 22 22 22
View 19 Replies
Sep 19, 2011
i have a small program to get text from a DAT file. the program gets all the text and puts it into a rich text box (rtb1) then I click a button (btnformat) to split the text in the dat file into indexes so that I can output the indexes that I want to an excel file. This program works when I use small amounts of data but if I use say 800 lines of text the program crashes/ can't handle the volume of data and just stalls.
View 14 Replies
Jan 30, 2011
I have a large wikipedia dump that I want to cut into different files (1 file for each article). I wrote a VB App to do it for me, but it was quite slow and crapped out after a few hours of cutting. Im currently splitting the file into smaller 50mb chunks using another app but thats taking a long time (20-30 minutes for each chunk). I should be able to cut each of these up individually if I do this.
Does anyone have any suggestions of a way to cut this file up quicker?
View 4 Replies
Dec 30, 2009
I'm looking for a code snippet that will add graphics (lines, circles, etc.) to an existing pdf file & write it out as a new file.
View 6 Replies
Jan 24, 2012
here i am reading files from one root folder and after reading that we are moving that particular file Success folder and taking a copy of that in to back up folder normal
while reading file i will check file naming convention by targeting backup folder if suppose it was exists in backup folder then i m moving the file to duplicate folder
my problem if suppose again same file came to process this file already existed in duplicate folder how do send the file in to duplicate folder, unfornately i dint have any property as file rename
If File.Exists(Swift_Backup + "" + Path.GetFileName(CBFile)) Then
' File.Move(CBFile, Swift_Duplicate + "\" + Path.GetFileName(CBFile)) 'DUPLICATE FOLDER'
[Code]....
View 1 Replies
Nov 24, 2010
I have a csv file that needs to be automatically updated on a daily basis. I am writing a vb.net app to accomplish this. However, Im having issues with the entire process.I need to be able to read in a csv file, manipulate the data and then update the existing file. I have dabbled with using the Excel objects but I need some assistance.
View 6 Replies
May 11, 2009
i'm working on saving a text file.. the code i have, works without a question, no problem there.Imports System.IO
[Code]...
View 7 Replies
Mar 7, 2009
I have a small Windows Application that displays a .chm Help File when F1 is pressed. What I would like to do is to close the Help Display programatically for example when a Reset Button is clicked and the Form is 'Reset'.
View 2 Replies
Mar 17, 2012
I have spent the last 20 plus hours trying to parse a incredibly small XML file with Xpath. I understand that it is a ready only, extremely fast way to pull values out of an xml file. Here is the string I am working with. I have a 3rd party function that returns results, based on these xml results i would like to retrieve certain vaules.
[Code]...
View 14 Replies
Feb 4, 2009
What I'm trying to do is write a small program that copies a file from a USB to another directory so a program already installed on the computer can load this data.Usually copying files from one directory into another wouldn't be an issue.
[Code]...
If possible i would also like to change the code i have written so it just loads January2009.txt from the "root directory" of the USB rather than having to specify H: because if i put the USB in someone elses computer this could change to G: and then it wouldn't work.
View 4 Replies
Dec 30, 2008
When i try to save a file with the same name as the existing file the message box pops up asking me if i want to replace the existing file. When i click yes the program crashes and this message come up An unhandled exception of type 'System.ArgumentException' occurred in system.drawing.dll.[code]
View 12 Replies
Nov 27, 2009
I have a small database program that gets data from csv file, I created a function that formats the font color of textboxes based on dates and values.
CODE:
I place this in text changed event and I have a problem implementing it, because the date conversion will not take place until the data is loaded. The second part works but not the first(Date) part.
I can create a button and use its click event to format the text boxes just fine, however i wanted the text boxes to be formatted on the fly . The problem is no matter where i call the function the date conversion wont work.
View 5 Replies
Nov 11, 2010
I need to make a program in vb that takes a 1 page existing pdf that i specify and inserts that into another existing pdf that i specify.
View 4 Replies
Mar 5, 2012
i want make a program like a login tool game..in login tool program..i put a button and WebBrowser page..then i want make a my button and WebBrowser read link or target in ini file or inf file...how to make it?
View 2 Replies
Oct 30, 2009
I have a small console application that writes the [TARGETDIR] from my msi installer to a text file.If I choose C:Program Files as the installation folder, it only writes out C:Program..What would you use so that it doesn't stop writing when there's a space? [code]
View 3 Replies
Dec 31, 2010
I know how to write and read files but I can't seem to add 1 to an existing file.
This file currently contains "10" but when I click a button I want it to +1 to that number.
I've tried a.WriteLine(+= 1) but it gives me an Expression Expected erorr which I don't get how to fix or what's wrong with it.
If anyone can help me fix or give another code that +1 to the existing numbere.
View 1 Replies
Oct 11, 2011
I'm looking for a way to (easily, by preference ;)) create a download link to a file on a separate file server.The situation is as follows: the application I'm developing (asp.net 2.0 in vb.net but I have a similar issue in c#, either solution works for me) will be run internally for a company.As is good practice, the file storage and web application are on two separate servers.I basically need to be able to create a download link to a file, the only available URL i have to access the file is servernamefolder1folder2folder3file.txt (can be any sort of file)[code]Which doesn't work for obvious reasons. It used to be set up to write that file to the application path itself and that worked perfectly, but it isn't good practice and that's why I'm changing it (or trying to).I read solutions about creating a download page and then having a table in your DB which holds the links and returns the proper web URL for download but the time constraint I am faced with unfortunately doesn't allow me to develop that.
Assuming I can provide a string with the full filepath to the file like the above, what is the easiest way to just create a link that, when clicked, downloads the document? I have 0 admin rights in this environment. That really isn't helping me. Let's assume I am given the correct link like above and have the appropriate file access rights and such.The above example does work in IE, but not in Firefox and Chrome. IE converts it to a file://servername/... link which does what it's supposed to, but FF and Chrome both actively decided that this is unsafe and have disabled it from their browsers.
View 2 Replies
Jan 28, 2009
I want to write out to an xml document from a database which I can do but how do I append to it if it already exists?[code]
View 6 Replies
Jan 19, 2010
Im creating a login system that allows staff to clock in using a 5 digit code. Staff members can also use the "add an employee" function to add a new employee to the Random File.The problem is, everytime i try to create a new employee and hit the save button, the new record writes over the existing records, one by one, everytime the programme is stopped and started up again.
My Question is: How can i get the new record to be saved, without deleting existing records,
Here is the save buttons click method:FileOpen(fileNumber, "C:employee.dat", OpenMode.Random, OpenAccess.Write) 'open the file with Write Access
myEmployee.name = txtNewName.Text 'adds the name
myEmployee.id = txtNewID.Text 'adds the ID
FilePut(fileNumber, myEmployee, n) 'save to the file
FileClose(fileNumber)
View 2 Replies
Aug 14, 2011
Over writing an existing file.
View 6 Replies
Apr 21, 2009
This code is working but i have a few problem in sorting of existing file.. example. Output:
[Code]...
View 2 Replies
Dec 5, 2011
I have xml file like following for displaying ads using asp:AdRotator in asp
<?xml version="1.0" encoding="utf-8" ?>
<Advertisements>
<Ad>
<ImageUrl>~/xxx/xxx.jpg</ImageUrl>
[code]....
now i want to add new data between ... tag in asp.net using vb how to do that..?
View 2 Replies
Feb 10, 2009
i have started a program that reads the names, number and picture location from an xml file and populates text boxes. I now want to be able to update the text boxes and rewrite the xml file and save it to the same location.
Imports System.Xml
Dim H1 As New XmlDocument()
Dim xlist As XmlNodeList = H1.SelectNodes("/itemname")
[code].....
View 1 Replies
Apr 16, 2012
So I tries to read txt file to memory, sometimes (just sometimes) I getting this error: The output char buffer is too small to contain the decoded characters, encoding 'Unicode (UTF-8)' fallback 'System.Text.DecoderReplacementFallback'. Parameter name: chars
[Code]...
View 3 Replies