OmegaMan's Q&A profile
.NET Development Suggestion: Overload TryParse to accept defaults
Hello- Most simple types (bool, int, double, etc) support a static TryParse function that will take a string, and a typed variable to try to parse that string into. It would be handy if there was a second overload of this TryParse function in each case that would also take a default value. Here's how it currently looks: bool foo; if (!bool.TryParse("true", out foo)) foo = true; Here's how it could look: bool foo; bool.TryParse("true", out foo, true); Thanks for the consideration, Eric Hey Stephen- Feeling like a stupid user in action here, but I'd actually tried going there first. I couldn't figure out how to get to a point where I can submit th ...Show All
Visual Studio Team System Error while migrating 2 folders
I am trying to migrate 2 project folders in VSS to TFS. The first project folder got migrated successfully. then we started the utility again for the second folder. While migrating the second folder it gives error as below (surprizingly it shows project1 name, which is already migrated). “Initializing... TF60099: Given folder mappings do not match with last migrated mappings. Following was the original mapping please use this only for incremental migration.\n<From>$projects/project1/source</From><To>$my.projects/project1/Source</To>” Both these folders are in seperate locations in VSS and in the same Team project in TFS. Any solution is welcome. Thanks in advance! Regards, MSGuy ...Show All
Windows Forms UserControl with ComboBox
My aplication needs a usercontrol consisting a combobox. So I have to provide the commonly used propertiesfor the comboBox for this usercontrol as well. I build this UserControl DLL and using in some other Windows Forms, but then some problems arises. I have few problems in that: 1. There is a property called "FormatString", I have attached the editor "FormatStringEditor" also with this while declaring this property. But when I try to use this property in the "property-pane" I am getting an error Object Reference not set to an instance of an object" 2. I have also exposed the property for "Text" and "Items" and attached these properties to the ComboBox corresponding prop ...Show All
Smart Device Development Pocket PC Phone WM 5.0 Device emulator Internet Setting "Automatically detects setting"
I am working on a Pocket PC WM 5.0 application.Application is working fine in the Pocket PC Phone WM 5.0 Device emulator. No In My application I have to connect to internet. My system is on LAN.On my Internet connection setting Automatically detects setting check box is check. In the device emulator I don't know how to configure setting so I can able to browse in the deve emulator. Please Could Any body help Use the Device Emulator Manager application, and right-click on the PocketPC WM 5.0 emulator in its treeview, and pick "Cradle". That will form an activesync connection to the emulator, as if it was a hardware device. Barry ...Show All
Windows Forms Adding a check box to a datagrid
Hi, Can anyone help me in adding a check box to a grid view. I have searched in google and had a few sites that show how to add the checkbox, but the procedure is quite confusing. Is there a site that shows in a simple way how to add a check box and then delete the values from the database, based upon the checked values in the datagrid. Regards, Srikanth Hi, I would like to have the checkbox in a grid view, in a web form. Regards, Srikanth ...Show All
SQL Server Giving permission to view CERTAIN records
I've been looking through permissions to see if it's possible to grant a user permission to see only certain records from a table. For example: I'm granting users to view records in the table 'Sales', but I only want the users to see their respective data. User A should only be able to see Sales where Sales.Location = 1 User B should only be able to see Sales where Sales.Location = 2 ... and so on. I believe I've read this is possible, but in looking through the permissions you can define, I've only found where you can limit the columns a user sees, not records. Anyone have any ideas or did I just remember something wrong Great! This sounds both useful and preferable. Too bad that whe ...Show All
Visual Studio Express Editions I have dialup can I download Microsoft Visual Studio 2005 Express on another with dsl ?
I have dialup, and it would take forever to download Microsoft Visual Studio 2005 Express Can I use my friends compter who have dsl and burn cd and then install it on my own computer If yes then do I have to do registration at the time of download at his computer Are there any issues about downloading on someone else computer that I should be aware of You can certainly burn an image using the instructions here: http://msdn.microsoft.com/vstudio/express/support/install/default.aspx You do not need to register the cd installs but you can register them on your own PC if you want access to the registration benefits. ...Show All
Visual Studio Express Editions Windows Mobile 5
Is it possible to code for Windows Mobile 5 with the Visual Basic Express edition, as I notice the SDK for WM5 does not mention express, and also there is no "Device" in the Tools>Options menu of Express If not, is there or will there be an Express version of some sort to code for WM5 Lets clarify this a little. It is theoretically possible to write mobile applications using express, and the mobile sdk. What isnt supplied are the project templates for mobile applications or the tools to test, debug them. This is because it is considered an advanced scenario. In fact you could develop applications using Notepad if you so chose ...Show All
SQL Server Can OWC and ASP.NET be used to connect to an OLAP cube running on SQL Server 2005 ?
Hello, I'm from Romania and I have a small problem. I recently found on MSDN an articol and an ASP.NET project showing how to browse an OLAP cube from a web page, using OWC controls. The cube was built using Analysis Services for SQL Server 2000. My question is can the same be done with a cube running on SQL Server 2005 (browse it from ASP.NET page using OWC) If so, can anyone please give a link to an tutorial or sample project Or if not, please offer a solution on how to browse an OLAP cube from SQL Server 2005 from ASP.NET. Thanks. For the client application using OWC all you need to do is to install new version of the AS OLEDB provider. OWC can work with both AS200 and AS2005. Same goes for Excel and ...Show All
SQL Server Users and Roles script
In 2005, is there a way to automate this I'd like to be able to do this automatically periodically: 1) Script out the development users and their roles in my development database 2) Backup the production database and restore the it to the development database 3) Re-synch the existing users (sp_change_users_login), drop any obsolete users (sp_dropuser), and add any development users with roles back on Does anyone have a script that can help me achieve this Refer to this http://weblogs.sqlteam.com/billg/archive/2005/11/22/8414.aspx for more information, as you can use SMO in SQL 2005. ...Show All
Visual Studio Express Editions ToolTip Help
private void Label_MouseHover(object sender, EventArgs e) { ToolTip t = new ToolTip(); t.SetToolTip(xxx, "hi"); } How do i get it so when i hover the label a tooltip pops up im not sure what goes in xxx the label is inside a statusstrip You'd put the name of the control in place of "xxx" (like Label). You also need to make the tooltip instance a member of your form and *not* allocate it like you do here. The easiest way to do that perhaps is to drop the ToolTip component on your form from the toolbar. One ToolTip instance can provide tool tips for multiple controls. Thus: private void Label_MouseHover(object sender, EventArgs e) { ToolTip1.SetToolTip(Label, "hi"); } ...Show All
SQL Server Dynamic filedlength of varchar fields in source
I'm using SSIS to import data from a table (SQL) containing varchar fields. The problem is, that those varchar fields are changing over time (sometimes shrinking and sometimes expanding). I.e. from varchar(16) to varchar(20). When I create my SSIS package, the package seem to store information about the length of each source-field. At runtime, if the field-length is larger then what the package expects an error is thown. Is there anyway around this problem Oh, yeah... My destination fields are a lot wider then the source fields, so the problem is not that the varchar values doesn't fit in my destination table, but that the package expects the source to be smaller... Regards Andreas A. Brost ...Show All
Audio and Video Development Any sample for ITA?
Hi all From the samples I don't see any implementation for ITA. It is told that to write an ITA we have to create proper interface in Media Source and return an IMFActivate for ITA to be created inside PMP process. "The IMFActivate object exposes the IMFActivate interface, which enables the PMP host to create the ITA, and the IPersistStream interface, which enables the PMP Session to serialize the IMFActivate object from the application process to the PE process." Sounds nice, except one problem -- how to write such a magic object I don't see any further information from all the documents. Does anyone know Thanks for your reply. I did use MFCreateAttributes to reduce the work but don't ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Texture diffusing...
Hi all - my question is how can I get textures when drawn not to diffuse. This happens when the destination rectangle is bigger than the source rectangle - instead I just wnat to "magnify" the image...stretching the texture out horizontlaly, vertically, or both. With everything I try I either get diffusion (i.e. the image fades as it is stretched, making it semi-transparent), or I get pure black. :S Please tell me what I need to do if possible - thanks very much. Alex Shellacc, sorry I just realised one of your posts. Your link doesn't seem to go to an image though. :S Thanks ...Show All
Visual Studio VSS 2005 is giving me invalid password on some computers, but works fine onothers
Hi all, I have VSS 2005 installed, and the database is on a network. I am the administrator, but when I tried to open VSS from some computers, I get the message "Invalid Password". It recorgnizes the password from my computer, and even from some other computers. Can someone explain this Thanks in advance. Hi Sobo, Make sure you're trying to open the same VSS database (press the Browse button and make sure the network path where you're opening the srcsafe.ini is the same). If you're sure you are accessing the same database, please provide more details of the database path, Windows user names when logged on to the 2 client machines, the VSS username you're using when connecting to t ...Show All
