Answer Questions
tao84 File System Object & .Net Framework 2.0
Hi, In a Framework 1.1 based application I only have this small segment of code that requires a reference to the File System Object. Other than this my aplictaion is 100% managed code in VB .Net. This code enables me to read the serial numebrs from installed system disks. Dim FSO As New FileSystemObject Dim drv As Drive Dim tmpInteger As Integer drv = FSO.GetDrive(Drive2Search) tmpInteger = drv.SerialNumber ...Show All
Pharvana How to load a ListBox from an ArrayList?
Hi, I tried the sample from MSDN http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemwindowsformslistcontrolclassdisplaymembertopic.asp But it did not compile. The ListBox is loaded thus: Dim USStates As New ArrayList USStates.Add( New USState("Washington", "WA")) USStates.Add( New USState("West Virginia", "WV")) USStates.Add( New USState("Wisconsin", "WI")) USStates.Add( New US ...Show All
Roberto Kramer Handling whitespace with XmlSerializer
My problem is this: I have an XML file with mixed content, where some of the text nodes might be whitespace I need to preserve. For example: <root><child> <child2/>Text 2<child2/></child></root> I want the white space after the <child> node to exist as a text node. My serialized classes are: [ XmlRoot (ElementName= "root" )] public class RootElement { [ XmlElement ...Show All
Geethan Error message TCPClient
Hi I am creating an web application that connects to an tcp server. When i give the command to connect to the server, he gives an response from the server and an textbox and Commandbutton are visible for command`s to the server. When i am sending an command to the server then i get this error: "The operation is not allowed on non-connected sockets." This is my full cource: Imports System.Net.Sockets Class _Default I ...Show All
Junifer Order of webmethods
Hi, I've whole bunch of web methods in my web service and they are all appearing in random order instead of the order specified in the cs file. Can somebody tell me if there is any attribute or setting that will let us specify the order, please Thanks for your time! Regards, Swamy Hi Swamy Kanakala , OK, here is my finding. In VS2003, the order remains the same as the .CS file. In VS2005, this has been change ...Show All
DGK DataAdapter, Sql Queries and Stored Procedures
Hello I have a very simple question about DataAdapter, Sql Queries and Stored Procedures. I have created a simple table "Tasks" with columns TaskId (int identity, primary key, not nullable) Name (nvarchar, nullable) Complete (bit, not nullable) Then I create a Dataset with a DataAdapter. First case, I ask VS to generate sql queries based on SELECT TaskId, Name, Complete FROM Tasks WHERE Complete = @Complete --> ...Show All
Vikra Shortcut to application launches windows installer repair program
On my Windows Installation project, I have a registry entry - to have the program run at startup - that's set during the install process. In my application, user can opt to have this feature turned off (the program will then delete this registry entry). However, when that's done, the next time user launches the program through the shortcut item, the windows installer repair is launched. This however is not happening when they ...Show All
BobLusk Is a hyperlink containig the word google seen as non accessible?
I've tried several hyperlinks in asp.net 2.0 to anything with the word google in it - <a href="blah.aspx">Google Analtyics</a> And I get an accessability error thrown from this but why Hi! Thanks for asking! I'm a member of the ASP.NET team, and was just popping over here to see what was going on. The best place to ask ASP.NET questions is over on the ASP.NET forums at http://www.asp.net/we ...Show All
Brian Love -- MSFT Updates are not written to the database - please tell me why!
I am at my wits end! I am creating a simple web application in Visual C# 2005 Express Edition Beta 2 by dragging a table from a data source onto a windows form. I have reread numerous articles on MSDN but with the exception of adding a try block this is as far as I can tell all I need to do to create a working form. When I run it all looks good, I can edit fields and click on the save (disk) icon. But when I look in the database again - it is u ...Show All
Amudhan Elango localisation query
Hi. I was just sitting down and had some ideas in general for my application and thinking in general in the future what "architecture" or features would be a standard thing in my application. I am just wondering how this would work: Lets say that I am going to implement localisation in my application (english, spanish, italian, german) Now, since my application by default is in english, anything displaye ...Show All
BruceB Short key to my band object
Hi I am developing a special search bar to be placed on the toolbar. It consists of a text box. The thing is that I want to activate it (put the cursor on it) just by pressing Alt + q or something. I've searched but havn't found anything usefull. Please help me and I might share my creation =) I still havn't figured it out. This is the last thing that I have to fix, then the app is ready =) Does annyone else h ...Show All
MW1239 How to override DataRow.Tostring()?
Hi, I'm adding a DataRow to a listbox. The listbox displays the string "System.Data.DataRow" because that's what 'ToString' returns for the object type of DataRow. How can I override what DataRow.ToString() returns I tried creating a derived class of MyDataRow but the DataTable.Rows functions would not cast from DataRow to MyDataRow. Thanks. A DataRow is an object which contains an array of elements and th ...Show All
lmb ADO/SQLExpress Connection String Question
I'm working on a customer project and deployment project. SQLExpress is part of the installation and there is a pre-existing database. As installed, the database is detached. This application uses ADO.NET to establish SQL connections and it also uses Excel VBA to connect to the database via ADO. The following SQL Connection string works for SQL (as far as I can tell) Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\XYZ_Data ...Show All
y0ngb00n how to capture soap response code?
Is there a way to capture the HTTP reposne code from web service request I am calling a web method: IAsyncResult ar = proxy.BeginWebServiceCall(arg, new Callback(MyCallback), null); then in the callback public static void MyCallback(IAsyncResult ar) { at.AsyncState - is this suppose to give me a return value from my web call - what id the webcall is void Should I just get NULL The only think I need from this is HTTPRespons ...Show All
DelaCombo Custom SettingsProvider class
Am using VS.Net 2005 beta 2 and trying to implement a custom SettingsProvider class. Have implemented the methods ApplicationName, Name, GetPropertyValues, SetPropertyValues and Initialize, but when I decorate the Settings class with the custom provider the first call to retrieve one of the settings throws a ConfigurationErrorsException indicating "Failed to load provider type: CustomProvider". Are custom SettingsProviders suppor ...Show All
