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

Software Development Network >> Thomas S. Andersen's Q&A profile

Thomas S. Andersen

Member List

ashk1860
msteinle
Zygimantas
Yong Hwee
Binu Jeesman
cggamer
UK_2006
Felicity
soul creator
Sheng Jiang (蒋晟)
rs2005itw
ARKHAN
wiyosaya
Lou_Davis
Rosetta
ineedhelp1222
yema2001
Hammad_Awan
Sharma Rahul
MichaelL
Only Title

Thomas S. Andersen's Q&A profile

  • Visual C# ArrayList Sort, InvalidOperationException

    Hi, I sometimes get InvalidOperationException when sorting an arraylist object. Is there any reason why its happens sometimes. following is the stack trace of the error. System.InvalidOperationException was unhandled Message="InvalidOperationException" StackTrace: at SorterObjectArray.QuickSort() at System.Array.Sort() at System.Array.Sort() at System.Collections.ArrayList.Sort() at System.Collections.ArrayList.Sort() at localize.Form1.computeposition() at localize.Form1.proceed_Click() at System.Windows.Forms.Control.OnClick() at System.Windows.Forms.Button.OnClick() at System.Windows.Forms.ButtonBase.WnProc() at System.Windows.Forms.Control._InternalWnProc() at Microsoft.AGL.Forms.EVL.EnterMainLoop( ...Show All

  • Visual Studio Team System How to implement AssignTo combobox

    I would like to implement an Work Item's "Assign to" Combox box. How to get the list of users listed in the Combxo Box through VSTS web services Thanks, Yuhang. You can use the object model to do this.  If would look something like this. Reference the following DLLS in c:\Program Files\Microsoft Visual Studio 8\Common7\IDE\Private Assemblies\ Microsoft.TeamFoundation.dll Microsoft.TeamFoundation.Client.dll Microsoft.TeamFoundation.WorkItemTracking.Client.dll using Microsoft.TeamFoundation.Client; using Microsoft.TeamFoundation.WorkItemTracking.Client; TeamFoundationServer tfs = TeamFoundationServerFactory.GetServer("YourTFSServer"); WorkItemStore wiStore = (WorkItemSto ...Show All

  • Gadgets Controlling a browser from a gadget

    This may be a more related to Vista/IE7, but I'm looking for an in-gadget solution so here goes. I need to collect a token by allowing a user to login through a website. The normal way is to open a browser via ActiveX and monitor it until the process is complete. The opening code looks like this: var ie = new ActiveXObject('InternetExplorer.Application'); ie.visible = true; ie.navigate2("https://loginpage.com"); At this point I can monitor the ie.Document.body.outerText until I reach the page and collect the token. But... The sidebar runs in protected mode, which gives me a protected mode IE, which returns a wrapper object instead of the IE handle after the call to navigate2. Any ideas how to accomplish this Can I write a simple ...Show All

  • Visual Basic BindingNavigator Delete Cancel

    I have a BindingNavigator and combobox tied to the same BindingSource. I want to allow the user to confirm a delete after hitting the delete button of the navigator. It appears that the row gets marked for deletion after my BindingNavigatorDeleteItem_Click event handler is processed. Is there no way to cancel the delete activity from within the delete click event If not, then it becomes necessary to store a delete flag and catch another event to RejectChanges. The BindingNavigator component for me is a very unnecessary and stupid thing to use. I'm beginning to agree with you.... now that I've overwritten the navigation, add, deletion and save events. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. 3D Mesh in screen space?

    I would like to have a 3D mesh work similarly to a mouse cursor. To do this, I need to setup the world, view, and projection matricies so that it will undo the 3D transformation. I found some code from another post, but it is not functioning correctly. Here is the code: effect.World = Matrix .Identity; effect.View = new Matrix ( 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, -1.0f, 0.0f, 0.0f, 0.0f, 0.0f, -1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f); effect.Projection = Matrix .CreateOrthographicOffCenter( 0, 1280, -720, 0, 0, 1); My screen width is 1280, and width is 720. How would I go about doing a rotation on this model Also, how would I position the model on the screen using this method Any help would be appreciate ...Show All

  • Smart Device Development How to show a loading gif

    Hello everybody, I want to create a gif while my app is connecting with the server. The tipical "loading" gif to say to the user that something is happening and you have to wait. Something like that: http://www.charitablegift.org/demo_files/images/loading.gif I have used Thread class but it doesn’t seem to work. Can you help me with an example Can you tell me what class do I have to use I am using VS 2005 Compact Framework. Thank you. Are you talking about the standard "Waiticon" on Windows Mobile In that case you can show it by: Cursor.Current = Cursors.WaitCursor; To remove it I believe it is...: Cursor.Current = Cursors.Default; If not, use the Intellisense on the Cursors enumeration.... Oystein ...Show All

  • SQL Server Excel Export error in RS200SP2 when nesting tables within matirx

    I was hoping someone could help out with this issue....I've got a report I created in Reporting Services 2000 SP2 where I am nesting table elements within the row and detail sections of the matrix. This allows me to have multiple items within my "row" data with column headings, and works perfectly fine within the designer, and viewer, and whenever I export it to any format other than Excel. Exporting to excel results in a "Specified cast is not valid" error. To me this seems to be a bug in the Excel rendering extension, since it seems to be supported in RDL. Has anyone else run into this Is there a fix to the renderer or a workaround that anyone is aware of I'd be happy to post the RDL if anyone is interested. ...Show All

  • Software Development for Windows Vista GetVersionEx weirdness on Vista. Please help

    I am calling GetVersionEx to get the windows version. I am using code sample provided at http://www.codeproject.com/win32/osdetect.asp . On WindowsXP it correctly returns 5 as the major version. But on Windows Vista, it returns 5 again instead of 6. Has anyone see this issue or any ideas why GetVersionEx returns incorrect value on Vista So far I have tried compiling with different settings of _WIN32_WINNT, reinstalled Vista just to be sure, tried to run this on a different Vista system with the same incorrect result. I also tried GetVersion instead of GetVersionEx too without success. Should I check for some registry keys or something I am stuck on this for more than a day now. Appreciate any help. Thanks. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Directx SDK (december 2006) viewer crashes on startup

    Well, the title basically describes what is the problem... I've uninstalled my directx sdk (october), rebooted to make sure things were clean. Then I installed the last SDK (december) and my viewer (directx sdk's viewer for .x and .fx files) simply stopped to work. Whenever I start it, it crashes with the 'send report' error. Any ideas what could've caused this " Ereco wrote: I have the same problem. Any fix Still nothing... I've ran out of ideas of what to do to try to fix it... so, just submitted the error report. Have made a simple project that just plots the mesh on the screen, it's not the most confortable way to work, but at least it helps to test my models until the proper viewer is usable again. Since I'm doing ...Show All

  • SQL Server Hidden rows in excel issue

    Hi, I'm hiding rows in my report using the Hidden property and works fine in reporting services but once i export the report to excel those rows are coming visible again, if anyone has any idea for solve this problem Thanks, ...Show All

  • Windows Live Developer Forums Trying to use VE in an existing CMS framework without body onLoad event

    Hi all I am trying to sneak a map into a 'find us' page using big nasty CMS that will include html inside <body> but not let me tinker with onLoad events (it seems to have about a trillion for itself). Taking the simple sample from ViaVirtualEarth I have tweeaked so it *should* run: <script src=" http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js"></script > <script language="javascript"> map = new VEMap('myMap'); map.LoadMap(new VELatLong(-33.7939, 151.1093), 10, 'r', false); </script> <div id='myMap' style="width:500px; height:400px;"></div> But nada - must be something simple I am missing... Thanks in advance Al ...Show All

  • .NET Development Exception Details.

    System.Data.OleDb.OleDbException: No value given for one or more required parameters. This is the trouble ~ But i don't know how solve it :P The code follow's down: public void bindDataGrid( string ProductId) { OleDbConnection myConn = new OleDbConnection (); OleDbDataAdapter myOleDbDataAdapter = new OleDbDataAdapter (); string sqlStr, connStr; DataSet myDataSet = new DataSet (); connStr = "Provider = Microsoft.Jet.OLEDB.4.0;Data Source=C:/Inetpub/wwwroot/csharp2005/Products.mdb" ; sqlStr = "SELECT ProductId, ProductName, Price FROM Products WHERE Price > 40 ORDER BY Price" + ProductId; myConn = new OleDbConnection (connStr); myConn.Open(); myOl ...Show All

  • .NET Development XmlSerialize a System.Drawing.Font

    Hi, I haven't used the XmlSerializer with any built-in types before, so maybe this is a common restriction... But are System.Drawing types possible to serialize When I try to serialize any System.Drawing type, I get a runtime error: Could not load file or assembly 'System.Drawing.XmlSerializers' I can't find any references to this assembly anywhere on the net. Is it something that hasn't been implemented in .NET yet.. Thanks, Jonas Jonas, You get this error because the type you're trying to serialize is not XmlSerializable (maybe some IDictionary is there or something like that).... so it won't be possible to serialize it as xml. The error message you receive is telling you that the framewo ...Show All

  • Visual Studio Express Editions DHTML controls

    how do i get the copy, cut and paste controls to work with the DHTML box thanx, i've made my html editor using most of the code u gave me but i changed some of it. Would like to add some features to my editor but im not sure how, can you help The features i want to add are - - Copy string from webbrowser to clipboard - Cut string from webbrowser to clipboard - Paste string from clipboard to webbrowser - Undo last action - Redo last action - Select all text&images in webbrowser - Clear all text&images in webbrowser - Change webbrowser font using font dialog - Change webbrowser text color using color dialog ...Show All

  • .NET Development What's the INI file handling class in the framework?

    Hi. Is there a class in the dotNET framework which can handling a INI file easily For example, this class can load a INI file into memory and gets the value of a given key. Very much alike the java.util.Properties class in the Java Class Library. Thanks! There isn't any built-in support. It is easily added though. Like this class for example. You can find loads of other ones. ...Show All

©2008 Software Development Network