Rups11's Q&A profile
Visual Studio Express Editions How to search text in a file?
How to search a word in a text file and after that to get the line that contains that word. Regex is expensive to use and should really only be used when you are doing a constant search on specific words or patterns however as suggested, you can use the indexOf method to check the value exists. example: .. string currentLine = theStreamReader.ReadLine(); if (currentLine.IndexOf(someString) != -1) { //do stuff } ...Show All
SQL Server Severe error encountered with "synonyms"
we now used synonyms on the version 6 of our peoject, at first it turns out good. Then we migrate a database to the new database, everythings fine, its just a data migration anyway. The target database' structure and DML's wasn't change during migration. then intermittendly, we're encountering "A severe error occurred on the current command. The results, if any, should be discarded". I said its intermittent because sometime its ok, mostly its not functioning. This is very painfull because all our scripts has this synonym. All our scripts uses an sp execution logging stored procedured of another database so we created a synonym for those sp's instead of fully qualifying the procedure name. This is a major issue for us, please advi ...Show All
Windows Forms Capture the row information from a datagridview
Hi, Could someone please advise me of the simplest way to capture the row information from a datagridview using VS2005 Each row in my dataGridView consists of four columns from my sql database, and I would like to 'capture' the all the row info and input it into a datatable to display in another format further on. Can anyone please advise me of any pointers you can use the SelectedRows collection property in the DataGridView to get all the rows the user selected.... DataGridViewSelectedRowCollection theRowsSelected = this.theDataGridView.SelectedRows; then access the row you like for example from it and do whatever you want with it. Is this what you are after ...Show All
Smart Device Development Opening So many Forms & Task Manager!!!
Hello, I'm working on a chat application where i need to open seperate Forms for private chat with each user. For Each New form I saw a Seperate instance in Task Manager, timg_msft suggest me a solution like this: Form1 frm1 = new Form1(); string myText = this.Text; this.Text = string.Empty; frm1.ShowDialog(); this.Text = myText; in Post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=703794&SiteID=1 problem with the above code is that I dont want to show it as a Modal form with ShowDialog() because I need to keep them open: Taking help from this code, I wrote 2 classes here is the code: public static class OpenedFormCollection { private static Dictionary < string , FormComm ...Show All
Windows Forms how we can icrease the speed of the listview
Hi all my code in vb.net i used a list view control to view my records. the problem is i'm filling the list view useing for loop but i have many records so the for loop take a time what can i do to solve this problem. thanks a lot hallo, you can increase the speed in the following way: 1. YourListView.BeginUpdate; 2. YourListView.Items.AddRange(AllYour ListViewItems); 3. YourListView.EndUpdate; good luck Arnold ...Show All
Visual Studio Express Editions How Do I change a String Varible into a int varible
Hey I making a Xml Reader program and part of it use #s that I have stored in the xml file. <random>23</random>. Well I made a program that gets the #s and counts it down. Well the problem is it keeps telling me that I need a int varible and I can't convert a string into a int. Any Ideas or something. System.Xml. XmlNode countdown = TvfeedItems.Item(0).SelectSingleNode( "Play" ); times.Interval = countdown.InnerText; times.Enabled = true ; Thats the code I do have more at the top that loads the xml file and everything, but I think this is the main part you wana look at ...Show All
Visual C# contents of release mode
Hi My solution consists of three project that creats three dlls. first projects dll is used by 2nd project and 2nd projects dll is used by 3rd 1. do i required to release all these 3 dlls r only the 3rd 1. how i can release it regards Hi Thanks i tried with it but it didnt help. Application is running in debug mode on my machine but whaen i try with release mode or on another machine it dont work. regards ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do I protect my code when distributing it?
Having read the FAQ. I noticed that in order to share your game creations (and lets face it, you can't get recognised without sharing your games), you need to send the other person the entire uncompiled game. This includes sourcecode, graphics, music, sound etc. etc. They then compile the code and download it to their xbox360 account and then only if they too are on the games creation program. My key worry here is that you send them everything you have just worked incredibly hard to create. Presumably they can then send this stuff on to whoever they please and god forbid, even sell it on! It strikes me that there isn't much incentive to distribute things this way. How is Microsoft going to prevent the above scenario Is there going to be a ...Show All
Visual C# Add Web reference - works in VS2003, but not in VS2005
Hi all, I am trying to add to my project a web reference to a 'wsdl' file exposing a web service. In VS2003 it works fine, but in VS2005 I am getting an error message: Cutom tool error: Unable to import webservice/schema. Unable to import binging 'binding' from namespace 'namespace'. Unable to import operation 'operation'. The element 'element' is missing. This error appears in the error list as relevant for two files: Settings.settings Reference.map Any ideas on what may have caused this And what is the different between 2003 and 2005 versions Thanks, Elad. ...Show All
SQL Server Problem with Microsoft .NET Data Provider for MySAP Business Suite
Hello everyone, I've my SQL Server 2005 working properly on Windows 2003 R2 64bit. At this time I want to transfer data from SAP R/3 46C. I've had install the provider "Microsoft .NET Data Provider for MySAP Business Suite" but when I try to import data from sap using "import/export wizard" but the datasource of mysqp does not appear in the list. But if I run Visual Studio 2005 and try to create a datasource the data provider appears. What I did wrong I don't undestand. Please can anyone give me an idea Best regards nmarmol Mr. Nmarmol The .Net data provider for SAP is not currently working on the x64 bit platform. You'll have to wait for the next re ...Show All
Windows Forms Telerik or Infragistics
Hello, I am about to decide on the suite of controls to use in an application. Infragistics seems be a defacto in the industry, but Telerik offers their controls at a lower price. Has anybody had any experience with using Telerik in the Windows Forms world Do they have a lot of bugs How is performance Is functionality of Telerik controls up to par with the functionality of Infragistics Windows Forms controls Any feedback on Infragistics vs Telerik for Windows Forms would be greatly appreciated. Evgueni PS. If you had success with another suite of controls, please post your comments as well. I worked on Infragistics but not very impressed. According to me Krypton is good atleast equvalent to Infragistics. @ Te ...Show All
Visual Studio Need help with visual studio/visual basic.net !!!!!
I am currently reading a book titled learning visual basic.net as an attempt to teach myself visual basic. Early in the book, it calls for use of the visual studio.net command prompt. I have the free express version of visual basic as I cannot afford visual studios. I cannot seem to find a visual studio command prompt, does anyone know where I can get one (if possible) for free. The rest of the book it would appear that visual basic express edition is sufficient, but i cannot find a command prompt to use. Can someone PLEASE help me! the .NET Framework has a compiler, and is what is used in your VB.NET/C# applications which is included in that directory. the VB.NET compiler is VBC.exe and the C# compiler is CSC.exe in regards to the ...Show All
Visual Studio Team System TFSSetup user as admin
I would like to ask why the TFSSetup should be an admin on the domain ! and also, is the installation could run with my user (for example): shani which is also defined in the domain and has admin on the specific pc. this user is not an applicative user! it is a real one... thanks. TFSSetup user does not have to be a domain admin. They would need permissions to install on the server in question, so usually an admin to the box. Installation can run as your user as long has you have permissions to install on the specified computers. ...Show All
Windows Live Developer Forums Windows Media Player
I have the new version of Windows Media Player (version 11). I am trying to play my DVD, and all I get is the audio with no picture that shows up. What shall I do may be your computer does not have DVD codecs installed. you need to install that codecs to play DVD Video files. i sugggest you to download K-lite codec pack and install. It will install all types of codecs need for your computer. ...Show All
Visual Studio 2008 (Pre-release) Detail Listox as a data template member
I have the following window: < Window x:Class = " Wa3Db.Window1 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " Title = " Wa3Db " Height = " 1024 " Width = " 768 " > < Window.Resources > < DataTemplate x:Key = " TDetailTemplate " > < Image Width = " 100 " Height = " 150 " Source = " {Binding Mode=OneWay, NotifyOnTargetUpdated=True} " TargetUpdated = " OnProbeTargetUpdated " /> </ DataTemplate > < DataTemplate x:Key = " TMasterTemplate " > < ...Show All
