Answer Questions
srinivas jani File Watcher
Hi, I have a fileWatcher set as follow: Private Sub setupFilewatcher() Dim info As New System.IO.FileInfo(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile) Dim path As String = info.DirectoryName Dim file As String = info.Name Try watcher = New System.IO.FileSystemWatcher(path) watcher.Filter = file watcher.NotifyFilter = IO.NotifyFilters.LastWrite watcher.EnableRaisingEvents = True ...Show All
j_rahal Using VB.net to create and save excel worksheets and charts
I am using VB.net to create and save excel worksheets and charts. My code works fine on my computer, or any other computer that has visual studio installed, but not on computers that don't. The program runs as far as the save routine (which includes drawing the graphs) and then I get : Exception from HResult: 0x800A03EC . The computers I've tested this on have the same version of office as the computer I developed this on, and they have the .ne ...Show All
metallicaboy Playing a sound file
This may have been answered before i am not sure, i am running Visual Studio 2005 beta, i would like to know how i can play a sound file in the background when someone opens a form. Any ideas Ok i am going to probably sound really thick here, say i have a wav file in my documents what do i place in the brackets between s.load() and s.play() Sorry i am completely new to this level of coding! I am using the my.computer.audio.pl ...Show All
neuling700 Ipod Programming
I just got myself an IPod for x-mas, and was not happy with the the software bundle included (ITunes). So I started browsing the web for 3'rd party software which could transfer music from IPod->Computer and Computer->IPod. But I found all of those programs missing something I needed and wanted to make an application myself. The only thing I need help with is code to transfer a song to ipod which makes it compatible with the device fo ...Show All
Gomezd01 Write a dxf file without hidden formats
Hi, i've been struggling with this for a while. I want to save some text in a file that will be opened by AutoCad as a dxf file. If i write a simple file in notepad and save it and then rename it with .dxf as the extension, then autocad can open it as a drawing. But when i create the same text in a textbox or richtextbox and write it to a file with a streamwriter or My .Computer.FileSystem.WriteAllText I cannot open it with autocad. If i o ...Show All
Sammy666 FORMATTED Read and Write
I used to code in FORTRAN and I'm exploring the Visual Basic programing. I'm clueless about Visual Basic Read/Write procedures. Let's say a file named "input" consisting of 6 lines and structured as shown below: (the contents of "input" file are shown between the two single dash lines) ---------------------------------------------------------------------------- Title line ...Show All
jam201984 Validating within a User Class
I need to populate a container with an indeterminate number of label/textbox pairs for input. Since it is indeterminate at design time, I thought I'd create a user class with both a label and at text box in a pair so I could create them at run time and populate the labels appropriately from a data file. I need to validate each text box for numeric value. Then, I need to use that value to build up a subtotal on the form...sort of like this: ...Show All
Nick.Muguira XML documentation
I want the handling of XML documentation to be identical to how VB Commenter worked in VS2003. That is, I want the documentation to be generated when I type ''', but I don't want the background compiler to waste precious CPU cycles analyzing the comments or wait for an XML documentation file to be generated whenever I compile my app. Is this possible Thanks, Lance Short answer, ...Show All
Elan Day of Week
how do i output the day of the week only Try this code: Module Module1 Sub Main() Dim d As Date = Today Console.WriteLine(d.DayOfWeek) Console.WriteLine(System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.DayNames(d.DayOfWeek)) End Sub End Module that worked, thanks mate! No prob. that worked, thanks! ...Show All
J Mike Rowland Saving and opening files
I have looked and looked for weeks now. I have made a simple form that has textboxes and yes no listboxes. All I wanna do is be able to save the user inputs. Or open a saved file of an existing form that has been completed. YES I dont get it!!!! I know that you probably can code 10 ways to accomplish 1 task but on every application they all have standard menu's. How can this be so hard Ive gone through and found streamwriter and s ...Show All
JoJe class name vs file name
class name vs file name In wrox vb professional 2005 in the section on reflection the authors write: To see how reflection works with late binding, let’s create a new class in a separate assembly (project) and use it from within your existing application. Choose File.Add.New Project to add a new class library project to your solution. Name it Objects. It will start with a single class module that you can use as a starting point. Of c ...Show All
David Pinero Problem with windows in my program.
Ok, so basically what I'm doing is I have a program that has 2 frames, one on top, one on bottom. In these frames go 2 programs. The one on the bottom is Microsoft Excel. What I do is I open an instance of Excel using an Excel object, get the window handle, and set the window handle's parent to the frame (so that it now appears in the little frame). The problem occurs now when I try to Open... or Save As... in Excel. When I cli ...Show All
Juan Jose Obregon WindowsFormsParkingForm error
I have been developing a VB.NET application, and have been trying this week to test deploy it to other machines here in the office and keep getting some sort of message like "WindowsFormsParkingForm" error, memory location cannot be written to. This error comes up after the "End Sub" in Sub Main when I run it in the debugger. It says "Click OK to Terminate the application", which then reboots the entire machine. I do not receive any ...Show All
AVVIT creating a text object
Is there a way to create a text object maybe I should have said:Can you make text act like a control hi, what do you mean with creating a textobject. Do you mean: - a string - a label - a textbox - a richtextbox By putting [ and ] you can escape the name between them. In this case, since string is a built in keyword in Visual Basic .NET, the compiler would have treat ...Show All
Geoff Krapf - MSFT Cutting and Pasting Controls, and Handles clause (bug? or annoying quirk?)
I am currently working in Visual Basic and I noticed something peculiar, this does not seem like a VB problem, but rather a bug with Visual Studio. If you don't want to classify it as a bug then classify it as an 'annoying little quirk'. If you set up a control (like a button), and have a method that has a handles clause that references the button (like Handles myButton.Click), and then 'cut' the button out, the Handles clause is removed! If you ...Show All
