Text Replacement In Multi Files?
Jun 22, 2012
m currently learning vb.net. I have a program that replaces text in files but right now it only does it with one single file. I wan
Dim myfilein As String = Application.StartupPath + "\website1\website1.html"
If IO.File.Exists(myfilein) Then
[code].....
View 5 Replies
ADVERTISEMENT
Apr 27, 2012
I have been using access for my applications from over 4 years now. I realize its time to move on now and i need suggestions for a new database. Here are my requirements :should be able to connect it with Vb.net windows form frontend GUI - all database functions such as add/delete/edit/update will be done through the vb.net front-end only.Should be able to place the db on LAN and each client on the LAN can then access the centrally stored db through their individual front-ends.At the most 5-6 users will be reading/writing to the database at the same time , so the database should not crash or slow down Since i come from MS access background, i would like something thats similar to it so that i can learn and adapt to it quickly.Not very important, but i think its worth mentioning. This db will be the main central db for my .net application.My .net application will also be interacting with quickbooks and magento via some apis but ultimately all this data will go to the central db. So just curious, will there be any compataibility issues with the database that you suggest Should handle about 10 tables and around 10k records in each table Should be secure - just that i should be able to lock it up or anyhow prevent it being accessed from anywhere else other than the vb.net front-end.
Lastly, I would prefer it to be free to use if possible but not essential. I realize there are some topics like mysql vs sqllite and on databases, but pls understand i need suggestions for one that will be apt for the purposes i have listed above.
Edit : Just curious - Would i pushing the limits if i still stick to access - i understand access won't be good for multi-user access but i guess 5 users is not much ?
View 3 Replies
Sep 28, 2011
I'll explain what I'm working to eliminate the assumptions of a brute forcer. I'm working a Random SQL Data generator. What I need is a way to create a multi-dimensional array from multiple word lists, 1 dimension per word list. I have tried a few different things and nothing I've tried works. However, I have got it to work with a single word list and an array of 1. I figured there is a more efficient way of doing this than writing a massive block of select case and using multiple 1 dimensional arrays, this would end up very messy and inefficient it seems.No this is not for homework, this is for personal learning use only.I would post my code, but like I said, nothing I've tried comes close to working.
View 5 Replies
Dec 20, 2010
I have a small VB .Net application that, among other things, attempts to substitute system wide typed text by the user(hotstrings concept). To achieve that, I have deployed 'ahk2exe' and 'AutoHotkeySC.bin' with my application and did the following:When a user assignes a new 'hotstring':
Kill 'hotstring' exe script file if running Append new hotstring to the script file (if non exist then create a new one)Convert edited/new script file to exe (using ahk2exe)Run the newly converted script exe(somewhere there I also check if the hotstring has been already assigned)However, I am not totally satisfied with this method for the following two main reasons:
The extra resources deployed with the application. Lag: The time it takes for the system to kill the process and then restart it takes a minimum of 5 seconds on my fast computer and more on other computers. That amount of time is much more than the time it takes the user to assign the hotstring, minimize/close the window and then test his/her new hotstring. When the user does so initially with no success they will think the process failed. So this method is not very good for user experience.I am looking for a different method or implementation. May be using keyboard hooks? Or maybe adding a .dll library that achieves the same. Are there any resources you know about that might help (free or commercial)? What is the best way to achieve my desired goal?
View 1 Replies
Mar 20, 2011
I m trying to use multi code file that contains events, functions etc...I have a form that named Form1.vb, code file Tab1Codes.vb and a class ClassUsers.vb.Form1 is containing a function like:
Public Sub Tab1ShowHideFunction()
'some codes....
End Sub
View 2 Replies
Apr 9, 2009
Basically I want to create a little program with 5 or so text fields where I enter the specific names of movies. Upon pressing a "go" button it then does a google search(with certain criteria) for all textfield entries on the website [URL} and then download the files, if possible without opening a browser.
Search criteria:
-only video formats(.avi .mov etc)
-download url contains the "_de" tag (to insure german trailers)
That way it should hopefully find the right trailer and download it. If possible have it use progress bars.
How much work do you think this is? Or is it even possible? From a logical standpoint I don't think it's too much work... I am using Microsoft Visual Studio 2008 Express Edition. My project currently is just full of test code but I will post it anyway:
Code:
Public Class Mainwindow
Private Sub Mainwindow_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code].....
View 3 Replies
Aug 27, 2009
I have a question about creating a multi-language application and the use of resource files. I will explain what I have done and what I would like the final product to be like.I am doing this in VB.Net and using Visual Studio 2008 After creating a new project, I added a resource file to the project (Add -> New Item, Selected Resource File, named it Resource1.resx).
I then double clicked the resource file and was able to add some names and values. For example,
Name - lblFirstName, value - John
Name - lblLastName, value - Smith
On my form, I have 2 labels: FirstName, and LastName
In Code, I added
FirstName.Text = My.Resources.Resource1.lblFirstName
LastName.Text = My.Resources.Resource1.lblLastName
If I run this code, it works fine. John and Smith are displayed on the labels. Now for my question. Say instead of first and last name the labels (buttons, menu items, etc.) were actually words that would be different in different languages. What I would like is to have something like
EnglishText.resx
SpanishText.resx
GermanText.resx
Each resource file would contain the same names, just different values. Depending on what language was selected, decided by the user (from a menu), how can I get the matching resource file to be used.
Basically what I want would be FirstName.Text = My.Resources.<Language Specific Resource File>.lblFirstName
Is something like this possible? Is this an acceptable approach? Is there a better way of doing this? I try to check often to see if there are follow up questions or if more information needs to be provided.
View 1 Replies
Mar 26, 2011
well i am populating a listview with some entries from an explorer tree, but i want to create a multi-column listview in which column 1 holds
the name of files added by me and column 2 hold locations of the corresponding file.
View 3 Replies
Aug 22, 2011
for example, i would like to find the key word "1234567" from the folder which is consist of many of the text files, what are the command i would need to apply into my script ?The folder consists of few files namely as example:
abc_120811.txt
abc_130811.txt
abc_140811.txt
[code].....
View 6 Replies
Feb 15, 2012
Having a bit of an issue with my file.scanner and that issue is that I cannot figure out how to run multi.threading when searching the files within a folder(8,000+ files).
Imports System.IO
Module x
Function xGetFolderFilesCount(ByVal selFolder As String) As Integer
[Code].....
View 1 Replies
Dec 9, 2009
How can i store unlimited multi-row strings without the need of extra files?Example: the user enter a multi-row string into a textbox and clicks save. Then the program should save that somewhere. And then the user enters another string and clicks save. And then there is a combobox where it can choose between those 2 strings to load.Can i save them in some sort of collection like My.Settings.Collection? Where each text also has a header.
View 5 Replies
Dec 25, 2010
How to exit from a multi-line text box without deleting the text inside when press enter
View 2 Replies
Apr 20, 2009
Im designing a program that will read from various text files (preferably RTF files) and then put them into the RTF box in the program when a button is clicked.
Here is the portion of my code that i am referring to.
Try
Dim fileText As String = My.Computer.FileSystem.ReadAllText("c:\" & selectedHero & ".rtf")
infoDisplay.AppendText(fileText)
infoDisplay.Rtf.Format()
Catch
MsgBox("Selected Hero currently has no File with us.")
End Try
Now heres the problem. In the file i have a few pictures and its formatted and what not. I thought since its a RTF file and the Box is RTF it would auto format.... but anyways. It appears like this in the RTF Box.
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs20{\object\objemb{\*\objclass Paint.Picture}\objw3000\objh3000{\*\objdata
[CODE]...
Ok so im not sure how i can read from a RTF file and put it in the RTF box with the right format....Ive been searching around for a while.
View 9 Replies
Jun 20, 2011
On a image file (PDF), the OCR has recognised the picture and text. However on Visual Basics, how do you search for a text on this image file? The primary goal is to allow a text search (i.e POxxxxx) on all the image files (PDFs). The returns of the search will be the assciated image files where the text (i.e POxxxxx) is found on.
View 1 Replies
Nov 11, 2011
I wanted to have multiple color for text in single label controller e.g.
label1.Text = " $ 480.00 "
What I want is character $ in Red color and other digits or character after $ in color blue.$ 480.00 I cannot use separate labels for digits and $ due to limitation?
View 5 Replies
Oct 1, 2009
I am trying to draw some multi colour text onto a form using the paint event and the GDI+ object (note it has to be done using the GDI as i will be needing to scale and do bmp pixel manipulation on the resulting graphic . I have so far managed to create a class and collection winch allow the user to move the text around and change the displayed string, font and colour.
My question is how can i change my class so that it draws multi colour text? and if possible allow the user (uinsg the mouse to graphically select parts of the text.
Below is a work link to the project so far:-
[URL]
View 4 Replies
Apr 24, 2009
how do i send the contents of a text box to a printer, i have delecared a new print dialog but cannot work out how to pass the parameter of what to print?
View 3 Replies
Apr 9, 2009
I am trying to use a button to print the text from a multi textbox. I cannot quit figure out the coding for it. I want to print the text from tbShowInputDeck.
View 2 Replies
May 1, 2009
How can I get a RicHTextBox to Multi Highlight selected text? [code]
View 5 Replies
Jan 15, 2012
I am using VB.net 2010 and SQL client server.I have to make a Weekly Report Manager that stores an Trainees' weekly activity, which would probably be in a paragraph form.I think I can use Textbox (multilined) or Richtextbox for this.But When I tried to store and read the stored data it is not multilined.
Example:
INPUT in textbox/richtextbox: I am a good trainee inserted it in database as textbox.text or richtextbox.text and the result will be:
I ama goodtrainee
So if I retrieve the data it displays a single lined text.How can I do it properly?
View 7 Replies
Aug 5, 2010
I need to link a image button to a pop up page with a multiline textbox for input. When the user clicks the notes image a popup page will appear with a multiline text box that allows users to enter notes. There needs to be a save button that will update the notes field in tblinventorycomponentitems if user entered text and a cancel button for if the user changes their mind. The notes image button is located in account_ customerinventory components_edit.aspx in a dataGrid with an id of "GroupDataGrid".
View 1 Replies
Feb 10, 2010
I'm adding multi-threading facilities for the first time. I have a function that is wrapped to be run in a separated thread. This function retrieves data (text) from a combobox and it works for sure without multi-threading.
When I call it as multi-threaded, I get the following error when I try to retrieve the data from the cmobobox: Cross-thread operation not valid: Control 'cmb1stBL' accessed from a thread other than the thread it was created on.
It looks like a restriction of thread-safety... I assume that the child thread cannot read from his parent, to make sure that he doesn't change his parent data. So how can I read the data from the combobox? Should I read the comoboxbox data before calling the child thread?
View 4 Replies
May 14, 2011
I have a need to build an app that will access about 10 websites and pass data to them, etc.I've read about something called multi-threading when searching Google. I've also seen people say that they use multiple browsers.Which route is better to use? I figure if you have to do some sort of multi-threading that you would access a single browser?
View 2 Replies
Apr 6, 2012
I have a line of data that represent a data import. When the import is done, I would like to keep that exsisiting line, and add another line for the next import. So I have a display of mulitiple lines, showing multiple Imports.So this is one I have for the first section, it loops through the data so you see the rows incrementing
TextBox1.Text = clsDatRow.iFirstVal.ToString + " ROWS:" + iCountRows.ToString + " " + Date.Now.ToString
TextBox1.Refresh()
Now, I can I keep the line of data, and add a new line so for the next import, it does the same thing. It ried vbnewline, but it just clears that line, it doesn't move down to a next line.
View 6 Replies
Feb 28, 2010
So what happens is. I have this JAVA Code which i am making out of a vb form to help me develop quicker in that. So, when i click "Button1" a formula enhances and gives an output "TEXT" Which i want to choose what lines it shows on my "MultiLine Textbox".
Basically, How do i make it so when i click a BUTTON a text is written in a MULTILINE-TEXTBOX which i get to choose which bits of the text goes on which line.
the example is:
("this goes on line 1")
("this goes on line 2") ect.
View 4 Replies
Dec 21, 2010
I want to highlight some of the letters in each row of col1
[Code]....
whether the text can be said in reverse color or in bold font is ok for me.
View 3 Replies
Dec 12, 2009
I am trying to turn data in a text file seperated by spaces into a 2D array.
It is for a math game. The data is statistics based on the performance of the user. One line looks like this "John Doe 0 0 1 3 0 6 0 22"
I need to put the line into an array and then be able to search by name to display the results. I keep getting extra spaces in the input of the array so the data isnt where it should be. It seems that the first entry works correctly, but appended lines do not enter correctly.
Sub ResultsToFile()
Dim FILE_NAME As String = "C:\Student_Results.txt"
Dim RecordString As String = NameForm.PlayerFirstName & " " &
[Code].....
View 12 Replies
May 10, 2010
When I put a label on a form, the Text property in the designer can be expanded to a multi-line edit box. (This is in VS2005.)
Is there a way to get that type of edit box on a custom String property of a usercontrol?
View 4 Replies
Jun 7, 2011
My application reads the following data below from an xml file into a multi-line textbox - also scrollbar enabled (vertical). The data read into the textbox displays as "A1A2A3A4". Can someone recommend how I can get the textbox to display this vertically instead?Using VS & VB 2010 as new developer.
<?xml version="1.0" encoding="utf-8"?>
<Rows> _
<Row Sortorder="1"><Supplier Deleteme="false">A1
A2
[code]....
View 13 Replies
Feb 27, 2010
I am trying to show the following code in a text box on separate lines. Is it possible to code in a hard return?
[Code]...
View 4 Replies