Grant Jenkins's Q&A profile
Windows Forms proplem when adding collection as a property to the datagridviewcomboboxcolumn
hi to all iam trying to create a new column type for the datagridview ,the new column is like the built in datagridviewcomboboxcolumn but with some new properties therefore i subclass the datagridviewcomboboxcell and the datagridviewcomboboxcolumn and i add my new properties. everythink going to be ok for the new properties Excep for the Collection when iam trying to configer it throw the collection editor it work ok but when i leave the collection editor the setting for the properties was lost my collection is very simple i create class that contains three properties [Serializable()] public class myobject { private string caption; private int order; private bool visible; } then i make my collection that co ...Show All
Software Development for Windows Vista Advice on where to begin
Beyond the Activity objects which have been posted online, what other Activities & Workflows will shipping with WinWF when it is released I'm sure the developers here on this forum would like to focus their efforts in areas that are not redundant with the shipping framework... Lastly, what advice can you offer us in terms of where to begin... I did not attend the PDC this year, but I have review most of the PPT files that have been posted regarding WinWF. V. Download the hands on labs - 12 in-depth tutorials: http://www.microsoft.com/downloads/details.aspx FamilyId=35238943-291F-4A37-BB8F-AC09B2E25B2F&displaylang=en Andy Mackie. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Render target save'n'restore
I've a func that do some work including rendering into rt. So, i need to save old rt at the beginning of my rendering, and then restore it at the end ( when smb call my func, he may have rendering to texture enabled, or just rendering to the backbuffer, and he don't wont to worry about restoring his rt after call of my func ). Is there any way to implement such a behaviour using XNA On the Xbox, there is only a single render target. "Render to texture" is done by rendering to this target, then using an ultra-fast memory copy into the texture area. Thus, if you really need to save the screen render target, you have to do something like: 1) copy current screen to texture 2) render your stuff 3) ren ...Show All
.NET Development Resolution of DateTime.AddSeconds()
The documentation says that the value parameter, which is a number of whole and fractional seconds, is rounded to the nearest tick (100 ns, or 0.0000001 s). However, my experience shows that it is rounded to the nearest millisecond. If you run the following code (C++ 2005, .Net 2.0): DateTime MyDT , NewDT ; __int64 diff ; MyDT = DateTime ( 2006 , 1 , 1 , 1 , 1 , 1 ); NewDT = MyDT . AddSeconds ( 0.1234567 ); diff = NewDT . Ticks - MyDT . Ticks ; Console :: WriteLine ( L "Difference #1: {0}" , diff ); you would see that effect. Is this a bug, a case of incorrect documentation, or am I missing something Kamen If only this were the only instance of wasted time for this exact same reas ...Show All
Visual Basic BackgroundWorker unhandled error
Hi, I'm having trouble with BackgroundWorker. I have some code in the BackgroundWorker_DoWork() event that can raise an error. According to the BackgroundWorker documentation, errors raised in BackgroundWorker_DoWork() should be captured by BackgroundWorker_RunWorkerCompleted() event and appear in the events args as e.Error . But when I try this, every time my code raises an error, the debugger says its an unhandled exception. I've tried the MSDN example and again the debugger arcs up. I've even tried the solution from a C# post which was to make sure that checking of e.Error was the first line in the BackgroundWorker_RunWorkerCompleted() event - still no joy... Any suggestions Hi, no bugs here. Decora ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Strange effect when using translation
I have a strange problem when I'm trying to move one model around. When the model is in the center of the camera it look okay ( http://www.marmalad.com/milan/sample1.jpg ) but when I place it away from the center (let's say to the right) the model seems to be rotating as well ( http://www.marmalad.com/milan/sample2.jpg ). I would like to ask why is this happening Why is the model rotating when I'm just using translation Thx in advance. I'm absolutely sure that it was because of the culling machanism and XNA actually uses right-handed coordinate system by default. Proof (MSDN XNA FAQ page): What coordinate system does the XNA Framework use The XNA Framework uses a right-handed coordinate system ...Show All
Visual Studio Express Editions On start aplication closes without error... but...
So here is my complete problem.. i have a aplication working on another computer with dot.net 2 instaled... i compiled aplication with all dll's in the same directory with the app and it works.. but when i put it on network drive... on our windows server... aplication just starts and 3 seconds later closes without and error ! was anyone in similar situation ! is there any whey knowing what is wrong p.s. i tried both debug and final build... and the network disk is attached to my comp with drive letter... See if this helps: http://blogs.msdn.com/shawnfa/archive/2003/06/20/57023.aspx ...Show All
Visual Studio Team System Testing Java Application with VSTS
I have one Project Devoloped in JAVA,Can I test that application using VSTS, if Yes plz advice me how to test if not, plz suggest me the reason. Thanks in advance Mahendra Like Johnny indicates, the web tests work at the http layer. The enigne submits http requests and receives the respones. Are web/load tests, the type of testing that you are interested in ...Show All
SQL Server batch jobs
I'm looking for the definition of a batch job, what is it How is it run How does it differ from other jobs thx, Kat batch as compared to stored procedure is characterized by many roundtrips to the server as compared to one round trip in SP SP is enjoy cached execution as compared to several process of parsing, compiling,optimizing and executing a batch process ...Show All
Visual Studio Need the Default New Project View Back!!
When installing VS.NET 2005, I set the default view to the C# Programming Language. Now I need to be able to create a project in VB, but I can't figure out how to change the view back to the default screen at File | New | Project, to show me all of the other languages. Any help would be appreciated, ToeKnee Go to Tools menu, Import and Export settings. A wizard will appear, chose Reset All Settings on the first page, Yes, Save my current settings o the second page, and on the third page you will find the option you want. ...Show All
Visual Studio 2008 (Pre-release) June CTP Exception reading GroupBox Template
If I do this: StringBuilder sb = new StringBuilder (); using ( TextWriter writer = new StringWriter (sb)) { GroupBox aGroupBox = new GroupBox (); System.Windows.Markup. XamlWriter .Save(aGroupBox.Template, writer); string test = sb.ToString(); } My app bombs a short time later. The Stack shows it crashed at BamlRecordReader.ReadRecord. This also crashes EID June CTP. Any ideas for extracting templates try adding groupbox to a page/window and then get the template Here is the template for groupbox - < ControlTemplate TargetType =" GroupBox " xmlns =" http://schemas.microsoft.com/wi ...Show All
SQL Server SQL2005 With No Server
Please What can i do with this message " TITLE: Connect to Server ------------------------------ Cannot connect to MAhgoop. ------------------------------ ADDITIONAL INFORMATION: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2) For help, click: http://go.microsoft.com/fwlink ProdName=Mi...mp;LinkId=20476 ------------------------------ BUTTONS: OK ------------------------------ " " have a look at the following sup ...Show All
.NET Development how can we access remote desktop using c# coding
hai i am a new .net developer. i have to connect a remote desktop using c# coding. can any one help me. Hi I used a similar code to connect to remote desktop programmatically, but I have a problem with Login in remote desktop, how could I pass user and password behind the escena ...Show All
Visual Studio Express Editions Smtp Exception?
I was trying out an email code when I found this error: A first chance exception of type 'System.Net.Mail.SmtpException' occurred in System.dll Here is the code I was using: Imports System.Net.Mail Imports System.Reflection Imports System.Net.NetworkCredential Imports System.Text Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Body As String = "Message goes here" SendMessage( "to@yahoo.com" , "from@yahoo.com" , Body, "Subject goes here" ) End Sub Public Sub SendMessage( ByVal [To] As String , ByVal Fromm As String , ByVal Body As ...Show All
Visual Studio Team System Data Compare - Not all tables available
Hi all, when I make a new data comparison, I don't get all the tables that I have in the source database. Can someone tell me what can I do. Thanks in advance. P.D.: Sorry for my English. Unfortunately yes. If a table does not have primary key / index, there is nothing to compare against. Thanks Victor for your feedback. ...Show All
