Aanand Yatri's Q&A profile
Visual C# Removing strings in a text file "help"
I need to know how to remove certain strings in a text file. The text file looks like this below Colt Maximum Steve Entry Cohn Maximum each item is entered an then a new line character is issued. I don't know if a read each one and compare it to the one I want to remove will work. Saying I can compare them how would i go about removing that specific string from the text file Thanks for any responses. hello i don't know if this gonna help you or not your can use file stream string builder streamreader to read from the filestream.readline if the line doesn't contain the data that yo ...Show All
Visual Studio Express Editions Can't find a "SysInfo Control" equivalent
Hi, I really like the Visual Basic Express. I am having a problem getting information about the system battery. Something like this: http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbcon98/html/vbconsysinfoscenario3monitoringbatterypowerstatus.asp would do. However I can't find a "SysInfo Control" to use in Visual Basic Express. The only reference in the msdn I can find is here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbcon98/html/vbconcontrolclass.asp How would I load this Also the " PowerBroadcastStatus Enumeration " seems to be related to the battery information but there seems to be no w ...Show All
Windows Forms Recognizing MDI Parent Closing Event
Hi.. How can I know when the X button of MDI parent is click in my MDI child form. I need to check if the parent form is closing than do certain thing in my child form. Thanks in advance.. Sumit Gupta http://www.sumitonnet.20m.com I had the similar requirement. If more than one MDI child form is open, and if the main application is&n ...Show All
SQL Server Putting Multiple Field data in a report table cell
I'm using report designer and Visual Studio .net 2003. I have a table in the report and would like to put multiple field values in a single cell. Something along the lines of this in the cell: =Fields!Phone.Value, Fields!.Fax.Value. I don't know how to seperate the values to get them to work in the same table cell. I've tried commas, semi colons, spaces, parens. How would I do this I couldn't use IsNull because it says it is not decleared. I can use IIF, so the correct code is =Fields!Phone.Value & IIF(Fields!Fax.Value=nothing,"",",") & Fields!F ...Show All
Visual C# Running Process on another mechine
hi guys ! How can i execute a process (a function) in another mechine in network. Because i want to reduce my application's execution time. plz code & suggestion........... You'll need to create some basic client/server mechanism to make it happen. AFAIK there is no way to invoke a process on a remote machine with any bultin Windows procedure calls. Look at .Net Remoting as a start. Here's a quick tutorial I drummed up for you: http://www.developer.com/net/cplus/article.php/10919_1479761_2 -- Alex ...Show All
SQL Server I wrote my own configuration tool to maintain the connection strings in a SQL table
I wrote my own VB app to maintain all of my connection strings and link them to packages. I then grab them at run time and set them as variables in memory. ...Show All
Visual Studio Express Editions Several questions
Hi, I'm new to VB, but have played with some programming just a little. I'm working on a Windows application that retrieves XML weather for any location you specify. I'd like to know how to deal with XML to use the data I want. If either is possible, I have no preference whether I analyze each line as it's downloaded or I dump it all to a file and deal with it there. I'm totally new to this, so I don't know how it works to specify what XML you want to retrieve. I'll post the link to a city so you can see what the XML looks like: http://xoap.weather.com/weather/local/USPA1290 cc=*&dayf=5&prod=xoap&par=1017300893&key=26 ...Show All
SQL Server Queries dependent on results from other datasets.
Hi, I need data from two datasources. From the first datasource a get only one row. Then I need to use one of the values in this row to filter the next query. I couldn't make it to work. Is it possible Suggestions on how to do this Tomsi One possible solution is to create internal parameter that will take default value from 1st data source. When you can use this parameter in the second data set. ...Show All
Software Development for Windows Vista How can I start instalation a Windows Vista os
How can i start instalation of Windows Vista OS. I burn a DVD image, but i can not open it. I can read only a README file. What shall I do What does the Readme file say ...Show All
Visual C# network connection state change event? does it really exists?
in the "ready to rock" launch event of visual studio 2005 i saw an event called something like onNetworkConnectionStateChange. they told me that this event will be triggered when there's some changes to the network status. for example when the wifi lan becomes available. i cannot find this event anymore. can someone help thanks a lot! ...Show All
SQL Server How to spool into a script file in SQL Server?
Hi friends, Suppose that I want to generate an script that has a "DROP TABLE <table_name>;" for each table in one of our databases.In Oracle I can do this using "spool" command in "SQL Plus" which is a commandline utility somewhat like isql or osql(I don't know these two perfectly! ).For example: [code]spool c:\DropAllTables.sql select "DROP TABLE "||table_name||";" from user_tables; spool off [/code] And this will generate that script with many drop within that.Would you please clarify me, if there is such a thing in SQL Server 2000 -Than ...Show All
Visual Basic AnalogTVTuningSpace and MSVidCtl
I´m trying to develop a decent tv tuner/capture application (since there are no such apps, nowhere, I say) in Visual Basic 6.0. I´m using the MSVidCtl component together with the AnalogTVTuningSpace and IChannelTuneRequest object to achieve this, as described here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/directx9_c/directX/htm/hostingthevideocontrolinavisualbasicform.asp and here: http://msdn.micro ...Show All
Windows Forms ListView - how 2 cathc event
I have a ListView with LabelEdit property set to false. I have a short cut assigned F2 which initiates the BeginEdit() method on the selected item of the ListView Control. Now when i Item is in editable mode...i want to Handle the event(which i dont know) that will be generated when some one press some key while the text of the item is still in the editable mode. Please let me know which event will be triggred OR some other way of doin this. thanx in advance This question is better suited for the Windows Forms forum. Please reserve the C# Language forum for questions specifically relate ...Show All
Software Development for Windows Vista WF and ClickOnce
Is it possible to deploy applications that use the WF Foundation Framework using ClickOnce Thanks. Ah. That's what I thought. Since you need Admin rights to load WWF on target machines, you have to deploy WWF separately (using msi, CD, etc.). Thanks. ...Show All
Windows Forms How to implement two form control Interaction hosting in IE?
Is it possible to implement two form control Interaction hosting in IE Someone can give some clue one form control hosting in IE get actvie reference with another form control I want to implement one form control act as Data Sender, another form control act as Data Recevier, the .net control that Data Recevier get Data Sender object with one way like com way with IE container Interface. For sorry my poor english. Regards. yang Yes this is possible: Below is a simple implementation w ...Show All
