jrothwell9's Q&A profile
Visual Studio Team System Identifying attributes applied to fields
This is similiar to another post I had about identifying attributes at the type level http://forums.microsoft.com/msdn/ShowPost.aspx PostID=86895 but the answer to that problem doesn't work for this one. How do you get information about the attributes applied to a field The attribute I'm looking for this time is [NonSerialized()]. Member.AttributeList is empty and there is no RuleUtilities.IsSerializable overload for Member. I also tried RuleUtilities.HasCustomAttribute(Member, TypeNode) but it doesn't work. I may be using it wrong though. Here is how I tried it: Type t = SystemTypes.NonSerializedAttribute.GetRuntimeType(); TypeNode t ...Show All
Visual Studio Express Editions Break a loop using a button
Hi, I'm working with Visual C++ Express Edition and I have a question. I'd like to break a while-loop cliking a button on my windows form. How can I do it boolean controlador= true ; while (controlador){ } private : System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) { controlador= false ; } While the program is doing the loop don't recognized button clicks. Thanks for your help Please follow your previous thread at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=355555&SiteID=1 Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Basic VS 2005 seems unusable for large VB converted project. How do I turn off the background compiler.
VS 2005 seems unusable for large VB converted project. How do I turn off the background compiler. I have a fairly large project that I migrated from VB6 to VS2005. This is the RTM version of VS2005. There are many issues that I need to fix up in the code, but every time I change one line of code, my system runs 100% CPU for 30 seconds. This is not even close to usable. You might think I have a slow machine, but I am running this in a P4 3.5 GHZ with 1GB of RAM, and a SATA 150 hard drive. I will be forced to abandon use of VS 2005 for this project unless I can find a work around for this issue. Please help! ...Show All
Visual Studio Team System Team System Virtual PC images
I thought I heard some talk about Team Foundation Server Virtual PC images being given used at PDC (or TechEd I forget which). I was wondering if there were any plans to make this available to the public or to MSDN Subscribers. It'd be great if they were as it would save a lot of time, when all many of us really want to do is get it up and running so we can test the functionality. Trying to sell this technology to the check writers is difficult as it is, and anything that helps get it setup and running faster would help that. Thanks We're working to make them available for download to MSDN Subscribers. We're ...Show All
Visual C# How do I share a class between projects
This is probably a really silly question, but I'm fairly new to C# and .NET. I have a solution with two projects in it, both windows applications. I have a class that I want to be available to both projects, but I can't work out how to do it. I can't reference one project from the other because they are .EXEs not .DLLs, and I can't add the class to both projects because that creates two separate source files, which obviously defeats the purpose. I'm sure it's quite simple, but I just can't see it. even i was trying to do the same thing. share a vb class between two projects. but when i followed the above step ...Show All
.NET Development XSD Validation error
Hi, I have an xsd schema with element definition xsd:integer. When I validate xml against this xsd, the validation succeed with number for example 224774314284064845070339, but when the number is 293409809956581662525034534431949697468, it fails with invalid element according to its datatype. When I try validate with msxml4, it works fine. Has .NET 1.1, 2.0 some bug Thanks for any help. code samples: ----------------xml----------------- < xml version="1.0" encoding="utf-8" > <root xmlns=" http://tempuri.org/test.xsd "> <cislo>293409809956581662525034534431949697468</cislo> ...Show All
Windows Forms Dataset Update filed to NULL??
Hi all. In the following code how do I update my dtaset with "NULL" when the value of my TextBox17.Text="Null" Thank you. Peter '----------------- CODE --------------------------- strConn = ConnectionString() Dim ocon As OleDb.OleDbConnection = New OleDbConnection(strConn) ocon.Open() Dim sql5 As String 'This will be a true Add New Inspection sql5 = "Select * from Inspections" Dim daInspect  ...Show All
Visual Studio Team System Assign group rights during the project creation
Hi, In a process template, is there a way to automatically assign permissions to a defined Team Foundation Group For example, i have a global server group which name is "Developers" and i would like to assign it automatically during project creation to "MyProject\Contributors" project group. I found how to create custom groups with custom rights within the " GroupsAndPermissions.xml", but not how to assign rights like we can do in the version control file with "[$$PROJECTNAME$$]\Project Administrators" If someone can help me Unfortunately this is not possible wit the existing v1.0 Gro ...Show All
Visual Basic Using Modules for the Underexperienced...
I have created a public module to hold often used functions like cut, copy, paste, undo. I have something similar for print-related functions. I have the correctly named buttons on my form that correspond to the Subs in the module(s). Now how do I call the darn things If you have declared the functions as Public then you simply invoke them: Answer = SomeFunction(A,B,C) or Answer = ModuleName.SomeFunction(A,B,C) ...Show All
.NET Development Problem using @@IDENTITY when connecting to Access 2000
I'm building a small C# application which uses ADO.NET to connect to an Access 2000 database. The problem I have is when I save a new record and try to retrieve the new record to re-display the details on my form. I was under the impression that the following query should give me the required result: SELECT * FROM Users WHERE (ID = @@IDENTITY) however when the code executes I get the following error: Syntax error (missing operator) in query expression '(ID = @@IDENTITY)'. If I try to save an existing record and reload it using the existing ID value then the code executes fine so I can only assume it's a problem with the @@IDENTITY value. ...Show All
Visual Basic VS 2005 in opens HTML and ASP in design view
I have a project which uses the vs2005 IDE but just has ASP (ASP3) pages, plus a couple of other files I have searched high and low but cannot find an option which lets you open an ASP page in source mode instead of design mode in vs 2005. Anyone know how this can be changed thanks Thank you, thats it. I hadn't found that set of options, and was expecting it to be under the html editor thanks again Paul ...Show All
Visual Basic Change Connection String At Run Time
Is this even possible I want the user to be able to select a database file from a open file dialog box. From there I know how to create the string however by using: My.Settings.connectionString is read only. Any ideas on how to be able to change the connection string based on what the user selects Thanks, chris you may wish to look at this suggestion: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=876500&SiteID=1 ...Show All
SQL Server Scheduled Jobs & emails ( Sql 2k)
Hi All, The name of the Server was changed which in turn gave me the following error when I tried to delete the jobs Error 14274: Cannot add, update, or delete a job (or its steps or schedules) that originated from an MSX server. The job was not saved. Knowing that it has to do with the Originator server in the sysjobs table; I hacked the table ( now I think not a good idea ) and deleted all the jobs that I wanted to delete and performed the same task on sysjobservers. Now although I have accomplished the deletion of the jobs. But I still get emails ( job failure notifications) for the deleted jobs exactly at the time th ...Show All
Visual Studio Express Editions I can't get sql serever 2005 express to install
I've tried several times and have not been able to get the process finished to instal sql server 2005 express to load on my computer. I get to the very end and get a failure. I went to the error log and got this: Microsoft SQL Server 2005 9.00.1399.06 ============================== OS Version : Microsoft Windows XP Professional Service Pack 2 (Build 2600) Time : Fri Feb 17 10:48:10 2006 TELFORDT : The current system does not meet recommended hardware requirements for this SQL Server release. For detailed hardware requirements, see the readme file or SQL Server Books Online. Machine : TELFORDT Product : Microsoft SQL Ser ...Show All
Visual Studio Express Editions Help with a network project, I guess?
Hi, I need one more thing I forgot to ask in my previous post. (BTW, thanks, Dave!) I know there was a difficult way in VB 6 to send messages over a network using net send and messenger services built in to windows. However, I have no clue how to do this in VBE 2005, and I don't remember how to do it in VB 6. In addition, is there any way to set up a peer to peer chat service, (I have done this in C++, but not in VB) Thanks for all your help! hi, you can use System.Net.Sockets to build a socket to be used for remote communication those links have examples on how to do that http://www.codeproject.com/vb/net/UDP_Send_R ...Show All
