GoodMorningSky's Q&A profile
Visual Studio 2008 (Pre-release) Filling Related dataset...
Hello all, I have a dataset that contains e.g. two tables, and they are related. (Parent -> Child) How can I fill the child table only with the rows that are related to a parent row in the parent table Lets say in my database I have a couple of parent rows, which has two child rows each in the child table. Now, I fill my parent table with one row from the parent table, and I only want the two child rows from the child table to be fill into the child table in the dataset. I could have gotten the same result by creating a dataset containing the result set from a simple SQL statment. (select bla, bla, bla, from parent, child where parent.id = child.parentid) My goal here is to use the result in a report. So the question is, is the first e ...Show All
Visual Basic while inputbox
Hi, i'm using vb 2005. my question is: i have this code: Dim x As String = "" While IsNumeric(x) = False x = InputBox( "Enter a number" , "New Value" , "0" ) End While How can i exit a while statement if the user pressed the cancel button in the inputbox Thanks... Personally, I wouldnt use the input box for a number of reasons 1. Its not easy to determine between a blank string returned or cancel being pressed. 2. It doesnt permit you to validate the input prior to clicking closing the form. So I prefer to create my own dialog forms - which are very easy to create with a return property. I can call this dialog which is easy to ...Show All
.NET Development Ethereal - Can it watch socket on single machine
I have a client and server program running on single machine for testing. They communicate via a socket. How can I watch what's happening with Ethereal Moon Hi, You cant, as this communication will not go via a network port. For this - if you were using HTTP communication you could have used TCPTrace as a proxy. I am not sure whether you can use some socks proxy instead If you put the client on an external machine, or check with a network wizard if there is any way to force the packets to be routed via the external network, then it might work. I had earlier seen a scenario where two different services on the same machine were listening on different ip addresses, on different network cards and ...Show All
Windows Forms .net 2.0 programmatically add a row in datagridview
Hello, I display all the data in a datagridview programmatically. The grid is non editable. When I click on a ADD button, it will dynamically add a ROW. The question is that : - how can I move the current record pointer to the new added row - how can I allow the new row for editing but other can't Please give me a hand and very thanks. Best regards, Eric how do you mean "move the current record pointer" you could select it for example: this.theDataGridView.Rows[this.theDataGridView.Rows.Count].Selected = true; in regards to allowing the new row for editing, im not sure but looking through the properties of a row, perhaps make the "Frozen" or the R ...Show All
Visual Studio Express Editions SerialPort 101 for a beginner
Hello, I have spent a lot of time trying to use the serial port command in the toolbox but i was unsucessful. I looked at the samples posted online but i always get errrors. Can anyone explains what are the steps needed to have a sucessful communication (read and write) from and to a serialport.If you can post the code it would be great...Please help Thank you StoreReceived should store whatever string value captured from the StoreReceived = SerialPort1.ReadExisting. Also do i need to open/close the connection or it's done when i use the readExisting command. Please explain Thanks ...Show All
SQL Server Calling stored procs based on a code table
I need to run stored procs based on a list in a code table. In other words, it reads the name of a stored proc from a table and runs it and does this for all the rows in the table. I think the ForEach loop container will do what I need and there is an ADO enumerator option but the documentation does not tell you how to use this. From what I can tell, you need to get a dataset into an SSIS variable first and then you plug the variable name into the ForEach ADO enumerator. Is that correct If so, can someone tell me how to get a dataset into a variable Thanks Perhaps kirk's blog will help you: http://sqljunkies.com/WebLog/knight_reign/archive/2005/03/25/9588.aspx ...Show All
Visual Studio 2008 (Pre-release) Documentation for Synchronization Services is here!
The documentation for Synchronization Services is here: http://go.microsoft.com/fwlink/ LinkId=80742 http://www.microsoft.com/downloads/details.aspx FamilyId=02989F70-49AA-43D7-81B8-A651120F8D65&displaylang=en Pingback: http://oakleafblog.blogspot.com/2007/02/microsoft-sync-services-10-books-online.html ...Show All
Visual C++ Disassembling
Hi all, I know how to do this: foo.cpp=====> foo.asm I want to do: foo.asm=====>foo.exe and: foo.exe======>foo.asm Can I do these by VS2005Pro IDE or its bundled softwares Or I need to get another software Ayman Shoukry - MSFT wrote: You can not do that directly. You will probably need to do manual modifications. Thanks, Ayman Shoukry VC++ Team Adding 0x to numbers and delete ending 'h's What else I don't know why these tools with same version from same company produce different formats. ...Show All
Microsoft ISV Community Center Forums Projects, objects & modules
I started learning VBA in MS Word yesterday. I have some programming experience in C++ and Java. I am trying to understand how the environment is structured and what Projects, Objects and Modules represent. For example I recorded a few macros using the macro recorder and then opened the VB Editor to see what was created. I notice that under "Project" are 3 folders. One is named "Microsoft Word Objects". Within this folder is what looks like a file named "This Document". What does "Project" represent What does "This Document" represent What is the difference between "This Document" and the "Project&q ...Show All
Visual Studio GetMethods from AuthoringScope is never called
Hi there, I'm working on MPF package containing the language service. I need to implement MethodTips feature. I've created the class inherited from the AuthoringScope class from MPF and override following methods: GetDataTipText, GetDeclarations, GetMethods, Goto. All of these except GetMethods are called ok but GetMethods is never called. Could you please propose the reason for such weird thing Hi Paulo and Ole, Guys, I really wish it were that easy... Please, what else Why this stuff is not working That is my scanner code – ScanTokenAndProvideInfoAboutIt method : public bool ScanTokenAndProvideInfoAboutIt( TokenInfo tokenInfo, ref int state) { SyntaxToken toke ...Show All
.NET Development Is it a Good way to write connection string in a appconfig or webconfig file?
Is it a Good way to write connection string in a appconfig or webconfig file If Not where should it be written so that its secure and good in case of performance and other aspects Yes, the app.config or web.config is fine for storing connection string information. You can use your own mechanism to encrypt the information or that provided by .NET if necessary. ...Show All
Visual Studio Team System time synchronizing
How can we avoid the time synchronization between clients and domain controller. I joined a computer which is installed with window server 2003 standard edition, to a windows server 2003 domain. When I try to logon from the client machine there comes an error message "the current time on this computer and the current time on the network is different. to logon contact the administrator".I already tried the registry settings by changing the value of: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters NTP to "no sync." please help me to solve this problem Note that most of the time you actually want to keep time sync in place, although you may want to change the TFS server to also join the ...Show All
.NET Development Possible to register a C# program to the R.O.T. for OLE automation?
Hi all, I was wondering if it was possible to "register" your own created c# program for OLE automation This would be the equivalent of accessing something in Excel via OLE. Like: Dim ExcelApp As Object ExcelApp = System.Runtime.InteropServices.Marshal.GetActiveObject("Excel.Application") Edit: and just to clarify, I understand how the GetActiveObject works (by looking up the object in the Running Object Table). I guess I need to know if it is possible to register a program with the Running Object Table. If it is an access problem you could try the value ROTFLAGS_ALLOWANYCLIENT during registration to allow processes of other users to see your COM object. Without further information it is quite difficu ...Show All
Software Development for Windows Vista Communication with the underlying transaction manager has failed
Does anyone has any idea I have to resolve this exception: Communication with the underlying transaction manager has failed InnerException "Error HRESULT E_FAIL has been returned from a call to a COM component. (System.Transactions) ------------------------------ Program Location: at System.Transactions.Oletx.IDtcProxyShimFactory.ReceiveTransaction(UInt32 propgationTokenSize, Byte[] propgationToken, IntPtr managedIdentifier, Guid& transactionIdentifier, OletxTransactionIsolationLevel& isolationLevel, ITransactionShim& transactionShim) at System.Transactions.TransactionInterop.GetOletxTransactionFromTransmitterPropigationToken(Byte[] propagationToken) " I've tried all the solutions from http: ...Show All
Visual C# Call Method by Name
How do you call(inside the class itself) a method of a class using its string name Something like: for(n=0; n<10; n++) {"MyMethod" + n} A results-oriented developer if ever I heard of one. Visual Studio 2005 could use a fix or two but I think the features outweigh the occassional bug (which man not even exist on your computer). You should definately take the express editions for a spin if nothing else :) ...Show All
