Design A Utility Which Loads The Text File In Memory?
Feb 13, 2009
I have a text file with 3 columns.col 1 has 8-9 digit numbers which are unique. I want to design a utility which loads the text file in memory.The utility should run in the background while the user enters data in some other app. and whenever that 8-9 digit (from text file)number is pressed by the user a the data from other two columns is displayed at the screen or alert the user in some way. Is there a way to do this things in excel 2003?
View 1 Replies
ADVERTISEMENT
Sep 22, 2010
This is kind of an off-the-wall question but does anyone know if VS 2010 has somekind of utility that will allow you to just drag & drop controls onto a form or something that will help in visual design. I'm just talking for visual purposes only. No code-behind files or anything...almost like a canvas where you can place controls and labels, etc.
View 8 Replies
May 3, 2010
This switching from VB6 to VB.NET is starting to become a major pain I have a program I am making that loads a list of Vehicles from a text file to ListBox1. When the Selected Item in ListBox1 is clicked, it brings up the Image of that Vehicle, called from an external Image folder, so new Images can be added. I have an 'Add Entry', 'Delete Entry', 'Refresh List', 'Save Changed List', and 'Exit' buttons, all coded and working as I want them to - Everything is working better than I planned, without having to Google my a$$ off finding 'snippets' - I figured most of it out myself - What I am trying to do now is have a ListBox2 populated with a section of the text file:
[Code]...
Part in ListBox2, which when an entry THERE is Selected, it can be edited in TextBox2.Is this as hard as it seems? I want all the Vehicle Stats for that Vehicle to show when the Vehicle is Selected, and have the Stats section editable...
View 21 Replies
Oct 2, 2009
I have this code for my update checker. It loads a blank text file on my server containg the current version. I have it set to naviagte to this url then searches the web browser for the current version. If it cannot find it then there is a newer version, and a button becomes visible which lunches a webpage that has the current version. I would like it to loop my Check_for_update code until the webbrowser1.statustext = "Done" Below is the code i have but it doesnt work for some reason. Private Sub Update_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code]...
View 6 Replies
Feb 20, 2010
project im working on for my course,the idea is a photo printing machine that loads up 4 images if usb stick is checked and a different 4 if memory card is checked. and then whatever image is selected appears in the big picturebox on the left [URL] i have 2 print size options set as radiobuttons, radiobutton 1 = 6x4, which costs 25cent per photo, radiobutton 2 = 8x10, and is 50cent per photo.i also have a textbox which will display the number of copies to be printed So here's my dilemma, when the print button is selected alongside one of the radiobuttons i want it to display a message saying something like this "you have selected (whatever the amount of copies)of this photo sized 6x4, or 8x10 depending on which radiobutton is selected, and i want it to display the total cost which is the number of copies multiplied by the rate for the print size selected, then an option saying "Do you wish to proceed" Yes or No.
I did something similar to this in class earlier in the year but cant remember it, it was an airline booking program with 3 types of payment cash, visa or mastercard,upon booking a message popped up saying there is a certain percentage discount for using visa or mastercard
View 5 Replies
Jul 9, 2009
I'm writing a program that basically loads an entire text file into a streamreader variable, then reads this variable line by line and parses and writes a line into a new text file. I'm VERY new and my knowledge is mostly self-taught, but I can't seem to get out of this one. It works for smaller files, but it appears to reach a limit in characters at some point because in a file of 900 lines, it stops writing about halfway through 800 and there are no errors, the program actually completes and the message box pops up.
There are a few things with this code I already know I should fix, such as creating the new text file name, it's messy, I just don't know how.
Private Sub btnProcess_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnProcess.Click
Dim IndexValues As String()
[CODE]...
View 10 Replies
Oct 25, 2006
I'm trying to create a zip file though vb.net and move files into it using the built in windows zip utlity. so far I can create the zip, but not able to move any files to it.Here's my code:
Dim emptyZip As Byte() = {80, 75, 5, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}'Dim oApp As Object
File.WriteAllBytes("c:x.zip", emptyZip)
'The following code I found somewhere but doesn't work'oApp = CreateObject("Shell.Application")'oApp.Namespace("c:x.zip").CopyHere("c:Book1.xls")
View 7 Replies
Apr 24, 2012
I am writing an application that will use a OpenFileDialog control that will read a text file into memory and later process it.
I do have the following filter: Text files (*.txt)|*.txt|CSV files (*.csv)|*.csv|Spaced Text files (*.prn)|*.prn|All files (*.*)|*.*"
When I navigate to my test folder that contains a single .txt file, I see that file. When I change the filter to *.cvs that files goes disappears because it has a .txt extension. That is good. But when I select All files *.* it does not re appear? Why and how do I make it appear.
View 5 Replies
May 14, 2010
I am new to visual basics. I have loads of text files stored in a folder. I only want to chart some of the columns in the text files. How do I use visual basics to charts the data?
View 4 Replies
Apr 1, 2011
I have a piece of code which loads either french or english text and 2 link buttons that allow to switch between.
<%
if publierFR = 0 Then
if publierEN = 0 Then
[code].....
View 1 Replies
Jun 13, 2011
Need to design a program that can encrypt and decrypt messages stored in simple text files using a private key stored in a separate file. Software should also be able to allow the users to enter simple messages that either displays the encrypted or decrypted message. The encryption method should use a simple substitution method. It should be set out in the following format:
Example (the "@" is the separator):
@
The character The Code End of line
A @ 4gh EOL
B @ 84!9 EOL
Has to use the 256 ASCII character codes. The separator will be used to separate the character and its corresponding code.Here are the pseudocodes I have come up with:
� Read any private key file
separator = readline(file);
while not EOF(file) do
tempStr = readline(file);
[code].....
View 5 Replies
Feb 27, 2010
I believe I need the code for Load Event. I have tried many ideas. I have searched the threads here and also google of course. No luck as of yet. Better description: I have a file named hello.txt. The contents of this text file are "hello". I use my program as the default for .txt files. I dbl click hello.txt. My program loads and the contents are blank and it should have "hello" in it.
View 31 Replies
May 31, 2011
I don't know whether it is simple or not because i am new to programming. my requirement is : In my vb.net winform application, the filenames of the files present in "D:Project" willbe displayed in DataGridView1 control. Now I want to load these files one after another into memory stream buffer and add the headers("ID","Name","Class") to the content in the file. Then I want to save these files in "C:" with "_de" as suufix to the filename i.e.,sample_de.csv.
View 1 Replies
Jun 6, 2010
I have a System.Windows.Forms.RichTextBox that I wish to use to display some instructions to my application users.Is it possible to set some of the text I enter at designtime to be bold?Or do I have no option but to do it at runtime?
View 3 Replies
Nov 26, 2010
I have created my webpage in asp.net in 1024*768 resolution, my problem was that when i change my monitor resolution then the controls in my webpage will be displayed in unmanaged manner .
How to arrange items in my webpage which support multiple resolution ...
Whatever the resolution of my monitor the controls in my webpage will display as it is as managed in 1024*768 reolution !
View 1 Replies
Nov 20, 2009
Anyone know what jailbreaking does to an iPhone? If so, is there a way to make a program to jailbreak 3.1.2 in VB or in RealBasic? I guess it'd have to send commands to the hardware and software of the iPhone, and communicate with it pretty well...
View 13 Replies
May 18, 2010
I am looking for information on using mstscax.dll in VB. The goal is to create a utility that logs into a remote service in the same manner as remote desktop. However, my utility is not required to show the desktop.I have a series of commands that I will start off with that will look for users, reset logins, shadow, and message. I have been using a batch file on my RDP to perform these functions, but we are already looking for more functionality and power than what the batch commands can offer. I am googling 'mstscax.dll' but the results have been less than satisfactory although I continue to search.
View 2 Replies
Jun 2, 2011
lets say I have a form (form1) with lables a-z which are all designed with default text "0". So they all show 0 on program startup. which is fine. I also have a dialog with 2 TextBoxes; I want my program to update the default text/value on (only)form1 labels x, y and z to whatever was put into the textboxes when i press the OK button on the Dialog, so these specified labels show the 'new' value on next startup. Is it even possible or should I save the values to a file which loads the values in the specified labels on startup?
View 5 Replies
Jun 27, 2011
I seem to have reached a limit on the size of the form. I cannot make the form longer and I need to add more fields. Is there a limit on how many fields can be included in a form?
View 1 Replies
Oct 17, 2009
I have a problem Hi i readtext vb.net, but I can also use VB6 does not work any error in writetext stops but does not write ..
WriteText Code:
Public Sub WriteText(ByVal lngAddress As Integer, ByVal strText As String)
Dim hWnd As Object, processHandle As Object, processId As Integer
[code]....
View 6 Replies
Mar 30, 2012
I have a CodeSmith 6 project setup in Visual Studio. I added a class with a shared method (VB), but cannot refer to it in my template. I also tried adding an assembly reference to the project DLL, but that didn't work either. How can I use my own utilities like this?
View 1 Replies
Jun 8, 2012
Does anyone know a good free report utility? I am currently unemployed and is trying to start my own software development company... I do not have a lot of money so am trying to do it as cheaply as I can.
View 6 Replies
Dec 1, 2010
I am trying to create an application to make self-extracting Exe's in Visual Studio 2010 Express. I would like to have a box in which files can be dropped into, then when you click "Compile" it will compress all files dropped into the box along with 3 others I must have delivered to this self-extracting exe. When the newly created exe is run, it will launch "Install.exe". I know there are other items out there to build the self-extracting exe's. I would however like to make my own that always delivers these 3 specific files along with whatever is dropped into the application.
View 11 Replies
Jul 4, 2009
I want to write a program of utility bills...
View 3 Replies
Feb 25, 2009
I am creating a user control that contains a panel as well as 4 string and integer properties. I would like to display the text of the properties in the user control during design time.
View 3 Replies
Jun 22, 2009
I need to make a program for my school (I`m the principal), that reads the text in the memory address of the program and write it down in a txt. I already have the address numbers. For more information, I use VS 2008.
I was trying to make one code to get the memory address. So, after I succeed this, I'll make the correct program.
The code I made(adapted from [URL] returning-0 ):
Public Class Form1
Private Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Single, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
[Code].....
View 1 Replies
Jun 20, 2009
I need to make a program for my school (I`m the principal), that reads the text in the memory address of the program and write it down in a txt. I couldn`t find a professional here in my city so, I already have the address numbers. For more information, I use VS 2008. I was trying to make one code to get the memory address, and after I succeed this, I'll make the correct program.
[Code]...
1. It only gets the first 4 bytes(is it?) of the memory address. I want it to get all of them.
2. I haven't discovered how to convert each byte(?) into a character. Is there a function for this?
3. When the program runs, after clicking ok on the MsgBox, it highlights the Next and debuggs:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
View 1 Replies
Apr 4, 2010
I'm writing some text to a memory stream and need to modify it once in the memory stream The reason I can't modify prior to adding to the memory stream is that it is from some 3rd party component. Here is an example:ms = New MemoryStreamdoc.Save(ms, SaveFormat.Html)I need to do some modification to the resulting text that ends up in ms. Is there a way to convert the contents of ms into a string, and then back into a memory stream once modified?
View 13 Replies
Apr 18, 2012
In my project I am creating a CSV file, but I want to change it's design.[code]...
View 2 Replies
Oct 29, 2009
Im trying to create an incremental backup utility on a web form using vb.net for code behind.
So far i can copy files from directories including sub directories and that part works fine, my main problem is copying only the most recent / modified files to the backup folder, currently it is moving all the files each time.
Below is my code so far.
CODE:
View 5 Replies