Check When Another File Opens Your Program And To Grab Its Name?
Jan 18, 2011
I want to be able to double click a custom file that contains text and it pulls up my program and adds the text in the richtextbox.
Basicly I created a file extention called .pwt but I can't get it to load the text stored in it on the richtextbox.
View 14 Replies
ADVERTISEMENT
Aug 26, 2009
How do I make a program that opens a file in the folder the program is stored?
View 6 Replies
May 30, 2009
Im trying to use a Settings file that the program opens and reads the info from when it loads BUT when the user chooses a custom color (ex: ff5f67d6) How can i assign the form background color to that color code?
Dim BgColor As Color = ColorTranslator.FromHtml(Settings(0))
Me.BackColor = BgColor
Settings(0) = the color code
that is the code i tried to use that doesn't work
View 7 Replies
Aug 25, 2009
I'm trying to make a notepad, but I can not get it to open files on start up.what i mean, example, I right click on a text file on my desktop and select open with and then my program(it opens the program with a blank textbox, it does not open the text file)I do not know the code for makin this come true
View 4 Replies
Apr 21, 2010
I had a for a program that would grab the current url and display it in like a label or something on my VB project. I have no idea how I'd go about doing this. The thing I'd like to do is simple, but I just don't understand how...For example:
1) Click a command button on my VB Project
2) Say I'm currently on [URL] it grabs this url and places it on my VB project.
View 1 Replies
Oct 13, 2011
I am making the tough transition from VBA to VB and would be pleased to hear from a VB expert. I am trying to make a program to grab numbers from the screen so that I can log them to a text file. The numbers are part of a flash animation which is regularly updating the number I want to capture and as there is no API i am grabbing the region where the number is displayed into a bitmap and then want to recognise the number with OCR. The code below grabs the screen region ok.
[Code]...
View 1 Replies
Mar 26, 2010
I want my program to grab any image on the site that the url starts with like lets say can I use wildcards on vb.net?[URL] like [a-z|A-Z|0-9] or something like that? The full url for a image smaple would be [URL]
View 6 Replies
Aug 31, 2011
I am creating a program that has many text boxes and labels on the form. I want to be able to edit fields close the program and open it up so that the form opens with the last editing I did in the fields.
View 1 Replies
Dec 28, 2010
How can I combine specialized string collections so that I can accomplish this :
-Save all the tab's texts from a tabcontrol
-Save contents of the tabs : eg.Every tab contains a label and I save the text of each label
And the real problem:
-Loading them when the program opens
I have made some thoughts about saving them, but not about loading them
setting.TabNames.Clear()
setting.TabLabels.Clear()
For Each item As TabPage In TabControl1.TabPages
Dim name As String = item.Text
setting.TabNames.Add(name)
[Code] .....
View 9 Replies
Oct 28, 2011
When user clicks on the button, it will ask him to choose a specific file. It checks the MD5 to know if this is the right file.[code]...
View 1 Replies
Sep 22, 2010
I want to copy a file but I do not what to copy it if it is being written to so, I want to see if a file is in use. I have tried 2 different code snippets
1) This one works if my file is open with MSWord (anything that creates a temp file while writing to it.[code]...
View 12 Replies
Jul 31, 2009
I wan't to make a button in my program that opens it when the computer starts up but how would I do that? I am using Visual Basic 2008 Express Edition.
View 4 Replies
Jan 16, 2012
im trying to make a program that opens multiple urls in a webbroswer box. like a url opens and after it loads that url closes and moves to the next one.
example: i have around 4 to 5 url....
[URL]
so how do i make it so after it loads google.com it moves to the next url [URL] but i wanter to do that in the same webbrower box.
View 2 Replies
May 13, 2012
I have ran into a small problem with my code. I got bored lately so I wanted to try a project. A program that will start up with windows starts up and it opens a webpage like google.
My code is below.
Imports System.IO
Public Class Form1
[CODE]...
I use the code [code] System.Diagnostics.Process.Start [URL] when a button is clicked, but when I add that code in without clicking a button, it does not work. I have tried to put it everywhere, but it just does not work. I have also looked it up.
View 5 Replies
Mar 9, 2009
I created a webrowser in VB.net to track employee usage and it seems to be working fine but I wanted to find out what it would take to set this as a default browser on a PC.I also would need to know how to pull the URL from shortcuts so when the program opens I can have it open to the URL in the shortcut.
View 7 Replies
Mar 4, 2012
able to give me a script that i will be able to grab a file version of an specific file from multiple remote machines. I have a list of machines in Txt file ... i want the script to read the list.. and generate a new file that have the Machine names with File version.
View 1 Replies
Aug 26, 2010
I need to create/get a simple program that opens up a webpage, writes to a log if it is successful or not, logs out and repeats 5 minutes later.I'm not a coder myself, and I have no coders available at my work, I do on the otherhand have access to Visual Basic .NET 2010.
View 5 Replies
Sep 21, 2009
I currently have a program that I made which opens other apps packaged with an installer. I have set the installer to install everything to the Program Files folder. However, not all computers have a C: hard drive. I have a way in which they can enter their drive letter in one form then in the next form it remembers the drive and will take them to the program. The problem is my program stores the drive letter in an xml file. On the startup of the program it looks in the xml file to find the drive letter, if there is no drive letter the form opens then lets the user set his drive letter. The xml file is stored in the folder "Math Wizard" in the Program Files folder. But if not all computers have C:Program Files I need a shortcut to the program files folder. I have been trying to use %ProgramFiles% (%Program Files% + "Math Wizardconfig.xml") but vb is saying that the % is an invalid character. Here's my code:
[code]...
View 2 Replies
Jun 13, 2011
I'm developing the program which opens files/programs that I have selected and checked with checkbox1, 2 and 3(i haven't coded the tihrd one yet, but it doesn't affect). The first program runs instantly and others run after X interval if it's wrote in textbox4 and checked by checkbox4. So Checkbox is like an activator for this interval. If checkbox4 isn't checked then every program should run instantly. The problem is that checkbox4 isn't doing a job. Program activates the interval if there are somekind of numbers in textbox4. It doen't matter that is the checkbox4 checked or not.
Here is the
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[CODE]...
And here is the screen of the program:
View 6 Replies
Apr 7, 2010
i'm new to vb and am making a program that opens a text file, removes characters and then saves the file. so far i have the following
[Code]...
View 1 Replies
May 20, 2010
im slightly new to VB, i was wondering how I make the program check a file for an update, i kknow there is an option in the app settings, but when I go on it it doesnt recognize .vb or .exe files to check from.
If i uploaded updates to a server, how would It check that for updates? and what file type would i need to upload it as?
View 9 Replies
Oct 2, 2011
I was wondering if it would be possible to check the file size of a .exe on a website and see if it's greater than or less than the program running it?
View 5 Replies
Jan 16, 2010
The code below opens a file in Example 1 and writes on another file only the lines that satisfy the condition If times > 4 to another file. What I want to do is illustrated in example 2
[code]...
t= 2 comes from Subtracting t= 11 - t= 9 from the script in example 1. I have scripts with thousands of lines every time the program should automatically subtract the next value with the previous one and write the result into a new file starting from t= 0
View 5 Replies
Jul 8, 2009
I am trying to convert VB6 to VB.Net, in VB6 my predecessor has used an open command which i presum creates a file or opens a file from the directory that it is told to look in, what is the .Net equivelent of this?
View 5 Replies
Jul 5, 2010
Im trying to make a program which would check for users from text file on a certain website I can populate the list box, and loop through it's items here is the code i came up with so far and it doesnt work properly, it pops out first item in the listbox, and last item only, even though that they shouldnt be popped out
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
If Not ListBox1.Items.Count < 2 Then
[code].....
(this is supposed to check every user, and if user doesnt exist, website will return page not found, else user exists and his name is added to listbox2)
View 6 Replies
Mar 16, 2010
I have a text document. i want to click a button and 10 random words out of the 196000 words shown in a textbox or listbox.
View 5 Replies
Sep 3, 2011
I have a text file that includes a list of first names, each on their own separate line.
What I am trying to do is to find a way to click on my button and have my app open the list and randomly grab a name and place it into a textbox.
I would include some code but I'm not even sure where to begin.
I'm thinking that I will need to code the button to use the openfiledialog..create an algorithm to use a random copy line and return it into the textbox.
View 2 Replies
Sep 3, 2011
I have a text file that includes a list of first names, each on their own separate line.What I am trying to do is to find a way to click on my button and have my app open the list and randomly grab a name and place it into a textbox.I would include some code but I'm not even sure where to begin.I'm thinking that I will need to code the button to use the openfiledialog..create an algorithm to use a random copy line and return it into the textbox.
View 3 Replies
Nov 2, 2011
I have a web project in asp.net in which i have dashboard on which there are dropdownlists with previous seven dates and when i select the date from dropdownlist it opens the file from folder matching with date selected.My dropdownlists are arranged vertically.A strange problem is that when i select the date from ist dropdownlist it opens the file fine and when i select the date date value from any other dropdownlist it opens the same file which opened from the ist dropdownlist all remaining dropdowlists behave same like.And other strange Problem is that when i start opening files from the last dropdownlist to ist.
[Code]...
View 1 Replies
Oct 16, 2009
ive got all my files that i need in my solution box in there lovely folders, written the code to the locations of them so i can call them back. If publish to a cd to be used on another pc will those files transer across and work correctly on the other pc, or do i need to change the code below to something else.here a sample of the code ive been writing to open PDF files in adobe reader, to read the files and open them?based on textbox1 entry as part of file name then button 1 to button15 pressed in relation to which product im using.Also i need to try to read across a line of data in a pdf file, and transer each block of info a text box, and how to i jump straight to a page when the pdf file opens.I cant suss it out from the document information on my harddrive.
Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.Click
If
[code].....
View 9 Replies