I'm a complete programming nublet.I got nothing.But I'm trying to start learning. I figured the best idea was to figure out some things I'd like to be able to automate, pick some that sound relatively simple, find code that does it, and start picking it apart. I haven't found what I'm looking for on this one, so I figured I'd ask here.
What I am trying to do, is create an exe (so it can be run remotely with admin priveleges) that will read a file, determine if a couple lines exist, and if not, will write them in the correct spot in the file.
Am I being too ambitious on this? Can it be done? Can someone help me with how?
One thing to mention is i dont want to loop through the whole file and change all the Unused to Used. So basically software fires up opens the file and looks for Unused and changes it to Used and does the rest of the function and shuts down. Next time the software is fired up it goes through and does the same thing.
i am doing a small app where in one part i need to add certain lines of text ( from one variable ) to a richtexbox
i read a txt file line by line , i check something , if the condition its true then i add that line to a string variable , i need to add that variable contents to the richtexbox , i can't find the equivalent of textbox1.AppendText(textline) for the richtextbox .
Total noobie when it comes to VB, but I'm jumping in. I have about 15 years with Business Basic and see many similar things between VB and BBx so hopefully the learning curve will not be to steep.
Anyway the project I wish to complete is: Use portable computers running Windows CE 5.0 to scan bar coded labels to capture data collected during a physical inventory. The labels have 2 fields - bin location and item. My form will have a textbox for 3 items - bin location, item and quantity. Also, the form will have 2 radio buttons to accept or reject entry. I plan on writing the records to a simple text file to import in to the current application I am running.
I downloaded Microsoft Visual Basic Express 2008 and have done a little prodding around so far. I know the Express version does not support mobile device application development so that needs to be upgraded. My question is, can someone recommend a good book that would cover the areas I need to be concerned with? Also, any good online resources?
I have a text file that I am reading from which is a list of first and last names. They are in order but they are on different lines of the text file. I am trying to read them into an array and put the first and last names together on separate lines.
Ok, so someone I know said in order to do this, I need to do WebRequests.So I have this site for example: [url]Say I want to post to that textbox("Hello"), then I want to click the button. So far, this is all I know [url]
Administrator Console I am Making a Noob-Proof GUI Administration Control Panel,and I Have,Log Off User Shutdown (With User Selected Amount Of Time)Quick Shutdown (Shell ("shutdown -s -t 00") )Reboot Computer and I Need the following:
-Disable TaskManager -Disable Command Prompt -Disable internet -Disable My Computer -Disable Regedit
I am working on a windows application where i need to use the autocomplete functionality in text box and it should take values from the data base.[code]...
I've got a basic email application set up, and I'd like the "To" field (TextBox1) to be an autocomplete textbox.I'd also like the user to be able to edit what their contacts are, and so be able to add named to the autocomplete suggestions.I can get TextBox1's autocomplete suggestion to come from TextBox2's current Text - however this means I can only have one name as a suggested contact.Ideally, something like a list box would be ideal, so the user can add and remove names, and this list would then provide the source for the autocomplete.
txtBox has key up event that fires, if txBox.length = 2, a sql select to dataset for custom source of autocomplete.when user types in 2 letters it selects the 2 letters and when 3rd character is typed of course it erases the first 2 if you dont unselect..
Private Sub txtBox_KeyUp(sender, e ) Handles txtBox.Keyup If txtCriteria_Lanemgr.TextLength = 2 Then Dim strSQL As String
I have a code which reads a text file through streamreader,selects what is important and writes the same to another fileusing streamwriter. The problem is that the streamwriter stops writing beyond a certain line and just doesnt write ahead.What can be the problem? Do I have to make two seperate files?
I want a textbox to have autocomplete. I want the completion to be based off of text that has been previously entered into the textbox. My method of saving seems to work but when i close the program and re run it the autocomplete suggestions arent there anymore.
I have one combobox, two buttons (Add and View) and listbox. When I click button Add text from combobox is added to text file. This is code for Add button:
When setting up the Ajax Control Toolkit's AutoComplete control, it creates an utoComplete.asmx and a AutoComplete.vb file. The AutoComplete.vb file automatically ends up in the App_Code folder. I was hoping to move all of these styled-classes into a separate namespace, but the compiler simply does not dig it. Is this possible, or must it be within the presentation layer to access the "Web" related namespaces?
In a windows forms application I am attempting to read a file from a share into a filestream.I then start impersonating and write the stream to another share that only my impersonation account has access to.This works fine for small files. But if I attempt this on a 90 meg file I recieve a "Insufficient system resources exist to complete the requested service" error on the following line:
i want to take a comma delimited text file and then select all unique records based on one of the fields in the text file. should i read the text file into a data table or just use a data reader?
Hi, i'm trying to use the treeview to display the text of a rtf (rich text file) file when an specific node if clicked.HomeOMGWOOTFor example, if i pick OMG, i want the text of lol.rtf to be displayed on a richtextbox. But somehow i just can't manage to get it... I know to import the text of a .txt file to a textbox, but using the treeview makes it more complicated.This is the code im using right now:
Private Sub TreeView1_NodeMouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeNodeMouseClickEventArgs) Handles TreeView1.NodeMouseClick Select Case e.Node.Index Case 0
[code]....
Another thing is, that i can't import the *.rtf text into a richtextbox and i don't know why.
So I'm in the final stages of finishing a program I've been working on for nearly a year now, and this is basically my final hurdle. The Save dialogue is working beautifully, with 'flags' in order to switch it over from the regular input into text boxes to the Listbox input protocol.
However, I'm having a *** of a time getting it to take lines from the text file and put them in the proper text box. Here is an example file:
Quote:
SHOWNAME CALLNAME BREED
[Code]....
So with the sample file I provided above, in the textbox named callNameText would appear "SHOWNAME", and so on and so forth. With this build, I get a NullReferenceException on the "Me.Controls(strboxNames(i)).Text() = strAllText(ati)" line.
i'm trying to use the treeview to display the text of a rtf (rich text file) file when an specific node if clicked.HomeOMGWOOTFor example, if i pick OMG, i want the text of lol.rtf to be displayed on a richtextbox. But somehow i just can't manage to get it... I know to import the text of a .txt file to a textbox, but using the treeview makes it more complicated. [code] Another thing is, that i can't import the *.rtf text into a richtextbox and i don't know why.
Ok so I have a combo box that lists a set of names. What I want to do is match a selected name to a text file and read from it. The text file contains the same name and has grades listed below:
I want to create a text file or see if a text file exists when application starts. The problem I was having was after creating the text file, I tried to write to text file and got an error saying that another process was using it.
Dim test As String = My.Computer.FileSystem.SpecialDirectories.MyDocuments & " est1.txt" If System.IO.File.Exists(test) Then MsgBox("File Loaded") Else
[code]....
I looked up topics on filestream, but am unsure if this is how to use it. Is my code ok? Is there another way to create a text file?
I save data from datagridview to text file. I also load the same data from text file into datagridview for edit and update the same thing to text file. Let say this text file i called as Drill.txt. I have another text file called header.txt which need to match its value with the value of Drill.txt file then overwrite value from Drill.txt to header.txt. Now i want to make my Drill.txt in encrypted format to prevent anyone to open that file and modify out of program. They only can modify it through the program
i have 5 textboxes in a form. I have a streamwriter that writes all of their text to on text file like this:
Code: Dim xfile As String = Application.StartupPath & "/Set.txt" If File.Exists(xfile) = True Then Dim writex As StreamWriter = New StreamWriter(xfile)
[code]....
I was wondering how to get the text under the each number and place it in the corresponding textbox.
I am using a thread to call a process which is spliting a text file into various text file and folder using the system.io , now when calling the Textsplit() with thread on click of a button i am getting the error below , how to use thread and why this error occurs.
Cross-thread operation not valid: Control 'txtbox_destn' accessed from a thread other than the thread it was created on.