danych's Q&A profile
Visual C# Keyboard Shortcuts
How do setup keyboard shortcuts on my application Say that I wanted a user to be able to press "Ctrl + S" and have it open the "Save Web page Dialog"... How would I do that Thanks much! Landon Hi, Landon Parks To verify that the Ctrl key and the S key are pressed at the same time, follow these steps: 1. Open Visual Studio .NET. 2. Create a new Visual C# Windows Application project. 3. Add a Button to the form. 4. In the form, type the following code: private void Form1_Load( object sender, EventArgs e) { // Set these when the form loads: // Have the form capture keyboard events first. this .KeyPreview = true ...Show All
Software Development for Windows Vista which VS.NET version goes with Vista ?
Hi all, I have gone through the following installations on a clean machine: · Vista (RTM version) · Vista WDK · VS.NET 2005 version 2 During the installation of VS.NET I got a warning saying there is a known compatibility issue. It offers to search for online solutions, there was none… I installed anyway. Does anyone know which VS.NET version should I use on Vista I have found an SP1 and also a SP1 for Vista BETA version. Should I use both only Vista None Thanks, Osnat I got VS2005 without SP1 and the extra Vista update installed. I am also running as a non-admin user and it works fine. I do mostly .NET development at the mom ...Show All
Windows Forms Read and view PDF files like adobe activeX
Hi, How to read and view PDF files like adobe activeX Thank's Alexei Hi, My problem is that I connect application on my computer to Acrobat Reader 7. On clients computers I have both version 7 and 6 and 5. So this isn't work perfect. I need another solution. I want get the result like when I working on internet I click on PDF and it opens into IE. Thank's Alexei ...Show All
Visual Basic .text.todecimal
VB newbie 'writing' first web application from book 'Using Visual Basic.Net (Que)'. I'm using VB2003, book was published in 2002 therefore would be using previous version of VB, which I think is the cause of my problem. The book has the following line of code: decPrincipal = txtPrincipal.text.ToDecimal the intention being to assign to decPrincipal the numeric value of the number stored as text in txtPrincipal. My VB editor doesn't recognise 'text.ToDecimal'. What function converts text to numbers in VB2003 PS the book also makes reference to a 'link button' control when designing the web form. I can't find the 'link button' - what is it called in VB2003 linkbutton maybe linklabel in ASP.NET. a ...Show All
Visual Studio VS2005 and Visual SourceSafe Nightmare
It seems that we cannot do anything in Visual Studio 2005 without surreptitiously going out to SourceSafe and churning for 3-5 minutes. Granted we have (unavoidably) made the mistake of placing the SourceSafe database on a network file share -- it does not explain these covert and constant SourceControl accesses. For example, loading the project does something like "verifying source control". Why do we need to verify anything and why does it take so long I can launch SourceSafe myself and verify faster than the IDE can. Refreshing the solution (recursively) appears to be doing just that -- RECURSIVELY refreshing the solution -- meaning the refresh of the SLN file causes a refresh of the child projects, and the ...Show All
Gadgets saveAs dialog
Hi again, seeing that the documentation is still not updated, how it is with the save file as dialog I've discovered that I have to separate the file types by \0 instead of :. I wonder if I can leave the code with this null char or if this would be unexpectly fixed And how should I use the first parameter Is there any way how to suggest the file name for user Hi, Thank you for adding that to the known bugs list. ;-) Well, actually.. they have two options. Update the documentation, or, if they add a function to replace ':' with \0 they won't break the compatibility if there are already \0s in the string - good enough, isn't it :) I can't imagine why the have added yet another ...Show All
Visual Studio Team System Unable to Add New Objects
I'm having a problem adding new objects from Solution Explorer. When I right click on Tables and select Add New Item the Categories / Templates are blank. Therefore I can't add a table. I've tried re-installing CTP4 but to no avail. Not sure what's changed as I was able to do this before. How do I fix Gert Drapers wrote: In CTP4 we do not allow you to add anything but a generic script type from Solution Explorer, you need to use Schema View if you want to add explicit types in CTP4. -GertD "DataDude" Development Manager What is the Schema View Could this be related to my problem here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=581737&SiteID=1 ...Show All
SQL Server Server Time Dimension - Date field isn't parsed in Excel'07
I have a server time dimension that powers all my time related analysis in SSAS 2005. When connecting via Excel 2007 as a client, I've noticed that when the row labels are set to date (i.e. when we're analyzing some measure by date), it's already pre-formatted as a string ("Sunday, December 17 2006") and as such, Excel doesn't seem to be able to do any analysis with it. Is this a known problem w/ the Server Time Dimension Hello. When you build your own time dimension, with a table, you can add named calculations to that table in the data source view. With TSQL DATEPART(mm,MyDate) you can create a MonthNumber dimension and use it on the x-axis in the diagram. Then it is possible to comapre ye ...Show All
SQL Server Rank function
hello, this the MDX for my calculate measure in AS2005 Rank([SL_Territory].currentmember, order([SL_Territory].members,([Measures].[Sales],[SL_InvoiceDate].currentmember), bdesc),[Measures].[Sales]) the problem is...I get the Rank=1 on the Grand Total instead of on one Territory dimension as it should be. Am I doing something wrong Thx Thx for the answer my MDX Rank ([SL_Territory].[SL_Territory].[SL_Territory].Members, order ([SL_Territory].[SL_Territory].[SL_Territory].Members ,([Measures].[Sales],[SL_InvoiceDate]. currentmember ), bdesc ),[Measures].[Sales]) My result SL_InvoiceDate Rank SL_Territory AZ 3 PA ...Show All
Visual Studio Express Editions Displaying MIDI files on a musical staff
Any one know how to display a midi file on a visible musical staff I see programs like "Anvil Studio" that do this. Can this be done in visual studio I am most familiar with visual basic. Would like to create an application that would help me improve my music practise time by playing and displaying a midi file. I am wondering if you ever found out how to display midi files on a staff If so, I would be interested in knowing how difficult it it (If I could even learn how to do it). Thanks Dugley ...Show All
Visual C++ Inlining with /EHsc
I found that compiler (VC++ 2005 Pro) not inlining some functions/operators when using /EHsc flag and you have an empty destructor in class. class vector3 { public: vector3(); vector3(const vector3& vec); vector3(float x, float y, float z); ~vector3() {} // if remove this compiler will inline operator+. // some code }; inline vector3 operator+(const vector3& a, const vector3& b) { return vector3(a.x + b.x, a.y + b.y, a.z + b.z); } Can somebody explain this behavior Here is the link: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=211600 You can bookmark this to follow its status. If you wan ...Show All
Commerce Server Incremental Import
Hi, I seem to be at a loss on a Catalog Incremental Import. I have set this up through BizTalk which successfully grabs my XML file and returns a success file back, however the Items are not showing up in the Catalog. I have also tried taking BizTalk out the picture and have run the Import process directly through the Commerce Server Catalog Manager app. Once again no errors and the Item does not show up in the Catalog. There are also no errors in the Event Viewer. I have also queried the SQL tables and have not found the Item there as well. Any guidance would greatly be appreciated. Xcel. You can ignore the last post. I had the Catalog End Tag in the wrong place (interes ...Show All
.NET Development IIs host in net Remoting.
HI I copy the example in msdn , Hosting in Internet Information Services (IIS) http://msdn2.microsoft.com/en-us/library/c2swb8ah.aspx when client call to server in the first time i got exception "The remote server returned an error: (405) Method Not Allowed." i don't understand why btw i configure the "Directory security " tab in IIS to enable the Anonymous access . ...Show All
SQL Server varchar to date for multiple formats
I have a varchar field which should contain dates but unfortunately it is fill with all sorts of imaginary formats which only the one who has typed may understand. 9+03/24/2006 3/16/2006 11:15AM 5-Oct 8/8/2006 9 `06/27/2006 12505 1/9/2007 1/12/2007 1/12/2007 1/15/2007 which iam trying to pull into another table for reporting puropse where iam going to use dateranges from this column create table #tempx (sdate varchar(50),cdate datetime) insert into #tempx select mycolumn,CASE WHEN ISDATE(mycolumn) = 1 AND mycolumn LIKE '[0-9][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9]' THEN convert(datetime,mycolumn,101) ELSE NULL END from mytable Has hepled me in converting most of those but iam left with date of the format 10/16/06 for which i t ...Show All
Visual Basic How to connect vb 6.0 and access?
I am a total amateur to VB and Access...so pls help me to connect vb and access. I need step bt step instructions. I just want to learn the basic so that i can do better applications next time. i want to have only one field : 'name' in MS Access ! So pls help me i get an error in this line cn.Open ""Provider=Microsoft.Jet.OLEDB.4.0;;data source='" & App.Path & "\Nwind.mdb'" i changed the NWIND.mdb to arvin.mdb where i created a field called " name" and table name is " arvin " ...Show All
