BillyB's Q&A profile
Visual Basic reading ascii text file
Hello, i'm trying to read a ascii text file using the streamreader. For simplicity, let's say my .txt file contains the following data: a b c d e f g How would i read from, let's say the first occurence of character "c" to "f" It would read 3 lines after "c", up to "f", and give me: c d e f I understand how to read the entire file, but i do not know how to read it from a specific line, and 3 lines after that. I would appreciate your help please! Thank you for your time guys, the code works great! I used While tr.Peek <> -1 instead of the inifinate loop. ...Show All
Visual Studio Running visual basic 2005
Hello, I installed visual basic 2005 express edition on computer. How to run it Thanks ...Show All
Visual C++ Rebuild using shared precompiled headers doesn't work
To combat a long build time, I consolidated common headers across 20+ projects into a single precompiled header, to be shared. The pch file is generated from a separate project (pch.vcproj with stdafx.cpp/h), and it works with clean builds and incremental builds (from editing one of the files belonging to the 20+ projects), but I get compile errors when I choose Rebuild. Before presuming a bug, I'd like to ask the forum for help. There are several things that have to be done to get this to work, and unfortunately, I'll have to reveal them to legitimize asking for help. For sake of generality, lets say one of th ...Show All
.NET Development SoapExtension Problems
I'm attempting to create a Java web service with Apache Axis 1.3. One of the requirements of this web service is that it must maintain conversational state. Following the advice of an article here: http://www.oracle.com/technology/pub/articles/davydov_soa.html I implemented a JAX-RPC "Handler" to intercept incoming requests to my web service for an expected SOAP header. The end result of this is that the WSDL generated by Axis doesn't contain any mention of the SOAP header, but if client requests don't contain the expected headers, my service throws a SOAP fault... Following directions in Axis documentat ...Show All
Windows Forms using dictionarybase...
Hi, I'm trying to build a collection, and I would like to be able to address a certain element in that collection not only by its index, but also by its key name... something like DataTables in DataSets: you can say dataSet.Tables[2] or dataSet.Tables["Table1"], right How can I do this Lets say my base class is called Pen, I have: class Pen { &n ...Show All
Software Development for Windows Vista about "StateMachineWorkflowInstance.EnqueueItem "
what's the meaning of " StateMachineWorkflowInstance.EnqueueItem () " when and how could i use it Victor - all of the communication between a Workflow host and a workflow instance is done via a system of low-level queues. EnqueueItem is used to send a message to one of these queues. The HandleExternalEventActivity is actually a higher-level implementation based on interfaces built on top of this queueing system. You'd use EnqueueItem whenever you where using a StateMachineWorkflow (although WorkflowInstance also has a EqueueItem method) - and you are using the queueing system directly (i.e. not using HandleExternalE ...Show All
SQL Server For Each Loop Oddities
I am experiencing some odd behavior in the Foreach Loop Container and was wondering if anyone else has experienced this. I have a SQL statement from a staging environment that populates an ADO recordset. When I created the variables in the package I specified them as the types that I was expecting (1 Int64 and the rest as strings). However, I kept getting a type cast error when it tried to run through the loop, this error only came about on the Integer column, which I believe was due to it being the first column. The only way I was able to resolve the problem was to set each variable type to DBNull after that it made it entirely through the ...Show All
Visual C# Why are my Toolbox components dissappearing or unavailable?
All of the components in my Toolbox window are greyed out and my custom installed tools tab has dissappeared. The only way I can regain the use of the components is to exit VS and restart. I have made sure the components are checked in the "Customize Toolbox" window. Can anyone shed some light on what is going on James, Thanks for the offer of help. However, I reset the toolbox and re-installed my third-part components. Everything is working normally again. I'm not sure what happened. I'll let you know if it happens again. ...Show All
Visual Basic Differences in SQL Server Support VS2005 VB.NET Standard vs. Professional
The MS announcement page for VS2005 VB.NET Prof Ed. has the line: "Build solutions for SQL Server 2005 using integrated project types, deployment tools, and debugging features" Questions: (pointers to documentation welcome) 1) Confirm: Does SQL Server 2005 Express come with VS2005 VB.NET Standard Ed 2) What SQL Server 2005 Express management tools does Standard Ed. provide 3) What does Prof. Ed. have that Standard doesn't, with respect to SQL Server 2005 Express management Thanks! Thanks for input. with respect to free tool: http://msdn.microsoft.com/vst ...Show All
.NET Development ilasm.exe /OWNER parameter
Hi, There used to be a parameter call /OWNER in the ilasm.exe which allowed me to assmble a dll/exe so that noone else can disassemble it without the correct /OWNER. What happened to it Will it be added when 2005 is released Is there a way to protect my code (besides obfuscation) from being disassemble with ildasm.exe or Reflector tools Thanks, Alex >What happened to it It was removed before the first RTM release since it didn't provide any real protection anyway. >Will it be added when 2005 is released No >Is there a way to protect my code (besides obfuscation) from being disassemble ...Show All
Visual Studio Express Editions Windows.Forms.Form.Closed event
Should I enter Me.Dispose in order to free all resources Why is this event not included when converting from a VB 2003 project (neither is .Closing by the way) The Closing and Closed events have been superceded by the FormClosing and FormClosed events. You shouldn't need to call Me.Dispose when the FormClosed (or Closed) events fire if you dispose of the Form correctly: If Form.Show is used and the form is closed, you do not need to dispose of the form. If Form.ShowDialog is used and the form is closed, you do need to dispose of the form. I have actually discussed this at length here: http://forums.micro ...Show All
Visual Studio 2008 (Pre-release) Image in a Hyperlink
In Dec CTP I have used images in hyperlinks. In Feb CTP they don't work, when I click on the image, the web browser doesn't navigate to the target Uri. You have found a bug that we have since fixed, but the fix is not in the Feb CTP. ...Show All
.NET Development dataset.acceptchanges triggers datagridview.leaverow???
I have datagridview which has a dataset as its datasource. For the Leaverow event of the datagridview, I have the following code: private void kontoS_SDataGridView_RowLeave( object sender, DataGridViewCellEventArgs e) { DataSet changedSet = konto_SDS.GetChanges(); if (changedSet == null ) { return ; } kontoS_SBindingSource.EndEdit(); if (changedSet.HasChanges( DataRowState .Added)) { service.KontoSInsert(konto_SDS.GetChanges()); &nbs ...Show All
Visual C++ Plz help in Serial Port
I would like to send and receive a group of binary data in an array. My array is serial_out[4] which include 8 bit data per slot and wish to receive the same length of data from the serial port by using Asynchrounous. I am using the ActiveX control (microsot communication contol 6.0) but I not really know how to use those functions to receive and send the data. May someone told me how to use them or any useful website to let me learn them If you are ausing c++ I would not use the COM Active X Control. Use a class like the Serial Port call of PJ Naughter: www.naughter.com ! ...Show All
Windows Live Developer Forums media player
salut je suis rachid je veut c'ils vous plais dans mon espace un media player This is not the appropriate forum for support questions about the MSN Spaces website. This forum is meant for discussion about the MetaWeblog API provided by MSN Spaces. ...Show All
