AustinNetherwood's Q&A profile
.NET Development Reading XML - empty node problem (using XmlTextReader)
Hi, i have a problem using XmlTextReader for reading files that contain empty nodes. i try to read an Xml file that contains some nodes: <rootNode> <page attrib1="somevalue" attrib2="somevalue"> <pageElement attrib1="someval" attrib2="someval"> <elementValue1>someString</elementValue1> </pageElement> <pageElement attrib1="someval" attrib3="someval"> <elementValue1>someString</elementValue1> </pageElement> </page> <page attrib1="somevalue" attrib2="somevalue" /> ...Show All
Visual Basic Console textbox
What is the best way to make a textbox behave like a console (command prompt) I have a System.IO.StringWriter that gets text appended to it. I can display the output of this in a textbox but the string grows bigger and bigger (i don't care about old stuff just a couple screens of the recent stuff) and anytime the textbox changes it is scrolled to the top, not at the bottom where the new text is located. This is what I have now but it's terrible: Private Sub ConsoleRefreshTimer_Tick( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ConsoleRefreshTimer.Tick If ab.ToString.Length > 6000 Then 'i ...Show All
Windows Forms .net framework 2.0
We r just starting to develop an application,windows forms client, using .net 1.1..is .net 20 officially released,or is it in beta stage..We r developing smart client,and ease of deployment is a very important issue..should we develop using .net 2.0 or stick with 1.1..pls help.. thanks Just to help you make a choice, .net 2.0's ClickOnce is an amazing feature for deployment. We have decided to go with Beta 2 for development purposes. The new features available in 2.0 are really good, and you can get the golive license when you actually start production. Regards, Kunal ...Show All
Visual Basic Friend can't run my program???
I made a simple program. I created a few buttons that controlled a picture box. I imported two pictures. I sent it to a friend so he could check it out and it won't open. He says it pops up a message saying something about needing .net framework...... again, not exactly sure about the message. Why is this particular program not working for him Dear KrazyKevin, I may tell you, "Welcome to the .NET Framework deployment hell" but I won't because I have recently found there might be a solution. The solution to your problem could only be a tool that would allow you to link assemblies together, comp ...Show All
.NET Development Application_AcquireRequestState Execute twice per request
Code inside of the global.asax file on the Application_AcquireRequestState event fires twice for each request. One the first request I have session state and on the second, I do not. Here is simple test I ran to verify that it is running twice: Protected Sub Application_AcquireRequestState(ByVal sender As Object, ByVal e As System.EventArgs) If Request.IsAuthenticated Then System.Diagnostics.Debug.Print( "Inside Application_AcquireRequestState" ) End If   ...Show All
SQL Server FTS indexable table column
Hi, how can I programatically identify if table columns are eligible to include in a FTS catalog index I can do this: SELECT COLUMNPROPERTY (object_id('Person.Address') , 'AddressID', 'IsIndexable' ) but what I'd like to do is: SELECT COLUMNPROPERTY (object_id('Person.Address') , 'AddressID', 'IsFullTextIndexable' ) but that property doesn't exist. The best I got sofar is to compare data types with what the documentation says, something like this: ... if (tc.Text == "char" || tc.Text == "varchar" || tc.Text == "nvarchar" || tc.Text == "varbinary(max)" || tc.Text == &qu ...Show All
Visual Studio Express Editions System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.8.0") in VCSExpress!!!!
EnvDTE80.DTE2 dte; dte = (EnvDTE80.DTE2)System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.8.0"); Solution2 sln = dte.Solution; foreach (Project proj in sln.Projects) { foreach (ProjectItem item in proj.ProjectItems) { MessageBox.Show(item.Name); } } In these code these is always an error that tell me that "dte = (EnvDTE80.DTE2)System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.8.0");" has some errors. please tell me why and how to solve it I want to get the value of the "StartWorkingDirectory". Thanks a lot. ...Show All
SQL Server Extracting Data from SQL CE SDF file
Hi, I have written application for Pocket PC it stores data on SQL CE database with extension .sdf. I have added data to the table and synchronised to the SQl server. I got the data, then unfortunately i deleted the data in SQL Server, I want to extract the data again from .SDF file of Pocket PC. Is this possible if not then how can i get the data from SDF to SQL Server Its very urgent and waiting for early reply to following mail address prashanthk@mmi.ae Regards, Prashanth Hallo, I'm Gabriel and I'm working with .NET 2005 and Pocket PC 2003. I'm very very interested of first point, the one with the CSV ...Show All
.NET Development Xmlschema compilation problem (.NET framework 1.1)
Hi all, I am working on an application that needs to be able to read and lean on the XMLSchema information contained in the web service description(wsdl). After i got a wsdl from address : http://ws.cdyne.com/delayedstockquote/delayedstockquote.asmx wsdl , I attempt to get its schema and compile using XmlSchema object(iam using vs2003 with .net framework 1.1), but an error occured: "The 'http://www.w3.org/2001/XMLSchema:schema' element is not declared. An error occured at file:///c:\test.xsd(68,9 ) " Then I tried to open this schema by Xml Spy, the result shows that this schema is valid. I myselft think that it's ok ...Show All
Software Development for Windows Vista How to build a generic runtime host?
Hi, I know this is a quite a big question, but I have to ask it :-) How would I write a generic windows workflow foundation runtime host. What I want to do is: 1. Write a Windows Service that exposes the Windows Workflow Foundation Runimte as a remoted Singleton object. Let's call that one WorkflowEngine. 2. The WorkflowEngine has state persistance and tracking services enabled. 3. The WorkflowEngine offers a method lets say Startworkflow( workflowToStart) that is able to start any given workflow as long as the assembly the workflow is defined in is available to the Engine. ( I can imagine how to do this this with System.Re ...Show All
Visual C# Working with Certificate Revocation List
I need to load CRL file (or Byte array) and retrieve the Serial numbers in. I notice that System.Security.Cryptography.X509Certificates namespace is for certificates (and I'll use it) but what namespace can I use in order to retrieve the CRL What I would do is create a managed wrapper for CAPICOM. CAPICOM is an unmanged library that has extensive utilities for working with certificates. Perhaps that can help. You can download CAPICOM and it's documentation here: http://www.microsoft.com/downloads/details.aspx FamilyID=860ee43a-a843-462f-abb5-ff88ea5896f6&DisplayLang=en ...Show All
SQL Server sql server upgrade from 2000 to 2005
I am currently using sql server 2000 and I have just installed sql server 2005 in a separate box that will be used as the production server so I will be upgrading to the new database server soon. I was reading the upgrade options for this situation and one option is to detach the 2000 database, copy the mdf and log files to the new server and attach it to mssql 2005. Another option is to recreate the tables, views, etc. and export/import the data to the new server. I would like to ask what the best option is for this situation because I am not sure what the advantages and disadvantages of just detaching/attaching and recreating the dat ...Show All
Windows Forms Some labels cut off at 2/3 height on some computers
Hi there, We're developing a windows app. Amongst other things, we're displaying two labels on a form. Another dev created these, and set the height of the labels to 13px. The forms display fine on his computer, but on my laptop only the top two thirds of the text is shown, and the bottom third is invisible. When I set the label height to 19px, I can see the entire label. My question is why would this be different on his computer and mine It's very frustrating. My laptop is also reasonably new (Acer Ferrari 4005 if it makes any difference) and I have experience this problem in another couple of apps I use, that ...Show All
SQL Server Add a DateLoaded column to input data
OK, I *know* this is trivial, and please feel free to giggle, but after years of DTS 2000 my poor brain can't make all the jumps neccesary to cope with SSIS 2005. I have a Transfer data task. Source input (non SQL Server) has x columns, SQL Destination has x+1 columns, where the extra column is a non-null smalldatetime column DateLoaded. This will be populated with the Date & time the row was added. In DTS I do this either by adding a GetDate() equivalient to the Source SQL statement (which I can't do in this case) OR by an ActiveX script to put DATE()+TIME() in the final column in the Transfer pane of the designer. This must be ea ...Show All
Visual Basic Refreshing Flexgrid data
How do I refresh MSHFlexGrid data I'm displaying data from a SQL connection, but I have no idea how to refresh it. I've tried the .refresh method, and got nothing. I also tried using .clearstructure then .refresh, but still nothing. Can someone please help Thanks! ...Show All
