Getting File Name Clicked On?

Jan 30, 2012

I need the file name from Windows Explorer... I have a service that runs when a specific extension is selected.It's along the same lines as selecting a Docx from WinExp and then Word opens and brings your file with it.

View 4 Replies


ADVERTISEMENT

How To Pass File Name Clicked To Program

Nov 28, 2009

Suppose I save a file as *.tar (this extension is my own making) using a vb6 program. Now when the user clicks this file, the window asks 'with what program to open this file' and he/she selects the exe of my program. Now I want to pass the name of file clicked to my program. Like when we click *.xls file, the exe of Excel program knows which file has been opened or clicked. Is there a way?

View 5 Replies

[2008] Use The Treeview To Display The Text Of A Rtf (rich Text File) File When An Specific Node If Clicked?

Aug 30, 2009

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.

View 5 Replies

.net - Open .chm File From Resources When A Buttons Clicked?

Jun 9, 2012

I already have this code from another question on this website.

Help.ShowHelp(ParentForm,
("C:UsersBeaudeanDesktopHelp.chm"),HelpNavigator.TableOfContents, Nothing)

That works fine except i need the location of the chm help file to point to "my.resources" where it exists because i need to install my program but in that code example it only works with strings?

View 1 Replies

Making App Open File That Is Double Clicked On

Aug 23, 2010

i've made a little app that opens .txt files kind of a replacement for notepad now i have set the install package in visual studio to associate .txt with my app however when i double click on .txt files my app opens but blank. so i'm assuming i've gotta code something to get it to open the clicked on file but.... haven't got a clue where to look for inspiration or code i can "borrow" and chop to fit my needs. i assume it's got to be in the load section of the program.[code]

View 6 Replies

Use Treeview To Display Text Of A Rtf (rich Text File) File When An Specific Node If Clicked

Feb 28, 2009

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.

View 3 Replies

Attch A File In .net Application,which Open From The Form On Clicked?

Jan 15, 2012

attch a file in .net application,which can open from the form on clicked..

View 4 Replies

Running External EXE File When Button On Form Clicked

Aug 16, 2010

I am creating a visual basic program, which acts as a very simple GUI for another program. I have built the whole Visual Basic project, but I am unable to do one part, the most important part you could say. I have a button (button1) on a form, when the button is clicked, I want it to run a program, named 'mover.exe' which is located in the SAME FOLDER that my visual basic program will run from. The directory of this folder will change. So, there are two problems I have:

1 - To make the program run the .exe program when button1 is clicked (it also must be run with administrative privileges).
2 - To make the program always look for 'mover.exe' in the folder in which it is started from.

View 4 Replies

Got Additional Information: Bad File Name Or Number When Button1 Was Clicked In VS2008SP1 ?

Dec 7, 2011

I totally don't get it , why i got a Additional information: Bad file name or number when Button1 was clicked in VS2008SP1 ?

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[code]...

View 2 Replies

VS 2005 Change Default File App To Another App When Double Clicked In Explorer

Aug 6, 2009

I've searched the forms and ran into a road block i think due to not really knowing what its called I'm searching for. Here is a simple explanation. I would like to add a button on my form that if selected will change the default application that a certain file type opens with.

[Code]...

View 1 Replies

Display A Picture(like A JPG File) Inside A Messagebox Along With Text When A Button Is Clicked?

Jun 6, 2011

I am here by to ask help on enhancing messageboxs. How is the way to Display a picture(like a JPG file) inside a messagebox along with text when a button is clicked?

View 9 Replies

Ultimate Basic Coding - If I Just Clicked On The OpenFile Dialog It Wouldn't Open The File?

Aug 14, 2010

I'm trying to code some programs and i want to use something called " (its in the dialog menu) FileOpen.dialog" i think thats what its called. Anyway i was seeing that if i just clicked on the OpenFile dialog it wouldn't open the file. So i knew i needed a code. I just dont want the OpenFile dialog i was just using that for example.

View 6 Replies

Increase A Number In The Excel File By "1" Each Time The Button Is Clicked?

Aug 6, 2008

This is the code I am trying to run. I am just trying to increase a number in the excel file by "1" each time the button is clicked.

Dim da As New OleDbDataAdapter("select * from [Vicky$]", cn)
Dim ds As New DataSet
da.Fill(ds)

[code]....

I get this error on the update "Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information."

View 8 Replies

Can Get Web Browser To Open And Open File That Was Clicked On In Explorer?

Aug 7, 2011

I've noticed that when you click on a web page in Windows Explorer, or open a file in general, and the default application to open it is internet explorer, ie opens and opens the file. However, when I tried this on my Web Browser it opened, but ignored the file and went on its usual routine. How can I get my Web Browser to open and open the file that was clicked on in explorer?

View 1 Replies

Button Does Nothing When Clicked

Mar 10, 2010

i have a form with 10 designated slots for letter to be entered (Like the free letter spaces on hangman), above these are 10 adjacent labels with a full stop "." as the text value, now i have created a button, Q to detect whether there is a. in the first box, and if there is enter the letter Q (Letter1.text = "Q"), elseif check the same for the second box. Now my problem is when i click the button, it still does nothing and letter 1 remains "." instead of "Q". also how would i end this string of else ifs? as in what if every text box is full then do what?

View 2 Replies

Check Which One Has Been Clicked In Asp.net?

Apr 6, 2012

inside of while loop, i've used

[Code]...

to creating the button dynamically. Now, on click of particular button, it should show the information which are associated with the clicked button.

[Code]...

View 1 Replies

Getting Clicked Picture Box?

Aug 8, 2009

This is really a beginner problem I guess. I know many things about Vb.net and have been using it for over a year, but I am not sure how to do this. I am trying to make it so it finds the clicked picturebox and do an action.I used this code:

Private Sub PictureBox2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox2.Click

[code]......

View 7 Replies

Know Which Button Has To Be Clicked?

Jul 3, 2009

I am developing an application in which there are more than one buttons and i want to add some code on the click of every button, But I wished to know that which button has to be clicked by the user and after that some code will be executed and that code will be different for different buttons.

View 1 Replies

Which Picturebox Was Clicked

Oct 12, 2009

I need to create up to 45 pictureboxes dynamically and then detect which one was clicked. I have code like this so far:

Private Sub Create_Thumbnails()
Dim sSource As String
Dim sDest As String

[code].....

View 4 Replies

Button Not Responding When Clicked?

May 8, 2012

I have partially coded a project seen below:

Public Class frmBroadwaytickets
'Defining the cost per ticket
Const _cdecticketprice As Decimal = 153.5D

[Code]....

My btndisplay cost works, but my btnexitprogram does not close the application when clicked. I've ensured the button is correctly named and enabled. But when I click it does not close out, I use this simple code in other programs and it works.

View 8 Replies

Calculate Button Which Can Be Clicked Once

Dec 18, 2009

I have a calculate button that, if clicked more than once adds the total of what I previously had to the new total as I am using a loop. I was thinking that I could get around this by only allowing the button to be clicked once, and if the user attempts to do this more than once a messagebox will appear saying that you can only calculate the price once and the form resets but i can't seem to get any code working.

View 4 Replies

Check If Button Is Clicked?

Apr 19, 2009

how can i check if a command button is clicked in vb.net 2003?

View 1 Replies

Check If Ok Was Clicked In A Inputbox?

Feb 22, 2009

how can i check if ok was clicked in a inputbox? works fine with msgbox:

Dim Confirm = MsgBox("Are you sure?", MsgBoxStyle.Question + MsgBoxStyle.YesNo, "Action Confirmation")
If Confirm = MsgBoxResult.Yes Then
'code
End If

but it returns an error with inputbox Conversion from string "" to type 'Double' is not valid.

View 2 Replies

Close Excel When No Is Clicked?

Jun 14, 2009

I have a [code]...

and even when i click yes, it closes the workbook. I would like it so that when i click yes, it shows the messagebox, but when i click no, it closes the workbook.

View 2 Replies

Create The Code When They Will Be Clicked?

Oct 3, 2010

during runtime in my application, i added items in my menu bar from a database (.mdb).. but now, i cant figure out how to create the code when they will be clicked. im sorry for the bother, and thnx to those who may fix my problem..

[Code]...

View 4 Replies

DataGridView - How Many CheckBoxes Clicked

Jun 21, 2010

I'm using datagridview in my vb.net project. In that datagridview I use checkbox for null value check property if the user click that how I check if the box is check or not in a number of rows and know how many check boxes are clicked also want to count. i try with my coding but it leaves the first line how I check.

Dim tableid As Integer
mydisp = New SqlDataAdapter("select max(id) from tst_m_tables", Myconnection)
mydisp.Fill(mydst, "id")
tableid = mydst.Tables("id").Rows(0).Item(tableid)
For i = 0 To dgvtabledetails.Rows.Count - 1
[Code] .....

View 1 Replies

Determine What Datagridview Have Just Clicked?

Aug 2, 2009

Example i have a tabcontrol contains 4 tabpages.Each tabpage have a datagridview. I want when i click any datagridview in those tabpages then a msgbox ll show name of datagridview which has just clicked.I want to determine it. But i dont want to use method loop though controls of tabcontrol and check what datagridview visible.Shortly i want to determine what datagridview i clicked ?

View 12 Replies

Don't Relaunch App When Icon Is Clicked

Dec 5, 2010

How can I prevent my app from launching again when I click on the icon. I only want it to appear on top again when I click on the icon. It's a big problem because it has a file association and every time I open a file it opens a new app instead of using the first one.

View 2 Replies

Get This .bat Command To Run After Button Is Clicked?

Apr 20, 2012

how can I get this .bat command to run after my button is clicked I can make it like, "Run a certain .bat when button is clicked" , but I don't want that because people can go inside my .bat and hack my IP. So I was wondering is there a way I can put that .bat command into my VB 2010 Express

[Code]...

View 2 Replies

Getting The Value Of The First Row Of First Column When Row Header Is Clicked?

Jun 8, 2011

I have a datagridview and I declared this code:

i = dgStudentsHandled.CurrentRow.Index
txtStudentNumber.Text = dgStudentsHandled.Item(0, i).Value

I can get the value of the first cell of the first row of the first column. But I have to get the value of the first cell of the the first column of the any row index I click.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved