Thomas Edstrom's Q&A profile
Windows Forms datagridview doesn't update properly after changing binded table
<i originally asked this post in a different area, but no answer, so i'm trying a different forum> I'm working on a project that's based off a datagridview that binds to a datatable in an xml dataset. I'm having this strange issue. Basically I update the datatable through code, and I want the changes to be reflected back in the datagridview. This works sometimes, however other times the grid won't update. Usually the grid won't update if I programmatically change a row that is currenlty selected in the grid (but if i go back to the grid, deselect the row and highlight another row, the datagridview will update itself). One way I temporarily got around this was to manually change the row selection before I change the data, but thi ...Show All
Smart Device Development Garbage memory on array creation
Hi all, When I create an array is there any chance that I could have garbage memory in the array Is the array created with all null chars ...Show All
Software Development for Windows Vista Hosting Service that supports WCF?
Anyone know of a hosting provider that supports WCF or is willing to install it I'm currently using webhost4life to run http://www.FrancisShanahan.com but they will not install WCF. Cheers, -fs I am from Germany, here we have some company that offers a complete vs for around 20 dollars. DO you have the alternative to rent in germany maybe via creditcard... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Counting Pollys in Game
I would like to display the total number of poly's currently in the viewport and I would like to display the total number of poly's in the scene. I've been looking through the docs and cannot find any obvious way to do this. Can anyone point me in the right direction Thanks. There is no obvious way. You need to maintain your own count. Everywhere you render something add the # triangles to a counter. Clear it every frame. in 3d this means getting ModelMeshPart.PrimitiveCount - or if you are using vertex buffers count them yourself. in 2d assume each sprite.Draw is 2 triangles ...Show All
Visual Studio Express Editions How to get all the computers in a network
Hi, I want to get list of all the computers names with IP address in a LAN. How can i get using .NET c# Thank you To get a list of network computer and share names similar to what you see in Network Neighborhood, look at the WNetOpenEnum() API function. ...Show All
Visual Basic Problem with chart viewer
Hi, After migration from VB6 to VS2005, i m still using chart viewer and the following code to draw chart. But the problem is....the chart is not drawn everytime, sometimes it can be generated but sometimes not. And i also face lockLoader error, is it caused by chart viewer cd = CreateObject("ChartDirector.API") c = cd.XYChart(840, 320, &H9999FF, &H0S, 1) Call c.setPlotArea(75, 60, 750, 190, &H99CCFF, -1, &H6699FF, &H6699FF, &H6699FF) Call c.addLegend(10, 20, False, "", 8).setBackground(cd.Transparent) Call c.addTitle("<*block,valign=absmiddle*><*img=star.png*><*img=star.png*> " & "Price Movement For The Past " & cboMonth.Text &a ...Show All
SQL Server Want to log CLR exceptions in SQL table
So I have some SQLCLR stored procedures, that use some .NET classes. I have a table in the database for exceptions, and I want to log all exceptions (except SqlExceptions of course) to that table. I have the following example: public partial class UserDefinedFunctions { [Microsoft.SqlServer.Server. SqlFunction (FillRowMethodName = "FillRow2" , DataAccess = DataAccessKind .None, SystemDataAccess = SystemDataAccessKind .Read, TableDefinition = "fld_colname NVARCHAR(4000)" )] public static IEnumerable ExceptionTest() { // Some example from a website List < string > names = new List < string >(); using ( SqlConnection connection = new SqlConne ...Show All
Software Development for Windows Vista AudioVideoPlayback problems in C#. Audio, no video.
I am using Microsoft.DirextX.AudioVideoPlayback in a C# application. I believe I am using the Direct X 9.0c August 2005 version. When I play a movie I hear the sound but I do not see the movie. If I move the form I see a ghost image of the movie behind the form but that is it. The C# code is pretty straight forward and simple so I am not sure what it can be. I tried a ".WMV" file and a ".AVI" file, both of which do the same thing. I can play both files just fine in WIndows Media Player. The code follows. Anyone have any idea string path = GetVideoRoot(); if (video != null) {video.Dispose(); } if (File.Exists(path + videoPath)) { lastVideoName = videoPath; ...Show All
Visual C# Restrict the size of a string
This is more then likley going to be an easy fix, but at the moment I can not think straight. What I am tring to do is restrict the size of a string. I am in the process of migrating some data from one sql system to another and need to truncate some text in the process. I need to convert a text field to a varchar(7989), to do this I need to make sure that the data from the text filed is striped so that only the first 7989n characters are returned. I have a data reader that I am going through and am adding it to a genieric collection that I am then going to process and re insert into the new system... all I need is a way to restrict the text returned from the data reader... all the rest is fine. won't the following work for you ...Show All
Windows Forms skinning ??
is it possible to skin your application in the visual studio .net like change the look of the Title bar, Minimize, Maximize and Close buttons. does anybody know how to do this Hi, Please go through the following link. this might be of some help. As it is, it shows on how to customize painting. One more way is design a custom form with custom controlbox. http://msdn.microsoft.com/library/default.asp url=/library/en-us/dngdi/html/highdpiapp.asp thank you, bhanu. ...Show All
Visual Studio Tying domain classes to shape objects
Hello! Please forgive me for such a beginner question, but we just started playing with DSL Tools a few days ago and are having some trouble getting shapes to appear in the VS toolbox. We've attempted the following steps: create a domain class ('FooElement'), create a Geometry Shape ('FooShape'), add an Embedding Relationship from ExampleModel to FooElement. In the DSL Explorer: add a ToolboxTab/Tool (Class=FooElement, Order=10), add a ShapeMap (Class=FooElement, Shape=FooShape). After performing these tasks, the item still won't show up in the VS toolbox when running the project. Help EDIT: the error was that the templates hadn't been transformed. However, now, when dragging an object onto the surface, it adds it ...Show All
Visual C# how to disable the event of index_change of ComboBox
There are two ComboBoxes in my application with the same items and should be changed synchronized. However, whenever there is a change to the index, the programe should write data to the Serial Port...So the problem now is, when I change the index of one ComboBox, the other one will also change, however the data will be written to the Serial Port twice... private void cbFreq _SelectedIndexChanged(object sender, EventArgs e) { comboFrequency .Text = cbFreq .Text; decimal freq = Convert.ToDecimal( cbFreq .Text); if(registers.GetFrequency().ToString()!= cbFreq .Text) registers.SetFrequency(freq); } private void comboFrequency_SelectedIndexChanged(object sender, EventArgs e) { cbFreq .Text = ...Show All
SharePoint Products and Technologies sharepoint 2007 showing System Account instead of Username / full name
When i login with my username & password into sharepoint (2007) site, it displays as a "System Account" instead of my username or my full name on the top right corner of the website. What ever changes i make inside the site, for example upload a file, post a comment, sharepoint marks it as a System account instead of my name. Can someone help me figure it out why Thanks. As Ishai said it's not generally considered a good practise, but you can still fix it. Go to Central Administration / Application Management. Click Policy for Web Application. Select your web app and click your account in the list. In the Edit Users page, clear the Account operates as System checkbox. That should fix thi ...Show All
Windows Live Developer Forums Invisible DIV over pushpin
I'm trying to use custom pushpins with my own popup which is a DIV tag with details in it. I'd like to mimic the effect of mouseover the pushpin and have the popup(DIV) disappear. I read someone's suggestion re: placing an invisible div over the pushpin that has been clicked That way I can hide the DIV with the details when the user does mouseout over the invisible div on the pushpin. I have the x, y coordinates of the pushpin, but the DIV placement is relative to the window, right I'm confused on how to associate the DIV placement to the x, y coordinates on the map, and to adjust accordingly. thanks in advance. Steve Hey again Steve (along the lines of the other reply I posted) -- sounds again ...Show All
SQL Server sql express installation error
Hi, I have tried to install sql express several times and each time it fails to start the sql service during the install process. I am copying part of the three log files below. File Name :C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\LOG\Files\SQLSetup0008_REHMANK-PC_Core.log Running: ActivateLoggingAction at: 2006/11/11 13:33:57 Complete: ActivateLoggingAction at: 2006/11/11 13:33:57, returned true Running: DetectPatchedBootstrapAction at: 2006/11/11 13:33:57 Complete: DetectPatchedBootstrapAction at: 2006/11/11 13:33:57, returned true Action "LaunchPatchedBootstrapAction" will be skipped due to the following restrictions: Condition "EventCondition: __STP_LaunchPatchedBootstrap__2836" returned false. Running: Per ...Show All
