granny8's Q&A profile
Windows Forms Is it Possible ObjectDataSource and datagridview
I have an objectdatasource bound to a datagridview in a Windows forms app. The datasource object has a boolean field. I can load and display the data ok. If there are 20 are so rows and the AddRow row (*) is not visible everything is ok. However if the addrow row comes into view or the mouse hovers over the boolean field then I get the error in the DataError event: "System.FormatException: Formatted value of the cell has a wrong type". I tried setting the CellStyle Null Value to false and 0. I tried setting the true and false values. I tried putting default values into the ObjectDataSource's constructor. I can't se ...Show All
Visual Basic How to hide/show a program on the right Tasks Bar
Hi all, I need to development an application that's after the installation stay on the right Tasks Bar like for example MSN or Windows Task. Are there someone who know's how can I do this Thanks, Vivian if you are using VS05 then there is a component called "notify Icon" which you can drag from the toolbox onto the main form of your application. ...Show All
Visual Studio Input arguments for wizards
Is there a way to retreive input arguments from within a wizard Possibly through a reference to a configuration service or something like that Basically, I just want a reference to the current project from within my wizard (using a custom wizard page). I have a recipe argument with this value, but how do I access that from within the wizard Thanks! Arguments are readily available to wizards. What are you exactly trying to achieve I don't think I understand your "a reference to the current project from within my wizard" expression. Basically you need: - An argument of type EnvDTE.Project with the F ...Show All
.NET Development Guidance on which versions are loaded into projects/GAC
If I have both 32 and 64 bit versions of the framework on a machine, which version is in the gac which version will be used from within visual studio What version is used at runtime outside the VS environment Is there any general guidance on what which version is being run Thanks for any info! Can compile an dot net application for x86, x64, IA64, or any cpu. If the app is compilied for the x86 processor the app will always use the 32 bit framework. Anycpu will use the 64bit version of the framework if available. At run time you can tell if the app is 64bit by checking the intptr.size = 4 you are in 32 bit = 8 you are 64 ...Show All
Visual Studio problems with OleUndoEngine
I'm building a custom (form) designer using September CTP and I'm trying to implement undo/redo functionalities using the OleUndoEngine together with CodeDOMComponentSerializationService as described in VS SDK. My designer uses the DesignSurface for designing controls and I added the CodeDOMComponentSerializationService to the designer host which I acquired from the design surface. Then I created an OleUndoEngine instance and passed the host as its service provider. The problem is that when I try to undo any action on my designer inside the VS, the StackOverflow exception is thrown without any further details. I would be grateful ...Show All
.NET Development Automatically detect a CD and read CD contents
Hello all, I am trying to make a module which will do two jobs: 1. Automatically runs when a CD is inserted into the cd rom drive. 2.copies the contents on CD to any location on hard disk. I am usng C#.net 2003. Anyone please help me! Thanks http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/autorun/autoplay_intro.asp http://msdn.microsoft.com/msdnmag/issues/01/11/autoplay/ ...Show All
Visual C# shell
hi, could someone please tell me the c# conversion of the vb Command() Command() gives me the filepath of the file that was clicked on that opened my app, much like clicking a document will open word, word then gets the filepath and opens the file thanks for an help i understand that that will give e the filepath of my app, but thats not what i need. What i mean is ive edited the registry so i can right-click files with the extension .adg, and there will be the option to 'edit', on clicking edit, my app launches. What i now need is the files filepath that launched it, in vb Command() would find it, but i cannot find a c# conv ...Show All
Visual Studio Team System Checkout behavior on non-mergeable file types
I understand that in general TFVC encourages concurrent development by defaulting a checkout to just marking the local version as editable. However, IMO for non-mergeable files, TFVC should always do a get latest when checking out this type of file. Since the file is not mergeable, allowing devs to checkout anything but the latest version is setting them up or a *bad* experience. It would also be very nice to have a command line switch on TF CHECKOUT to have it grab the latest first. We're received a lot of feedback on the behavior of not getting files on checkout. W ...Show All
.NET Development Using .config file with Assembly.LoadFile or Assembly.LoadFrom
Hi I am loading one assembly at run-time using Assembly.LoadFile or Assembly.LoadFrom. The assembly is a windows executable and also it has a [Name].exe.config file. The [Name].exe.config includes sections of <dependentAssembly> where one of them is shown below. < xml version = " 1.0 " encoding = " utf-8 " > < configuration > < runtime > <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> < dependentAssembly > < assemblyIdentity name = "name " publicKeyToken = " d11ef57bba4acf91 " /> < codeBase href = & ...Show All
Smart Device Development how to remove "+" before a tree node
hi, My project is built on windows mobile 5.0 pocket pc,vs2005.I use the following code insert a tree node: TVINSERTSTRUCT InsertStruct; InsertStruct.hParent = hParent; InsertStruct.hInsertAfter = TVI_LAST; InsertStruct.item.mask = TVIF_TEXT |TVIF_IMAGE |TVIF_CHILDREN; InsertStruct.item.pszText = FileData.cFileName; InsertStruct.item.iImage = 0; InsertStruct.item.cChildren = 1; InsertIte ...Show All
Visual C# Custom status message in MSI through Custom Action DLL
Hello Is it possible to have a custom action DLL that changes the status text or progress bar in the output MSI ...Show All
Visual Basic VB6 App to query data remotely
Hi to all, I have a VB6 app that can query/update/insert data successfully on an ACCESS database which can either reside on my pc or any other pc in the intranet. However, our company has another site in the same country but miles apart, so we're not connected by intranet. How can i make the database also accessible through internet such that my app can still carry out database transactions from the second site My idea is to set up a ftp drive that can be access from internet (with username and password) and have my app look for the database there. Question is not sure if it'll work and whats the code to look for the ftp drive and a ...Show All
.NET Development Puzzling CAS Issue
I have an application that uses remoting. I have strongly named every assembly in the application. I have granted FullTrust based on the key used for strongly naming. (I did this by creating a code group with the membership criteria being the public key that the assemblies are signed with.) I have done this on both the remote and local systems. This application can be run from a local disk (no problem), a remote disk (network share - big problem) and from a web page where it runs under IEEXEC (big problem) The local application is designed to connect to multiple and arbitrary servers. I can connect to any server if I run from my loca ...Show All
Visual Studio 2008 (Pre-release) There is Event Whwn Server close that send to client ?
Hi I write server and client in wcf(indigo self host). Sometimes the server is failed. I want to know how client can to know if server was failed, without accept exception when i call the server. There is event when server is failed that the client can accept. Hi Oren, What do you mean by saying that the server failed Do you mean that the server threw an exception and the client never got it If you do mean that, you should read about FaultContracts. When exception occurs in the service, the channel is cut off and the exception never return ...Show All
Visual C++ How to install a Debugger Visualizer for a C++ object in Visual Studio 2005?
How to install a Debugger Visualizer for a C++ object in Visual Studio 2005 I could happily and successfully follow the tutorial for creating a Debugger Visualizer in Visual Studio 2005 Beta 2 in C#. But there was no information about creating such in C++. How to do it What I mean by creating such in C++ is having an object in a C++ application visualised by a Debugger Visualizer (written in any language). Besides, I'm sure it's possible, becuase Debugger Visualizers is such a great invention and such a large step towards the future of programming, that it would be a terrible waste to not implement it ...Show All
