Zeesha's Q&A profile
Visual Studio 2008 (Pre-release) SQL connection string
I found an apparent bug while working through the DLinq Hands-On Lab. The bug is seen when using a SQL connection string to connect to SQL Server instead of SQL Express and the connection string uses "Data Source" instead of "Server". When I used "Data Source" instead of "Server" I always got connected to the default local instance instead of the named instance I was attempting to connect to. When I used "Server" the correct instance was used. // Connects to localhost DataContext db = new DataContext ( @ "Data Source=localhost\SQL2005;Initial Catalog=Northwind;Integrated Security=SSPI;" ); // Connects to localhost\SQL2005 ...Show All
.NET Development Check Folder Permissions
Hi! I have never tried something like this before, so forgive my ignorance. I need to check the folder permissions of a specific folder for the logged in user. In my app the user has a setting for an output folder, I need to check that the user has the appropriate NTFS permissions to that folder to be able to set this setting correctly. Can someone point me to a good resource where I could read about this A site with samples is ofcourse appreciated. Regards Leyan Did you ever get a useful answer to this I don't see anything "easy" in this thread. I'm also trying to find an easy w ...Show All
Windows Forms more message boxes
I've got some more problems. I can't figure out how to create an If..else statement with regards to the YesNo message box. Here's pseudo code of what I want to accomplish. If (yes clicked) messagebox (correct) else if (no clicked) messagebox ( you lose) well...hope that's enough info to go on, thanks for your help. I hope I understand... You want to know what is the result from a messagebox this is simple: The MessageBox.Show(...) methods returns enum that calld DialogResult, matching the user button clicked. use it like this: DialogResult result = MessageBox.Show(...); if(result == Dialog ...Show All
Visual C# Generics Question
Hi there, Suppose I have the following class: public class CacheItem<T> { public T Data { get { ... } } public bool IsExpired { get { ... } } //other properties } How would I go about iterating over a collection of cache items where T could be different for each cache item In other words, how do I get this to work: foreach (CacheItem< > cacheItem in Cache.Items) { if (cacheItem.IsExpired) { ... } } As far as I can tell, this is impossible. The best I could do would be to define a non-generic ICacheItem interface and code against that. Then I could provide the generic CacheItem<T> clas ...Show All
Visual Studio How to tell the version of MSDN Library?
The "What's New" section of the pre-VS2005 of MSDN Library identified which version of MSDN Library was installed on the system. Ex: MSDN Library October 2005. In MSDN Library for VS2005, how can I tell which version is installed on a system Hi Gaetan, You can correctly identify the MSDN Library version installed on your computer by going to: Start > Settings > Control Panel > Add or Remove Programs Scroll down to the MSDN Library for Visual Studio 2005 entry, and then click on the "Check here for suport information" hyperlink. When the display box opens, look at ...Show All
SQL Server Can't Deploy AdventureWorks Database
Hi All, I created a named instance of SQL SERVER 2005 (Evaluation version) on Windows XP pro, attached the AdventureWorks and AdventureWorks DW databases to the database engine, and tried to deploy the AdventureWorks DW (Enterprise and Standard) database in Analysis Services using SQL SERVER Business Intelligence Development Studio. For some reason, I encountered the following error (after deployment during processing): Error 1 OLE DB error: OLE DB or ODBC error: Login timeout expired; HYT00; An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the f ...Show All
Visual Studio How to get the class name and the interface name?
Hello~ I want to know the class name and the interface name without opening the file ( .cs ) . Just like "ClassView". What I want to implement is as below. ==> If I select any project, the classes' name will be showed in the combobox. Of course, without opening any files. I tried to find this site, but I couldn't find that way except using the opened document. If there is anyone to know, please answer me. Thanks. Gwisun. I found the similar solution. private void G ...Show All
.NET Development Exception: DataTable internal index is corrupted: '5'. on ...
Hi, I have a problem with bindingsource component in framework 2.0. I have a combobox bound to a bindingsource which is also bound to a dataset with 2 related tables and a datagridview bound to the same bindingsource. What I want to do is : When the selectedindex property of my combobox changes, the corresponding cell value must be changed in the datagridview. But although the value in bindingsource changes, datagridview does not display the new value. That value is displayed after I move the mouse over that cell and make it invalidate its region manually. Another error I caught is the one that you can see as the subject of my po ...Show All
Visual Studio Team System Checking a CoreField's Availability on its WorkItem's DisplayForm
I have some code that sets certain CoreFields' values no matter the Project or WorkItemType. One of these fields is the Description field, which is defined in the CoreField enum in the WorkItemTracking.Client assembly. The problem is, there does not seem to be a truly reliable way to check if this field is visible on the DisplayForm in CMMI Projects (and perhaps all projects, but I have only come across this problem in CMMI ones). The Description field is available for such projects, but it is not visible in the Editor (WorkItem.DisplayForm) when the new Bug is displayed. The WorkItem Type Definition for CMMI Bug WorkItemTypes desc ...Show All
Windows Forms opening a paticular cell in editMode when dg row is highlighted
hiya, When the user clicks on a dgRow, I want to be able to be open the 5th cell (in editMode) of the selected dgRow.Ideally, I want the underlying datable to be updated if the user subsequently enters data in this cell and then moves focus to a different control on the winform.(I can do the update no prob, but I'm not sure which dg ...Show All
Visual Studio Source Control in VB Express
Hi, I'm currently using Source Safe 6 and would like to connect it with my installation of VB Express 2005 beta2, is it possible And how do I make it If not, what are my options TIA /Kejpa Hi Kejpa, Source control integration is not available for VisualStudio Express SKUs. Only Standard SKUs and above (Professional, Enterprise, etc) will allow source control integration. You can however use your SourceSafe 6.0 as an external application. You'll have to use SourceSafe Explorer standalone to create a VSS project, set the working folder to your VB local project folder and add your files to Sou ...Show All
Visual Studio 2008 (Pre-release) How do I bind to uninstantiated resources ?
Hi, How do I bind a StackPanel's property to a property of an object that's declared within <StackPanel.Resources> For example the following code throws an exception at runtime: <StackPanel MinHeight="{Binding Source={StaticResource HEIGHT_of_item1}}" MinWidth="{Binding Source={StaticResource WIDTH_of_item1}}"> <StackPanel.Resources> <ObjectDataProvider ObjectType="{x:Type local:getBitmapSize}" x:Key="bitmap1"> </ObjectDataProvider> <ObjectDataProvider ObjectInstance="{StaticResource bitmap1}" MethodName="getwidth" x:Key="W ...Show All
SQL Server Simple Query Help
Not sure how to solve this syntax issue: SELECT rm . rmsacctnum , sum ( rf . rmstranamt ), rp . RMSRCVPCPL FROM RMASTER rm INNER JOIN RFINANL rf ON rf . RMSFILENUM = rm . RMSFILENUM INNER JOIN RPRDBAL rp ON rp . RMSFILENUM = rm . RMSFILENUM WHERE rp . RMSRCVPCPL = sum ( rf . rmstranamt ) GROUP BY rm . rmsacctnum , rf . rmstranamt , rp . RMSRCVPCPL not sure if this is what you want but it might SELECT rm . rmsacctnum, rp . RMSRCVPCPL, sum ( rf . rmstranamt ) FROM RMASTER rm INNER JOIN RFINANL rf ON rf . RMSFILENUM = rm . RMSFILENUM ...Show All
Windows Forms Application.exe.config
When I select Publish, the Application.exe.config file is not included. When I run the application after it installs, I get the error "Unable to access configuration data". How do I correct this I found the solution, going into the "Settings" tab and selecting the link will create an app.config file. When published, this file will be renamed as myapplication.exe.config and deployed. ...Show All
Smart Device Development Viewing a dvd on a pc through a data projector
Help, I want to view a dvd in the classroom using my pc and a data projector. The picture shows on my laptop in Windows Media Player, but does not show on the screen. Othere files can be viewed with Quick Time. I know there is probably a simple solution, but this eludes me! Thanks. Linda Hi, This forums is for developer questions relating to VS 2005 and Windows Mobile and CE. This newsgroup microsoft.public.windowsmedia. player whould be a better choice for this question. Thanks Amit ...Show All
