Freakie's Q&A profile
Visual C# Nullable Value and Generic
I want to mark a generic class to support nullable value. The following is my class public class DataField<T> where T:System.Nullable<T> { public T Value; } But it can't. Why Please help me.... 1. string is not actually valid. Nullable<T> has a struct constraint so only value types can be used with Nullable<T>. As far as I'm aware there is no way to use constraints to say: Only allow reference types and nullable types. The only way I can see to do this is to remove the constraints and run some sort of type check within the static constructor of the gener ...Show All
.NET Development problem in importing namespace
I am developing remoting application. I developed small program in notepad with System.Runtime.Remoting.Channels.Tcp it is working fine without using visualstudioeditor. But when i try to to import same namespace (System.Runtime.Remoting.Channels.Tcp) it could compile with error The name space Tcp does not exist in the class System.Runtime.Remoting.Channels. Help me to solving this . Thanks with Regards Ramakrishna ...Show All
Windows Forms Application::DoEvents does nothing?
after already posting about Application::Exit apparently doing nothing, i now discover another member of the Application class doing nothing! ive made a short program that copies a bunch of files from one location to another, with a window showing the current folder and file, and a progress bar the thing is - the window doesnt even open until the files have  ...Show All
Visual Studio Team System Move Team Project(s) from one TFS installation to another
We currently have two different TFS systems (call them A and B), and I would like to move the Team Projects from A into system B, while maintaining all of the Team Projects in B. I could accept having to (re)upload Work Item Types, Work Item Queries, documents, reports, etc. But what I would need for the system or some tool to do is migrate all of the work items (including links and attachments) and source code. That way I can keep all the work item and source code history, along with work item links and attachments. It would also be nice if the security and group settings were transferred, as well. I suppose I could muck with the SQL data ...Show All
Windows Forms Binding DataGrid columns to members of a collection.
I am binding a windows form datagrid to a collection of objects. This works fine and I can see the public properties of the objects. One of these public properties of each object is a custom collection inherited from DictionaryBase. How can I bind my datagrid to members of the dictionary Thank you! That is the closest thing you can do. The problem is that your business object is a "one" and your collection is a "many" type relationship, so implementing your own DataView is the best way to go. -mark Program Manager Microsoft This post is provided "as-is" ...Show All
Windows Forms Simple Bound Controls not working on Master Detail relationship
I have a Parent, Child, Grandchild dataset set up. The Parent and the child are displayed using DataGridViews. The Grandchild is dicplayed using textboxes. I have added data bindingnavigators at each level as well. My problem is that when I add a record to the grandshild and update the textbox the record is not kept. If I add 2 records only the first record is kept. It seems as if my last record of the grandchild is never "saved." I changed the grandchild to use a datagridview and it worked fine. However I need to use textboxes. Thanks Try calling EndEdit on the grandchild BindingSource. & ...Show All
Windows Forms Editable Panel within UserControl
I have a usercontrol that I drop a panel and a label onto. I dock the label to the top and the panel dock to fill. When I drop my custom usercontrol onto my form, I can't add controls onto my panel. I want the ability to add controls onto my panel inside of my usercontrol. I have read some threads about using EnableDesignMode but it  ...Show All
Smart Device Development HTC Universal camera resolution
Hi ALL! I am working on capturing and processing images using the HTC-Universal's Camera. I tried successfully to run the CameraCapture and CECamera sample provided with Windows Mobile 5.0 Developer Resource Kit. Then, I tried to change CameraCapture for previewing captured images. This was succeeded by configuring the DirectShow capture graph, but the preview images are quite small. I tried to find a way to change camera resolution of HTC-Universal, but I could not. Could someone provide any insight as how to change camera resolution in DirectShow WM 5.0, especially for HTC-Universal I could find some related topics links below, but there ...Show All
SQL Server Virtual Labs - No Connection message
A couple of us are trying to use the SQL Server 2005 Virtual labs at http://msdn.microsoft.com/sql/ . We complete all the prelim steps successfully but when we click on "Start the Lab" we get a blank page with "No Connection" in the middle. The clock ticks and the system thinks we are doing the lab. How can we get a connection or is the server down or are there no available resources left Can you please send an email to me at majewett@online.microsoft.com so I can connect you with the right people to address this Thanks< MJ ...Show All
Windows Forms Adding a database to a form application
Hey everyone I have a form application that is currently using text files to store and retrieve the data. However the data for the application is getting quite large, and I was thinking about changing the data so that it was stored in a database instead of the text files. I don't have much experience with databases so I'm not really sure where to ...Show All
Visual Studio Can I draw something on the report?
I want to draw sth on the report, how can I do that Thanks in advance. Long im trying to do the same, i have a field in a database that has point values (used on a bitmap), and im trying to output that into my winforms app. i have a custom code that takes the coordinates and creates a bitmap image, which can then be assigned to the image object but it doesnt work, for somereason it doesnt see the Type Bitmap... the solution to your problem might be same, you might need to create a bitmap image with the sth in it and place it on the report, but like i said, my solution doesnt build because it cant s ...Show All
Visual Studio Team System Testing for Exceptions in Unit Tests
I can't figure out how to test for an exception in a unit test. Is there an Assert. comand or something else to test for an expected exception Thanks! Cindy Hello, I just saw this as well. Dhopton, you are correct in stating that you shouldn't throw a generic exception. But I think a lot of folks think that if you give throw with a new message string in the exception, that will make the exception different enough. So, did this feature get into the final release It doesn't look like it. I am useing the VS demo build, 50727.42 and I am seeing the same error message from the unit test, " has ...Show All
Software Development for Windows Vista Vista installation problem on XP
Hi, i recently installed vista beta, the latest one. And i downloaded the files microsoft provided me with the install the beta. So i install it, no problem , then when installation is complete, the box goes off and thats it, nothing else, please tell me how to install vista from here please. Your help is much appreciated. So does your installation try to start, or does it go into the infamous reboot loop My advice for what it is worth would be to boot from the VISTA installation disc and to carry out a complete new install, I assume that you went for the upgrade option You may want to format your ha ...Show All
SQL Server How to use cubes of 2000 in 2005
We have to create reports based on cubes, which were designed using SQL 2000. We have migrated to SQL 2005. We have the cubes (.cub files) and a database of SQL 2000. We need to design few sample reports based on these cubes (specifically some charts). We are quite new to Analysis Services. Can anyone guide us or point to the right direction, what are the steps to be followed here, like do we need to import these cubes into a 2005 database or can these be just copied in a folder and referred directly. basically where and how to start from. Any suggestion or help is appreciated. I think you would b ...Show All
Software Development for Windows Vista Windows 98 operating system is not working with AMD Athlon processor with ASUS mother board
I am using AMD Athlon processor(64 bit) with compatible ASUS motherboard . I am started installing windows 98 second edition , installation is successfull. After the OS installation is over, i started installing Mother drivers from AGP card till Audio drivers. While doing the Video drivers for SIS chip support, installation was successfull. But after rebooting Windows 98 logo's display and then only small clock with questioned in frequency. I don't know, whether the problem with the motherboard or the OS. Then i check with other system with similar configuration, same problem was arrived. I would like to know, whether it is compatability p ...Show All
