giuseppe c's Q&A profile
Visual Studio Express Editions Invalid cast exception
Is there a simple method of preventing incorrect type input How do you prevent a user from keying in a string when variable is type integer etc I know there must be a simple solution but I am going nuts trying to figure it out. Although I must admit I am really learning lots of other things in the process! First of all, anything that is entered via a textbox is a string datatype which may or may not describe and be converted to another datatype. I think you are asking about validation and whether input really can be converted into a desired datatype. For starters, I'd recommend that you lookup th ...Show All
Visual C# Circle with line through it w/Drag and Drop
I am completely new to C# (came from VB6). I have some code that I created in VB.NET (2003) and I'm trying to migrate it to C#. Basically, I have a picture box that I need to drag across the top of another picture box. The problem is that after I click and start to drag (cursor still within the top picture box) , I get the cursor icon that is a circle with a line through it. Both my picture boxes are on a panel located on an MDI form. I remember running into this in 2003, but I don't remember what I did to solve the problem. I know this is something simple... but I can't find it. Any ideas Thank you. ...Show All
Visual Studio Team System TFS Security
If I add "Domain\Domain Users" group to "Project\Contributors" then domain users ("Domain\User1") cannot access TFS. If I add "Domain\User1" to "Project\Contributors" group then everything works. Is this by design or a bug The Beta 3 refresh code has a problem detecting group membership if the group is set as the user's primary group. By default, all users have the Domain Users group set as their primary group, so the Beta 3 refresh code thinks that the Domain Users group has no members. The workaround is to create another group in Active Directory, and add the users to it. This problem is ...Show All
Windows Forms AVI and background problem
Hi. Friends. I just got a horrible problem in creating a user control. Any help will be greatly appreciated. I display an avi file by using directx component. Then, on this avi animation movie, I need to display a string such as “500”. I used a label to display this string. However, the problem is the background of this string. The background&nbs ...Show All
Visual C# Deployment
I quite like the deployment mehtod of VS 2005 but have a niggle and wonder if there is a work around. Sometimes I write a simple console application that needs to run from a command line or batch file. If I deploy the application it is not in the path, nor is it in a fixed directory such as \Program Files\..., nor available to other users apparently. The work around is to install then copy the exe manually (after I find it) to a known place, downside is uninstall and reinstall means do it again or else wonder why your fix does not appear to fix on the target machine but does on the development machine. Is there a &qu ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Installation Problems?
Hi there, I've gone ahead and installed the XNA package, following the instructions in the download. The prerequisite's, Visual Studio Partner Edt, and the XNA installer. I've however not downloaded the MechCommander2 package yet. I wanted to see if this was any bit usable without it. I fire up Visual Studio and attempt to make one of it's "content build", and am greeted with a number of exciting errors. Of note, the content build project has a generic no image icon. Two of these: --- Package Load Failure Package 'Microsoft.Xna.UI.XnaStudioPackage.XnaStudioPackage, Microsoft.Xna.UI.XnaStudioPackage, Version ... (a whole bunch of p ...Show All
Software Development for Windows Vista reference clock misbehaving
Dear fellow developers, I have a filter designed that relies on the reference clock supplied by the Default DirectSound Renderer, and have had great difficulties with it working to discover the reason is that the reference time does not seem to be behaving according to the MS documentation. It jumps backwards, sometimes. Sometimes it jumps forwards by hundreds of minutes. Sometimes it just stops counting and the only way to get it going again is to stop and restart the filter graph. The problem exists on multiple XP PCs. The problem is relatively new. I have done other filters in the past that rely in the clock without seeing thi ...Show All
Visual Studio Team System Unsafe Modifier
Hi All, How to know if a class have the modifier Unsafe Thanks, You don't, it isn't stored in metadata for that class. But the assembly will request SkipVerification security permission. ...Show All
Windows Forms Disabling the new row functinality.
I was just wondering if it is possibly to disable the bottom "null" row functionality in datagrids and only allow new rows to be added by using the DataGrid.AddRow method. Cheers take a look at: http://www.syncfusion.com/faq/winforms/search/653.asp ...Show All
Windows Forms NO BussinesRules Separation!
Hi! I have been reading the code of IssueVission I can not find a clear separation between Model View, and Controllers (all bussines logic is mixed with the Views)... Why hiya, a bit late, I know... I think that the biz rules separation is so lax so that the more inexperienced developers can get up and running with this app, without ...Show All
.NET Development Run 32bit App in 64bit Windows
I upgraded my development PC to 64bit Windows XP Prof in Athlon 64. I need to use MS Virtual PC 2004 for testing app in other platform. However, the Virtual PC 2004 cannot be installed in 64bit windows. Is there any method to solve the problem Thanks a lot. Hello, me is experiencing the same problem, and virtual server r2 is NOT able to install on 64 bit systems. When i try to install a popup message appears that tells "setup did recognize a 64bit system running. virtual server needs a 32bit platform."! greets peet ...Show All
Smart Device Development Developing for Mobile 5 in VS 2003
I'm currently developing an application for both 2003 and now it appears Mobile 5 using VS2003. I'm told that 2003 shouldn't be use to develop a Mobile 5 application. It seems to work, I'm curious as to the reasoning here. Is it an MS push to sell VS2005, or is there a more fundamental underlying reason. The plan is to move to VS 2005 but not during mid development. Thanks! Well, the SDK for Windows Mobile 5.0 needs Visual Studio 2005. That said, there is no problem developing a Compact Framework 1.0 application with Visual Studio 2003 and have it run on a WM 5.0 device. WM 5.0 also has the extra Windows.Mobile libraries. If you ...Show All
Visual C# What is the fastest way to read and write data?
To write and read a hundred sets of 1000 numbers, which way is the fastest way: - Binary file - XML file - Text file - ArrayList (run out of memory ) - Database Table Thanks Sorry for the uncleared question. Suppose I'm trying to get an optimal set of solution by doing the iteration for 100 times, so I have 100 sets of data. I'd like to be able to keep all data and then sort a number of each set to find which set is the best one. I don't need to show all of data, but just the best set of data, to the user. I'm not sure which way I should store all the data because obviously I'm dealing with a lot of DOU ...Show All
Visual Studio Team System Enumerating through linked work items
In our TFS project, we have "customer" work items that are linked to "application" work items via a links control. I am trying to create a report where a user selects a customer and then a report of the customer's applications is generated. I am using the "current work item" fact and the "related current work items" fact to filter the target work items. I am joining the two tables on the "current work item_trackingleft" in the "related current work items" table to the "trackingId" in the "current work item" table. I filter the items on the "current work item_trackingright" to make sure only those apps linked to the customer show up in the jo ...Show All
Visual Studio 2008 (Pre-release) How to visualize some XML?
for example we have <book id="100"> <author>John Smith</author> <title> Post a New <b>Message</b> </title> </book> ... and book should be a Button (id should be converted to color), author is a Hyperlink, title - TextBlock and <b> is a bold text. This is a common task, required for showing markuped text (like HTML). Do we need explicitly convert our XML to XAML or there is another way Is it possible using XAML only (DataTemplate...) my code was simply an example of how to use XAML to databind to random XML data. ...Show All
