Answer Questions
Mario Rodriguez Reading a string from a binary file
I know this is easy. I have done it before. I can't find a suitable answer in the help file. I am trying to read 6 bytes in a file. They make up a string that I need to read. I tried using StreamReader, BinaryReader, and StringReader. None of the arguments looked like what I wanted to do. I need to read the string into a textbox, and then write the string back out to the stream. I know it is possible and I know it is very easy. It may be becau ...Show All
JamieRogers How to use .NET DLL in ASP?
Does any one has idea I need to use one of my .NET component. thanks, Manish Ah, I understand now. This is a better question to ask in forums.asp.net. Experts on those forums will have the best guidance. The way in general to expose a DLL to COM is: - create a class library project. Ensure all interesting methods (subs and functions) are marked Public - right click ...Show All
Yogesh2810 Automate MS Word Doc with VB.Net
I amtrying to pull info from a Sql Server to populate a word Doc using a VB.Net App any ideas Sorry I'm not familiar with programming Office so I can only point you to certain documentation. - For VS 2003 Programming with Office, you can check out the content at http://msdn.microsoft.com/library/default.asp url=/library/en-us/dv_wrcore/html/oriIntegratingOfficeComponents2.asp . - Here's an article on how to insert text into Word: htt ...Show All
WojtekS Desktop app needs data from web server
Hello everyone, I have a desktop app that needs to grab some data from a table on a web server as well as grab the date/time from the web server. I have looked into using a web service to accomplish this but I'm not sure if there is a different or more efficient way to do this. I'm also having trouble finding a good tutorial for setting up a basic webservice that a desktop app can connect to and utilize so if someone could point me to ...Show All
Varun Gupta Questions about my TabControl
These are the things that I want to accomplish with my TabControl: When I click a tab, I want all the controls on the tab to load before displaying the tab. I want a Progress control to step when a control is loaded to let the user know that the tab is not showing because it is loading the contents first. I was thinking that I might have to use SuspendLayout() somehow as I came across it a few times when searching the help section. Any ideas ...Show All
maniac Problems with EXE's and stuff
Ok, simple problem but I'm just too stupid to get my head round this, I have created a project and created a manual updater for it so I can just create components and have them download as necessary, a live updater if you like: The problem is that all is good until you download a .exe from the server, it then will open a quick dos cmd window, kinda not what I expected, I was hoping to just replace the existing file and restart the program. Ha ...Show All
gamer4lyf3 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 yeah sorry about that, i have recently solved it, but thank you very much if you hadn't had given the small snippet of code i would be still wondering about it. Thanks! Andrew Nothing, that's just what I do when I call a method. C# enforc ...Show All
Phillip Jackson Add connection wizard fails with Access database
I have the RTM version installed. I am quite puzzled at this wizard. It works fine with SqlClient. But for Access databases, this wizard completely fails. In this wizard, I only have one option to do - setting the ConnectionString. I set it to Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\path\abc.mdb, which works fine in my code. But when I click OK, it complains: --------------------------- Microsoft Visual Studio --------------------------- ...Show All
CEstudent Bound Form Dirty
This should be fall off the log simple for a brand new development environment, but... In VS2005 b2 I have a bound windows form. How do I determine if the user has made changes to the data TIA Why not bind to RowChanged on all of the DataTables in the DataSet It appears that the 'RowChanged' event only fires after the acceptchanges in invoked. This is well after any HasChanges flags have been set. An ...Show All
nixnutz How to move a directory to a different volume
Hi all' I'm experiencing difficulties moving a folder to a different volume (disk). All the method I've found and worked with can only move dirs to the same volume (eg, c:\test c:\foo\test) but will fail if I use a different disk as destination (eg, c:\test e: \test). I tried both with System.IO.Directory.Move() and Scripting.FileSystemObject.MoveFolder() buth neiother worked! Any hint Thankyou! dont try to move the dir just copy them ...Show All
Mikey77 VB 2005 Express App not responding
Hello! Just downloaded VB 2005 Express and SQL Server Express for evaluation. When creating a new VB app project and making my first click in the window I get an hourglass and message: Application not responding. Ref XP Pro Pentium 4 Cpu 2.25 GHz 256 Mb RAM. What have I been missing! Kurre A Hello D-Steve! Without doubt You guided me in on the right track. I started to analyse the services in msconfig. By aid o ...Show All
Anders Jensen Sum Function Question
Anyone have any good examples on how this Sum Function works........ I have 3 text boxes Cost1 and Cost 2 and totalCost....I want to select the prices and sum them up and show the total cost in the total cost textbox....im kinda cloudy on how this is done though any suggestions...........thank you for the help Moved to Visual Basic from Transact-SQL.. Private Sub Button1_Click( ByVal sender As System.Object, ByVal e ...Show All
Steve Hale Updating underlying table
I have a form based on a BindingSource. The text controls' Data Source Update Mode are set to OnPropertyChanged. The FormClosing method (I almost said "event") has the line Me.nameBindingSource.EndEdit() Changes to the data in the fields on the form are not saved when the form is closed. How can I do this Which line of code generates the error Are these three lines the only code in the OnC ...Show All
Bart Elia The return of "procedure view" in .net 2005 ?
I was using procedure view in VB6. I am currently using the "better" way but I really miss the good old way (procedure view) . How can have it back in .NET 2005 Thank, George I am a big proponent of procedure view and I have no idea why it was never implemented in .net because .net was supposed to be an upgrade a moving forward not a 2 steps back approach. I could care less about all the ...Show All
Noorali Cross-Process Subclassing
Hey all, I need to subclass another process to run code in it, but I can't figure out how to do this outside of VB6. I'm still a newbie, even to VB6, but I understand what I need to do can be done with Hooks, I just can't figure out how to make em work. I have one program that connects to a server and scrolls/filters text sent from said server. I need my application to read the text AFTER it's filtered, and respond with SendKeys.Send when it s ...Show All
