Software Development Network Logo
  • Windows Vista
  • Visual C++
  • SharePoint Products
  • VS Team System
  • SQL Server
  • .NET Development
  • Audio and Video
  • Visual FoxPro
  • Visual Basic
  • Game Technologies
  • IE Development
  • Visual Studio
  • Microsoft ISV
  • Windows Forms
  • Smart Devicet

Software Development Network >> JoeSmith's Q&A profile

JoeSmith

Member List

chakravarthy_b
Alessandro Camargo
fbecker
harvard_isaac
buckenn
Tony Vaughan
Bluehunter
GoDaddy
Gad Rosenthal
jvnb.kiran
aamer4u
Chuff
rocky050371
tody4
Darrell Norton
Adamus Turner
MrZap
IraMaster
Jon Abbott
Dr.Virusi
Only Title

JoeSmith's Q&A profile

  • .NET Development GetHashCode and Equals once again

    I do not see how GetHashCode() and Equals() can ever successfully be implemented given the guidelines. I am assuming that one of the guidelines, apart from the well-known one of two objects being equal ( Equals() ) returning the same hash code ( GetHashCode() ), is that GetHashCode can not change during the lifetime of an object. Given this assumption it appears to me that GetHashCode must either be implemented on a totally immutable class, or that it must only use immutable data members of a class. Since this is the case, the Equals() function must also depend on either a totally immutable class or only use immutable data members of a class. To me this need to rely only on immutable data in a class defeats the entire purpose of object eq ...Show All

  • Windows Forms Default Selected Item In A Combo Problems

    Hi, I have a SelectedIndexChanged event handler for a combo so that if the user changes his selection a child window is spawned. However I also want to set a default value for the combo box e.g. using this code: comboX.SelectedIndex=0; Is there a way to set the default without firing the associated event (or perhaps a better way of doing this) Thanks! some sample code to illustrate what Jim said 1. in designer.cs, you set the initial value this.comboBox1.SelectedIndex = 0; 2. in form.cs, add event handler after all the components have been initialized public Form1() { InitializeComponent(); this.comboBox1.SelectedIndexChanged += new EventHandler(comboBox1_SelectedIndexChanged); } ...Show All

  • Software Development for Windows Vista Odbcbcp.lib and odbcss.h in Windows SDK

    Odbcbcp.lib and odbcss.h is located in "Microsoft Platform SDK for Windows Server 2003 R2", but is missing in Windows SDK, which I understand is the new name for the Platform SDK, is it located in a separate SDK ...Show All

  • Visual Studio Not able to create a new Guidance Package project

    I'm not able to create a new project with Guidance Package template I successfully installed Guidance Automation Extensions Technology Preview (June 2006 Release for Visual Studio 2005) and Guidance Automation Toolkit Technology Preview (June 2006 Release for Visual Studio 2005) When I try to create a new project with Guidance Package template (File, New, Project, Project Type: Guidance Package Development, Template: Guidance Package) I got Recipe Framework Error: Do you have a solution Error detail: System.TypeLoadException: Microsoft.Practices.RecipeFramework.Library.Actions.CreateUnboundReferenceAction, Microsoft.Practices.RecipeFramework.Library ---> System.IO.FileLoadException: Could not load file or ...Show All

  • Visual Studio Express Editions Is it possible?...

    I was wandering if it is possible to use .NET-developed programs on non-.NET PC's. Can you embed the necessary DLL's, or is there another way...or none at all No - to run a .net application requires that you have the .NET framework installed on the client-machine. The whole premise of the framework is that it provides a common set of classes / methods for .NET applications, and hence only needs to be installed once for all .NET applications of that specific version to run.    The framework can be installed as part of the Windows Update process, so the user may already have the framework on the machine.   In which case your application installer wouldnt try installing again. If you want to write - ...Show All

  • Visual C# Update DataGridView?

    I have following code for the form closing event: private void CurrenciesList_FormClosing( object sender, FormClosingEventArgs e) { dataGridView1.EndEdit(); if (dsCurrencies1.HasChanges()) { DsCurrencies chngs = ( DsCurrencies )dsCurrencies1.GetChanges(); sqlDataAdapter1.Update(chngs); } } Now, problem is the current cell: when I close the form changes on the current cell are not updated if I do not leave the current row. If I close form while I am still in the row all changes to this row are not accepted. It is like this that method EndEdit does not saves the curent row. How can I save current row in the DataGridView I guess anoth ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Aug2006 SDK install question

    Hello! I have VS.NET 2003 and VS.NET 2005 installed on the same workstation. When I installed the SDK it attached to VS.NET 2003. How do I force it to attach to VS.NET 2005 Thanks in advance! What I'm talking about are the Visual Studio .NET extensions that the DirectX DSK installs / attaches to Visual Studio. It might be that I am incorrectly expecting the same features from the DirectX SDK with both Visual Studio 2003 and Visual Studio 2005. A few examples: After I install the DX SDK, in VS2003 I have a new DX icon that appears in the splash screen. While it’s not earth-shattering that this icon fails to appear in the VS2005 splash screen, it does help to let me know that the D ...Show All

  • Windows Forms Binding multiple sources to 1 datagridview

    I have two classes (one inheirited from the other) binded to the same datagridview using a bindingsource and arraylist. Example: class myClass1 { private string item1; public string Item1 { get {return item1;} set {item1 = value;} } } class myClass2 : myClass1 { private string item2; public string Item2 { get {return item2;} set {item2 = value;} } } Now I bind the following classes as follows; ArrayList myList = new ArrayList(); myList.add(new myClass1()); myList.add(new myClass2()); bindingsource1.datasource = myList; datagridview1.datasource = bindingsource1; DataGridViewColumn col1 = new DataGridViewColumn(); DataGridViewColumn col2 = new DataGridViewColumn(); co1.DataPropertyName = "Item1"; col2.DataPropertyName = "Item2 ...Show All

  • Visual Studio Express Editions Putting text on a new line within a text file

    I've created a program and part of that program puts out some results to a text file. However when it next adds text to the file it just tags it onto the end of the previous text. How do I get it to start on a new line I'm using the line below to write text to the file : My .Computer.FileSystem.WriteAllText(ReportPath, " This is the text that goes into the file !! " , True ) Use Environment.newline, like this: My.Computer.FileSystem.WriteAllText(ReportPath, Environment.Newline & " This is the text that goes into the file !! " , True ) Grtz, Tom. ...Show All

  • Visual C# Can I change the stylesheet used by the WebBrowser control?

    Hi, I'm tring to create an RSS reader similar to the one on the start page in Visual Studio 2005. The easiest way for me to do this would be to use a webbrowser control, along with a customised stylesheet (I want several applications to display the same RSS feed, but not necessarily in the same way). Is there a way to force the WebBrowser control to render the RSS feed using a dfferent stylesheet to the one specified in the html/xml file downloaded from the internet Thanks, James you can always to save file on disk /or in memory/ and change whatever you need before pass it to webbrowser control I beleive that you get RSS XML files with data only - wihtout information how to render it take a look ...Show All

  • SQL Server Copy Tables in SQL 2k5 - Need Help

    I have a database - we can call it DatabaseX and I want to copy the tables, keys and indexes to DatabaseY. I tried doing and export/import and it worked for the data but the identity settings were lost. How can I maintain the integrity of the tables and copy the data at the same time The Copy Database Wizard is an option when Service Pack 2 is released. Currently Service Pack 2 is available as a CTP http://www.microsoft.com/sql/ctp.mspx ...Show All

  • Software Development for Windows Vista install error 1330 - steps to success after it (June 06 ctp Windows SDK)

    When I try to download it, it reports : The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page. but it contains files with no content. cabs can't be extracted. i'v tryed VirtualCD from microsoft and Alcohol 120%, both give same result. ...Show All

  • SQL Server password lost

    Hello, I import a package into Integration Services (it containt 3 ole db connections to SQL Server), then I schedule this into a job. When I run the job, it failed ! For the connections, I use a sql user and, in the step that run package, I notice that the password isn't store I add password in the connection string ("Password=password;") and when I rerun the job, it terminate with success. My question is: Is it possible to store the password directly into the package and so avoid password encoding several times Regards Arnaud Arnaud H wrote: Hello, I import a package into Integration Services (it containt 3 ole db connections to SQL Server), then I schedule ...Show All

  • Internet Explorer Development IE 7 CPU Utilization

    I recently installed the IE7 release candidate. Over the past couple days, there have been numerous incidents where iexplore.exe process uses 95%+ CPU, and it hangs there for a minute or longer. I haven't found anything specific on this, but is it a known issue that Microsoft is going to fix Thanks, Jen Hi Jen, Do you have any IE extensions installed These are the most frequent cause of performance issues with IE. This forum is reallty for developer questions. General support can be found at http://www.microsoft.com/windows/ie/support/default.mspx Thanks -Dave ...Show All

  • SQL Server SQL Server - using a cursor to find and sum login/logout times

    Hi all, New to using cursors and i was after some help. We have a trace running to find instances of certain sp's, these basically tell us when someone logs in and someone logs out (1 row per event). Importing into a table basically gives me process, user, datetime e.g. 'login', user1, 2007-02-15 10:21:35.590 'login', user2, 2007-02-15 10:21:36.100 'logout', user1, 2007-02-15 10:22:45.100 'login', user3, 2007-02-15 10:23:23.100 'logout', user2, 2007-02-15 10:27:54.436 'logout', user3, 2007-02-15 10:30:03.237 What i need to do is to basically get to the point where we have user, total time in system' e.g. user1, 1min 10secs (close!) user2, 6mins 18secs user3, 6mins 40secs any help much appreciated. ...Show All

©2008 Software Development Network