N G Smith's Q&A profile
Visual Studio Team System Version Control Folder
Hi What are the contents of version control folder exactly thnx Maybe I don't get the question, so if you can put more details about what do you want to know exactly. Or maybe it's as simple as: the contents of version control folder, is whatever you want to add to version control, usually source code and project files, and also, the .proj files of your Team Builds. ...Show All
.NET Development Updating Adds the same record to all rows in the Database instead of just one?
Hello. I'm trying to update a single record in a database to add new data, but when I hit my update button and the event runs, it adds that record to ever record in the database overwriting the current data in the database. I'm not sure how to work around this problem. Any help would be greatly appreciated. Thank you. You lost me on this one. Adding to the datatable is completely different from adding to the db. You can add a zillion records to the datatable and if you don't call Update (or some other command object method) then nothing will be sent back to the db. If this is a new record, than an INSERT is the command you'll want. The whole strategy you are using though is going to be a challenge. I'd recommend just configuring an adp ...Show All
Visual Studio Tools for Office Outlook theme(color scheme)
Hi, i'm trying to get(as information) the outlook theme(color scheme). is it possible and how i can do this through vsto and vb.net thanks, John You want to look at the registry value HKCU\Software\Microsoft\Office\12.0\Common\Theme, which can have one of these values for Office 12: 1 (default): blue 2: silver 3: black ...Show All
Windows Forms System Standby When Playing DVD's
I'm currently experiencing a problem where my computer enters standby mode after 20 minutes. I've changed the power schemes to reflect "Never" so that it shouldn't enter standby and shut off the screen saver, yet the problem still occurs. Since this is a problem when playing DVD's, I've turned off the "Enter Password" option when returning from standby, and I've also shut off hibrination. Is there something I'm missing here Is there a patch to correct the problem As for what system I'm using, it's Windows XP Professional Service Pack 2. The computer is a Dell Optiplex, Intel Pentium 4 2.4 GHz & 512 MB RAM. I'm using an ATI Graphics card and sending the signal out of the computer to an LCD Projector and bac ...Show All
SQL Server server timeout
In SQL server management studio: When doing ex count(*) for a big table or create index or like, I get timeout error. The timeout setting = 0 Even timeout = 888888 gives timeout Does not the query execution timeout parameter work Or are there other parameters needed to be ajusted Hmmm... are you able to execute SELECT COUNT(*) from other applications with configurable timeouts i.e. SQLCMD or a custom .NET application Paul A. Mestemaker II Program Manager Microsoft SQL Server Manageability http://blogs.msdn.com/sqlrem/ ...Show All
Smart Device Development XP Pro Local Smart Card Logon
I was wondering why it is not possible to log on to a Windows XP Pro machine locally using a Smart Card. I have looked in the Local Security Settings console and have found this under Local Policies > Security Options. "Interactive logon: Require smart card" It does now state that you have to be on a domain in order for that to work. I have even tried using NetSign to force my system to prompt for Smart Card in order to log on locally but it keeps prompting that there is no smart card present when inserted at the logon screen. I even forced Ctrl+Alt+Del to be pressed to log on and it still prompts for smart card to be inserted even after I have inserted it. Is there any software out there that can force Smart Card to be ...Show All
.NET Development Future XSLT/XPath features in .NET Framework
In effort to prioritize our goals we composed the list of random features each of them may add value to set of XSLT tools offered from Microsoft. 1. XSLTc (Compiler for XSLT stylesheets, that generates .NET assemblies) 2. Performance improvements in the XslCompiledTransform 3. Compilation XSLT to JScript (like AjaXslt) 4. Compilation XSLT to C++ 5. XSLT 2.0 in the XslCompiledTransform 6. XSLT 2.0 in the MSXML 7. XPath 2.0 ...Show All
Visual Basic Working with an array of structures
I am having problems creating and using an array of structures. Please tell me if my logic is faulty. Friend Structure NewStructure Friend A as string Friend B as string End Structure I next create my array name: Friend MyStructure(5000) as NewStructure Next, I create my array of type NewStructure For i =1 to 100 MyStructure(i)=new NewStructure MyStructure(i).A="LaLaLa" MyStructure(i).B="DoeRayMe" next i Redim Preserve(i-1) Now, I should have an array of 100 NewStructures which is shared across my project. Does this procedure look correct Thanks, Fred It would be helpful if you'd tell us what problem you have. However, I see a couple: - Arrays start at index 0, you start f ...Show All
SharePoint Products and Technologies Auto Forward User to 'My Site'
Dear all, How to auto forward user to their My Site. Currently when user login, they will see the master Sharepoint Page. Thank you What is the javascript to redirect someone to another site Someone gave me this and I put it in a CEWP and it doesn't do anything. <script type="text/javascript"> <!-- window.location = " http://www.google.com/ " //--> </script> Can anyone help Thanks. Bailey ...Show All
Visual Studio 2008 (Pre-release) How to server a document from Sharepoint?
I have a piece of code that will be a list of documents from a document library, but what I need to know is once I have my object ready to go, how do I use WCF to return that document to a requesting ASP.NET site The sample sharepoint code is as follows: SPSite site = new SPSite("http://server:12345/sites/Name/"); using (SPWeb web = site.OpenWeb()) { string docLibName = "Shared Documents"; string viewName = "All Documents"; foreach (SPFolder f in web.Folders) { foreach (SPFile file in f.Files) { file //!Here is the file that I need to return!!! } } } This code will run as a WCF method requested by an ASP.NET application, how do I then use t ...Show All
Windows Forms "Index was out of range." error. Gridview.
Hi, I'm trying to pass the contents of a data cell onto a command using GridView. I keep getting the error that's listed in the subject on the line in red below. If I have a line like: lblStatus.Text = Convert.ToString(e.CommandArgument); (lblStatus is just an arbitrary label on my page) The output returns the correct row number. What is going on Thanks! protected void gridSearchResult_RowCommand( object sender, GridViewCommandEventArgs e) { if (e.CommandName == "PingURL" ) { if ( Convert .ToInt32(e.CommandArgument) > -1) { int index = Convert .ToInt32(e.CommandArgument); GridViewRow row = gridSearchResult.Rows[index]; string Pingy = ( string )row.Cells[1].Text; ...Show All
Windows Live Developer Forums 3D Map not displayed.
Hi, I am trying to view 3D maps from my IE 7 browser. My hardware configuration is P4 2.8 GHz; 1 GB RAM; inbuild graphics card with 64 MB of memory. When I switches to 3D mode the 3D control gets loaded successfully but when I zoom in; I can't see any 3D structure; only thing I can see is green land. How can I view 3D objects like buildings & all on Virtual Earth Depends on where you are looking as not all areas support 3D buildings. If you zoom into Seattle, you should be able to get some things to look at (I'm able to view buildings there are full zoom with no problem). ...Show All
Visual C# Finding text in a Rich Text Box Control
I find that when I use richTextBox.find(string) it only seems to search until the first occurrence of the string. How can I have a find like that in notepad etc. i.e. finds the next occurrence with each click. The code I'm currently using to do this is: int pos; if (RichTextBox.SelectedText == "" ) { pos = RichTextBox.Find(searchTextBox.Text, 0, RichTextBoxFinds .None); } else { pos = RichTextBox.Find(searchTextBox.Text, (RichTextBox.SelectionStart + 1), RichTextBoxFinds .None); } if (pos < 0) { MessageBox .Show( "Your query " + searchTextBox.Text + " could not be found" , "Results" , MessageBoxButtons .OK, MessageBoxIcon .Warning); RichTextBox.DeselectAll(); } ...Show All
.NET Development Binary serializing an object which composites an interface field without serializing the interface implementor
I want to serialize an object which composites an interface. While serializing the actual class, I do not want to serialize the object that implements this interface. I just want to keep its reference and pass it to the serialized class. Here is an example [ Serializable ] public class Sample { private string _name; private IInterface _sampleImplementation; public Sample(IInterface interface) { _sampleImplementation = interface; } } When I use custom serialization by implementing ISerializable, in the GetObjectData method anything I add to the SerializationInfo gets serialized automatically. I just want to keep the reference of the object that implements the IInterface and pass it to ...Show All
Windows Forms Threads and BackGroundWorker
Hello I have a form to convert data from a FoxPro database to SQL2005 database. Because Foxpro tables are not normalized, i must create a Method specific for each table so i can insert the values correctly in multiple tables in SQL. It seems crazy, i know, but it's the only way to achieve this correctly and guarantee the data is going to be well written in SQL with FK constraints and everything. I want to be able to execute many of this methods at the same time. I created a UserControl that contains a Label, ProgressBar and checkboxes. Every table to convert has one of this usercontrol attached so you can keep track of the progress of every table in the conversion process. All this works perfectly fine IF i don't use Threads (my g ...Show All
