See If A File Or Handle Related To It Is Open Elsewhere?
Oct 4, 2010
How can we see if a file is open somewhere else .
It can be in windows or in other software
I am talking about vb.net programming functions and not softwares like process explorer
View 1 Replies
ADVERTISEMENT
Nov 18, 2009
How can I set a file extension to open with my application?
Also how would I handle the file that it opens with?
View 3 Replies
Sep 12, 2009
I have a custom contro which inherits directly from Treeview. Is there any way to handle some event related to when the TreeView Scrollbar appears (it does this when the height of the stack of visible nodes exceeds the height of the control) or "disappears"?
I realize if could set up a function which checks the ItemHeight * Nodes.Count, and compares this to the control height. However, this seems clumsy. I have been exploring the object browser (and anylized TreeView with Reflector) and have not found what I am looking for. If there is a way to access the ScrollBar Property at ALL within TreeView, I have not found it.
View 5 Replies
Sep 30, 2009
I get the error "35750 unable to open internet handle" from a server running a Visual Basic 6 program using the Inet control to access a site. It used to work but now it stopped. What is causing this and how do I fix it?
View 2 Replies
Jul 1, 2010
I want to achieve the following:
The user drags text from any open window not related to my application ( like firefox or word, for example) onto button1 on form1 in my application. when he/she does that, a new form (called form2 that contains a richtextbox) will open and the dragged text is directly copied (or inserted) into the richtextbox of the new form. button1 has allowdrop set to true. Beyond that I don't know how to proceed.
I tried:
e.effects = DragDropEffects.Copy
But it seems it is not enough.
View 2 Replies
Jan 24, 2012
here i am reading files from one root folder and after reading that we are moving that particular file Success folder and taking a copy of that in to back up folder normal
while reading file i will check file naming convention by targeting backup folder if suppose it was exists in backup folder then i m moving the file to duplicate folder
my problem if suppose again same file came to process this file already existed in duplicate folder how do send the file in to duplicate folder, unfornately i dint have any property as file rename
If File.Exists(Swift_Backup + "" + Path.GetFileName(CBFile)) Then
' File.Move(CBFile, Swift_Duplicate + "\" + Path.GetFileName(CBFile)) 'DUPLICATE FOLDER'
[Code]....
View 1 Replies
Mar 6, 2012
Why would a .sln solution file open and appear empty in Microsoft Visual Basic 2010 Express - i.e. no windows showing projects and code files etc.When I inspect the file in a text editor, it contains references to vbproj files (which are present) which indicate that it should not appear as empty.No error messages are reported when the file is opened.
View 2 Replies
Feb 11, 2009
I would like to open the excel file after create the excel file. The creating file function is done, but the system unable to open the excel file. My coding as below:
Dim xlApp As Excel.Application
Dim xlWorkBook As Excel.Workbook
Dim misValue As Object = System.Reflection.Missing.Value
[code]....
View 1 Replies
Nov 18, 2009
how to use open file dialogs to open a file to a text box?
View 6 Replies
Apr 11, 2007
Which of the MediaPlayer events is related to "FileEnd" (when the playing file reaches to its end)?
I tried "EndOfStream" event, but it didn't work.
View 5 Replies
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
Apr 28, 2011
I saved a file with the extension .doc. I use the RichText to write and save the text. I did not set any encoding type when I saved it. When I tried to open the file in the Richtextbox again, I got all the formatting characters in the RTF file. How do I correct this? How do I open and re-open a .doc file in the Rich Text box control without the formatting showing up in the box with the document contents?
View 4 Replies
May 11, 2010
im having a slight problem with my open file dialogue box, i need to be able to open the dialgue box, and click the file and open in my pdf reader, or at least load it to my other form ive created. what ive go so far:
[Code]....
View 9 Replies
Nov 3, 2011
I want to use the GetFileInformationByHandle function under kernel32.dll in order to get the NTFS unique file identifier.The function declaration is like this [code]...
how do I get the file handle (hFile As IntPtr) for a given filename in visual basic ?
View 1 Replies
Sep 5, 2009
What i mean here is how can i save usercontrols that have panels that contains labels using filesavedialogbox and get it back by openfiledialogbox? i want it to be save as AMS extension. i try the code below to open it, but it's because it doesn't load anything.[code]...
View 3 Replies
Mar 11, 2010
I have been working on this for a long while now, I have added a Windows media player that I hide in the Background of my application window(form) . and lets say its named "Player"Player. "WHAT" = gets me the Original length of the Audio file being played ?I tried something .something. duration ... but that gets where the player is actually is . that's for the first request.
View 3 Replies
Jul 13, 2011
I like to open a file. The open option should be shown in a separate window. My code works fine but the open window is not displaying to open a file. Here is the code:
private void OpenMyFile()
{
string path = GetPath() + ViewState["fileopen"];
[Code]....
View 4 Replies
Apr 30, 2011
I've been trying to find a Windows API function I can use to generate a virtual file handle in Windows. I'm working with VPC/xVM and I want to create a virtual machine that actually points to my physical hard drive - the methods provided with VPC and xVM for this really suck (I've never been able to get it to work with either virtualization product).
[Code]...
View 4 Replies
Mar 21, 2012
I'm trying to get a specific error message posted when a user tries to upload a file that exceeds the maxrequestlength of 10MB for my asp:fileupload object. However, adding the onError attribute to my fileupload object, the user does not get the error I want displayed; the page just crashes. Setting customerrors mode to on and setting up a redirect page doesn't work either; the page still crashes. How am I supposed to get the page to display a specific error without crashing?
View 1 Replies
Oct 4, 2011
Do you mean, "opens a file" or "is opened with a file"?
View 1 Replies
Feb 22, 2010
if I wanted the button onclick event in a different class how would I declare it?
when I refer back to the form it says I need to declare with events..
Private Sub btnAddToLaneFilter_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Dispatch.btnAddToLaneFilter.Click
If Me.txtCriteria.Text = "" Then
[Code]....
View 1 Replies
Mar 19, 2011
I'm trying to implement my own downloader. I have the download Form and I had a way to show it but, It's inefficent because, It just checked for ending extensions!I just want to cancel the download and show my downloader with the URL.[code]...
View 3 Replies
Dec 10, 2009
I am writing an audit file that is writing the username, time, and the old/changed values of several variables in the application for each user when they use my application. It is using a FileStream and StreamWriter to access the audit file. All audits for each user will be written to the same file. The issue is that when two users are updating this audit file at the same time, the "old value" of each of the variable is mixing up between the users.
Dim fs As FileStream
Dim w As StreamWriter
Public Sub WriteAudit(ByVal filename As String, ByVal username As String, ByVal oldAddress As String, ByVal newAddress As String, ByVal oldCity As String, ByVal newCity As String)
[code]....
This lives in an AuditLogger class, which is referenced via an instance variable (re-allocated each time the function is accessed).
View 3 Replies
Sep 6, 2011
Is there a way to handle quotes with a field in text tab delimited file example:"This program works "really" nicely and is helpful" my reading and understand thus far is that while the file is tab delimited fields can also begin and end with quotes. Therefore is a field contains a quote it gets interpreted as end of field.[code]
View 9 Replies
Mar 23, 2009
I wrote an application to handle a joystick with directinput. It works fine if it uses the handle of the main window but it doesnt happen the same if the handle is the one of the component that contains the joystick's operation.
I mean:
main form handle: 15
component handle (which is inside the window and the joystick needs the focus of this component to work): 25
It always work if the handle i initilizate the device is the main form (15).How can i use only the handle of the component?
View 1 Replies
Apr 3, 2009
I'm trying to create a program where I open a file using a open file dialog and take the information from a text file and output them into various listboxes and textboxes
The first problem I had encountered was at :
With CurrentCustomer
.EmployeeID = ToInt32(Fields(0))
.Name = Fields(1)
[Code].....
View 3 Replies
Feb 27, 2012
Say I have a 5 GB file. I want to split it in the following way.
First 100 MB is on the file
The rest go some reserve file
I do not want to use readalllines kind of function because it's too slow for large files.
I do not want to read the whole file to the memory. I want the program to handle only a medium chunk of data at a time.
View 1 Replies
May 10, 2010
Using VB to open a .csv file with "excel.workbooks.open", editing it, then saving as .csv.
Even though it is saved as .csv, it is still identified as .xls.
Is there an alternate way to open this .csv file so that when it is saved as .csv the excel application actually identifies it as a comma delimited, not a spreadsheet?
View 2 Replies
Jan 9, 2009
I am trying to use the open file dialog box in VB 2005 to open up an existing txt, or rtf file from a directory into a rich text box. I am able to get the Open file dialog to appear and the directories, but when I try to open the file it doesnt import it into the text box. Here is the code I am using
[Code]...
View 3 Replies
Oct 19, 2011
Years ago when coding with VB6 and earlier, I used a file open command to create, read, and write a file that made it easy to store useful information.I believe it was binary and you wrote/read the data to a specific line in the file. When you opened the file with something like notepad, it just showed random ascii chars. When I needed a line of data, I could specify what line to load it from.
View 2 Replies