msorens's Q&A profile
.NET Development I want to populate a datagrid with the result of: MySubRow.GetChildRows("MyRelation_Sub_Account")
Hi all, I guess the function : Mydatarelation.getchildrows returns a list of child rows from a certain parent row in the parent table. According to the selected parent Row, I want to put the resulting child rows in my datagrid. If I do this: I create MyRelation then: MyDatagrid.datasouce= MySubRow.GetChildRows("MyRelation") All I get are empty child rows in a datagrid like this: RowError HasErrors False False In my example, I only have 2 child rows corresponding to the parent Row. What should I do please Thanks for help. ...Show All
Smart Device Development getting error "value does not fall within the expected range" on pocket PC 2003 emu
Hey all, Im stumped at this seemingly easy task. I need to ask a user for a file name. thats it. But im getting the above error. here is the code: (Where UserInput is a basic form with 2 buttons and a text box) UserInput ui = new UserInput(); ui.Parent = this; if (ui.ShowDialog() == DialogResult.OK) <-- ERROR HERE { fileName = ui.FileName; FileStream fs = new FileStream(filePath + "\\" + fileName, FileMode.Create); XmlTextWriter xtw = new XmlTextWriter(fs, System.Text.Encoding.Unicode); xtw.Wr ...Show All
Visual Studio Team System TFS Version
Hi All, I am new to TFS. With version is newer – beta 3 or December 2005 CTP How can I download December CTP Extensibility Kit Thanks for help, Dominik The December CTP is newer, but we've released our Release Candidate build - that is far better than either the Dec CTP or Beta3 builds, and it is also covered as part of the Go Live license - if you're going to install a build, do both yourself and us a favor and make it the RC :) ...Show All
SQL Server How can I browse the tree graph in DataMining DecisionTrees by C# coding ?
I build my DataMining DecisionTrees in SQL Server 2005. How can I get the tree graph in DataMining DecisionTrees by C# coding Microsoft.AnalysisServices.Controls.DLL Microsoft.AnalysisServices.Viewers.DLL Microsoft.DataWarehouse.DLL ...Show All
Software Development for Windows Vista Restarting persistent worklow throws a mysterious exception
Hello, I have a problem with loading a persisted workflow: On RT.GetWorkflow the following exception is thrown: System.NullReferenceException: Object reference not set to an instance of an object. at System.Workflow.ComponentModel.ActivityExecutorDelegateInfo`1..ctor(Boolean useCurrentContext, EventHandler`1 delegateValue, Activity contextActivity) at System.Workflow.ComponentModel.Activity.AddStatusChangeHandler(DependencyProperty dependencyProp, EventHandler`1 delegateValue) at System.Workflow.ComponentModel.Activity.add_StatusChanged(EventHandler`1 value) at Upper.S3.Server.Workflow.CoreActivities.StateWorkflow.OnActivityExecu ...Show All
Visual Basic Data Sources Toolbox functionality reversed
When I am looking at a code window all of my data sources are visible in the data sources toolbox. When I am looking at a form, the toolbox is empty and greyed out and no options can be accessed. This is exactly opposite from how it worked in beta 1, 2 and RC1. Anyone know what the deal is with this As of right now I cannot drag/drop a table onto a form because all the tables are hidden when I am looking at a form. Thanks, Josh Josh: Just in way of follow-up. It appears that I was wrong about the problem the other programmer was having. It appears that the failure of the Data Source to properly di ...Show All
Visual Studio Team System [Load Test:Performance Counters] Response Time Unit?
Hi, I am struggeling with figuring out in what unit the response time is measured in load tests Does a figure, such as 0.014 mean 14 milliseconds/seconds/etc If you could even point me at some docmentation for that, that would be great. (Note: I already looked at http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnpag/html/scalenetchapt15.asp and http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconPerformanceCountersForASPNET.asp and various others but non of them could provide me with an answer.) Thanks a lot for your help. Regards, Sommarafton Thank you a lot fo ...Show All
.NET Development Remoting is Dead?
I have heard that Remoting will no longer be promoted by Microsoft in favor of Web Services. Is this true Should new developers stay away from remoting Perhaps why Remoting is dead is because there are not little wizards to guide people through the act of setting it up. From the way that I interpret the technology and Microsoft's pushing of it is, "it's there. this is what it does and now lets move onto wonderful web services and what we can do and web services are so wonderful." I have also heard horror stories of poor performance or major memory leaks when passing certain data related objects over remoting channels. I pe ...Show All
.NET Development How to use System.Net.Mail.SmtpClient via SSL and Authentication?
Below is my code, and is just blocked there. There is no any error message. '=============================================> Dim msg As String = "---" Try Dim strAddress As String = " xxx@xxxx.com " Dim sm As New SmtpClient(Host, Port) With sm &nbs ...Show All
Visual C++ Strange STL ostringstream compile error with Visual Studio 2005
I have just installed Visual Studio 2005 and am building a project formerly maintained under VC++ 6.0. The compile error I cannot fathom pertains to STL, specifically it appears to be related to my use of ostringstream. I believe I have isolated the problem to one of my header files where I use the ostringstream class. However, my use of this class is obviously limited to the public interface which is why the compile error below makes no sense to me. btw, I have already changed all header files to reflect the new C++ usage (e.g. <sstream.h> is now <sstream>) Here is the compile error: ********************************************* ...Show All
Visual Studio Express Editions How can I load data into a 2-dimensional array?
I have some data in a text file in the format: X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,I,O,O,S,O,O,O,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X and I want to load it to an array (e.g. myArray) which is declared as: Public myA ...Show All
Visual C# trouble using delegate in WndProc
when i use delegate like this: ----------------- [System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Demand, Name = "FullTrust")] protected override void WndProc(ref Message m) { delegate_ReplyFromDataProcess = new PrepareDelegate_ReplyFromDataProcess(ReplyFromDataProcess); delegate_ReplyFromDataProcess.BeginInvoke(m, null, null); } delegate void PrepareDelegate_ReplyFromDataProcess(Message m); private void ReplyFromDataProcess(Message m) { IntPtr pnt = dp.OnReply(UInt32.Parse(m.WParam.ToString()), Int32.Parse(m.LParam.ToString())); } ----------------- i met the error: * ...Show All
Visual Studio 2008 (Pre-release) OperationContextFlow
Hi, I am passing some additional data for a call using MessageHeaders: Client side: Guid g = Guid .NewGuid(); MessageHeader < Guid > mhg = new MessageHeader < Guid >(g); MessageHeader untyped = mhg.GetUntypedHeader( "session" , "ns" ); using ( OperationContextScope scope = new OperationContextScope (...)) { OperationContext .Current.OutgoingMessageHeaders.Add(untyped); call the service method } Service side: Guid g = OperationContext .Current.IncomingMessageHeaders.GetHeader< Guid >( "session" , "ns" ); It works fine. My question is: Is OperationContext is created f ...Show All
Smart Device Development How to connect through active sync?
How would I create an activesync connection to emulator through my code Are there any APIs that are available for this Sorry, but there is no API for the Device Emulator Manager so you cannot create a connection through your code, short of sending WM_CHAR messages to the manager UI. Barry ...Show All
.NET Development Using MFC lib in .NET project
I have a library file for manuplation of Djvu file but I want to use that library file in my C# project.Is there any way to do that there is probably no direct way to do that, you need write some wrappers, see Consuming Unmanaged C++ Class Libraries from .NET Clients http://www.codeguru.com/cpp/cpp/cpp_managed/interop/article.php/c6867/ ...Show All
