sean_kirkpatrick's Q&A profile
Visual Studio Express Editions Cannot see an attribute from the schema as a field in class
I am using Visual C# Express 2005. I have an attributeGroup (call it group1) in my schema which includes another attributeGroup (call it group2). The attributes in group2 are not showing up in my objects. Ideas Thanks. This is what I have in the schema <xs:element name="name1" type="type1"/> <xs:complexType name="type1"> <xs:element name="name2 type="type2"/> <xs:attributeGroup ref="group1"/> </xs:complexType> <xs:attributeGroup name="group1"> <xs:attribute name="attribute1" type="xs:string"/> <xs:attributeGroup ref="group2"& ...Show All
.NET Development ConnectionString as app.config value
In Visual Studio 2003/.net framework 1.1, I could use the designer of a component class to create an SqlConnection and then set the DynamicProperties of this object to use a config file key (app or web.config). I can't find this option in Visual Studio 2005 when working with an SqlConnection object in a designer. Do I have to get this value from the config file by coding now The designer should be automatically adding connection string entries to the application config file. Did you look for the connectionStrings section ...Show All
Visual Studio Express Editions how do I copy the words out of my listbox?
I want to copy the words that appear inside a listbox to a Document.txt A listbox seems to be read-only. How do I change this Or another example Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim s As String = "" For Each x As String In Me.ListBox1.Items s = s & x & vbCrLf Next My.Computer.FileSystem.WriteAllText("Foo.txt", s, False) '//This writes the file foo.txt with contents. End Sub End Class If you only want selected items then use the following line instead For Each x As String In Me.ListBox1.SelectedItems ...Show All
Visual C# How can I replace all occurance of a string except when it's enclosed with a special tag?
Hello, Let's say I have a variable named: someVar which contains the following: href wow nice this <a href="cp.com">cow duck john</a> text etc And I want to replace: "href" with "link". I can't do: someVar.Replace("href", "link"); Because that will change: <a href="cp.com"> ! So, how can I replace all the occurances of "href" when it's not part of an HTML tag Please help. Tangfx, Your regular expression also has a problem if single quotes are used instead of double quotes. Perhaps altering it slightly to this href( !\s*=\s*( :\"|')) would be better. ...Show All
SQL Server Is Conversion from SQL Server Express to Full SQL Server Required?
If I develop my app in SQL Server 2005 Express, and then want to use a hosting service that only offers full SQL Server 2005, do I have to do some kind of conversion to my DB file, and if so, what might that be (I notice that there are hosting services that provide SQL Server Express...I'd like to know how much work it would be to be able to use other services.) Any guidance on this would be appreciated. Thanks! Glenn, thanks for the input. I'm assuming in the scenario you describe that I would upload the mdf and ldf files to "my" directory on the hosted service systems, and then the operations you suggest would be performed from there...is that correct ...Show All
SQL Server how to loop through several excel sheets in a file in integration services
Hello, I'm new at Integration services and I have an excel file with information in several worksheets. I want to loop through some specific sheets to retrieve the data and save it in a database table. I know how to retrieve the data from one sheet, but I don't know how to do it for several sheets. Any ideas ...I would appreciate any help. Andre, I actually don't know if SSIS can 'delete' or 'truncate' an excel sheet; What i know though, is SSIS is accessing the excel file using and OLE DB provider for Microsoft Jet; so each sheet is treated as table. With this said; do yourself a favor, research arround Microsoft Jet 4.0, its OLE DB provider and may be you will see your options around what you want to ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Update for XNA Build?
Is there a planned update for XNA Build in the near future I'm hoping to start using it on a real project in about 2 months and wanted to know the status of XNA Build. Thanks! ...Show All
Windows Forms to clear all the textbox
hi, can any one tell me how to clear all the textbox present in a tab control in a single event... pls post the reply asap -Sweety you simply iterate through the textboxes that may be available in the controls collection.... Example... foreach(Control currentControl in this.Controls) { if (currentControl.GetType() == typeof(TextBox)) { currentControl.Text = String.Empty; } } ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Protection level to high
I have made a game with 2 classes one for the game, and one for the sky box. For the skybox to function properly the class SkyBox needs to get some information from the Gam1 class. When i made a reference on the skybox class to the game1 class it said "Error 1 'Game1.modelRotation' is inaccessible due to its protection level" case 0: //back f = Vector3 .Dot(Game1.modelRotation, new Vector3 (0,0,1)); break ; I think the solution may be to make an instance of game1 somehow but being a C# noob i am unsure on how to fix this. If anyones got any ideas that would be great You need to add a modifier to the member declarations. Here is an example that should help: GraphicsDev ...Show All
SQL Server Execute SQL Task Error
Hi: I am getting the following error message while trying to run a Execute SQL task with Variables in BIDS. My connection type is ADO.NET . My Variables defined are Varout and Varin. Both are String type Variables. @varout has a value set to "Category" and @varin has a value set to "Test Category". I am using the expression " Select * into " + @[User::VarOut] + " FROM " + @[User::Varin] The expression eveluates correctly. The error I get when i run the package is: Package Validation Error. Failed to lock Variable "Select * into TestCategory from category" for read access with error 0XC0010001. The Variable cannot be found. This occurs when an attempt is made to retrieve a var ...Show All
Visual Studio Express Editions Download and Install Not Working
I downloaded VBSETUP.EXE and when I "Open" it, a bunch of files are copied to a temporary folder, and eventually I get to the Download and Install Progress screen, which contains the following lines: The following items are being downloaded and installed on this computer: Microsoft .Net Framework 2.0 Visual Basic 2005 Express Edition Currently downloading (1 of 2): Microsoft .Net Framework 2.0 The current transfer rate is 0 mb/sec. Total Download Progress: 0 MB/60 MB Then, after a few minutes, the "current transfer" line is replaced with: Status: Re-establishing connection with the server (attempt 1 of 5) Any ideas on how I can get this to work. Thanks. R Forest, ...Show All
SQL Server Using Execution Plan generates strange errors
After installing SP2 for SQL Serve 2005, I get strange errors when using either "Estimated Execution Plan" or "Actual Execution Plan". Using "Estimated Execution Plan" generates this error An error occurred while executing batch. Error message is: Error processing execution plan results. The error message is: There is an error in XML document (1, 3998). Unexpected end of file while parsing has occurred. Line 1, position 3998. Using "Actual Execution Plan" generates this error An error occurred while executing batch. Error message is: Error processing execution plan results. The error message is: There is an error in XML document (1, 4001). Unexpected end of file has occurred. The following ele ...Show All
SQL Server sql monitoring tool
hi guys! what is the best tool for monitoring a database's disk/memory usage can i use SQL Profiler for this Or maybe an existing sql script Please help! Thanks! perfmon is actually windows monitoring tools it can be invoked by Start>run>perfmon. you have to add the counters that you need by right clicking on the graph ...Show All
Visual Studio Team System source language
Hello, does somebody know if it is possible to determine, if a particular assembly was created from a cpp file Or, more generally, to determine in which language the sources were written I thought i could get the information from the sourceContext.Document.Language (or by analysing the filename) but it seems not to work properly (or I'm trying to do it the wrong way). However the Document object is allways null (Pdb's are there). Best regards, Anton Papst. CCI (the binary reader FxCop uses) was orginally designed to raise AST's from source file, however, FxCop only uses the binary reader, SourceContext.Document.Language is not used (or known). I believe this has been ripped in ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Creating projectiles, need help with list.
I am trying to make projectiles that my object can shoot, but am having trouble adding new projectiles to my List<projectile> object. My projectile code (so far) looks like this: public class projectile { float rotation; float rotationAlpha; Vector3 position; Vector3 velocity; float life = 0f; public void Update() { position += velocity * 1000f; life += .1f; } public projectile(Vector3 position, Vector3 velocity, float rotation, float rotationAlpha) { this.position = position; this.velocity = velocity; this.rotation = rotation; this.rotationAlpha = rotationAlpha; this.life = 0f; } public void Create(Vector3 position, Vector3 velocity, float ...Show All
