Denny B's Q&A profile
Visual Studio Tools for Office Enable/disable popups in main menu
Hi; We have an Add-In where we need to enable/disable a couple of menu items based on the location of the caret in the document. As an example, think of the Cut menu item in Edit - it is only enabled if text is selected in the document. Is there any event or any other method where we can enable/disable the menu items just before the menu is displayed. Possibly an event that occurs when the user clicks on the main level menu that will cause it's menu to drop down At present we use the select change event. But this is a bad solution both because it is fired all the time so we are using a lot of CPU cycles and because it does not fire when the ...Show All
SQL Server Import flat file automatically?
Hi, I'm going to be getting several flat files that need to be imported into one of two tables. Although the text files will have different file names, they will have either "Header" or "Detail" in the file name, so I can tell which table they need to be imported into. The problem is I don't know enough about SQL Server 2005 to set up an automated import of these files into the database. Does anyone have any suggestions on how to do this, or have any experience in setting this up Are there any inexpensive programs to load data realtime or on a schedule (I work for a young company with a very tight budget). I ha ...Show All
.NET Development Using Configuration Classes
Hi, Does anyone has a little peace of code, how to write any key value pair or a value of a control used in a form application into a users roaming profile. All microsoft documentations and news groups threads I read, speach about easy to use configuration classes I have studied hundrets of documents and discussions but I have not found any usable example to simpliy store the windows location in a user based <apps>.config file in the path of the users profile, which will be automatically reused on restart the application. For me, this section of the library is not very easy to use and miss designed, as long as must code more ...Show All
Visual Studio I dont see integrated menu on vs 2005 rc 1?
I installed first vs 2005 rc 1 and then vss 2005. But there are no menus on my IDE to check in check out , etc The Release Candidate only contains the VSTS SKU, it doesn't contain other products, like SourceSafe. Be patient , in just a few weeks, the RTM version of all products will be available. ...Show All
.NET Development Connect to Oracle Database programmatically using .NET 2.0
I am a little confused about this. I have worked with SQL Server databases extensively and can make a connection as simple as below: .NET 1.1 SqlConnection cn = new SqlConnection(); cn = new SqlConnection("server=localhost;database=test;uid=xxxx;password=xxxxx;"); cn.Open(); Now, that I am trying to work with Oracle databases, I run into problems. I read in .NET 2.0 that the same SqlConnection class can be used to connect to most relational databases. What do I need to do to the code to do this From my readings in .NET 1.0, the following had to be downloaded from MS in order to access an Oracle db: .NET Fram ...Show All
Smart Device Development resgen.exe
hello i have a problem with the resgen.exe....when i try to build my projekt (in vs .net 2005) i get the following error: resgen.exe exited with error -1163019603 what does this error mean until now i haven't found a good explanation... i hope someone here can help me tia pezi Are you trying to open a VS 2003 project in VS 2005 If that is the case, it might have to do with compatibility - please refer to this post http://www.danielmoth.com/Blog/2005/08/resx-compatibility-for-smart-device.html . Aarthi ...Show All
Visual C# Applying System.Diagnostics.DebuggerHidden() to all Property's
Hi all, I have a load of Properties (read and writable) and as my debugger is slow I have used the following code above each Property declaration... [System.Diagnostics.DebuggerHidden()] ...Is there anyway I can, instead of having this line above every Property, can I have it once to say that I want to hide all my properties from the Debugger Thanks Tryst No it can only be applied to class members. However I don't think that is really the solution to your problem anyway. The debugger still has to go through the properties even if they are hidden. It simply skips the display process. Furthermore you are making it harder on yourself ...Show All
SQL Server Problem with a date function
Hello All! I have a table with a date column. I would like to be able to DELETE the rows based on the date column. The condition is 30 days from todays date. So anything older than 30 days from todays date, it will delete those rows. Any suggesttion the best way to do this. I was thinking of a simple select statement, but can't figure it out. TIA!! Rudy Hi there, Is your date column of data type DateTime If so, try something like: DELETE FROM [Table Name] WHERE DATEADD(d, -30, GETDATE()) > [Date Column] What happens is DATEADD(d, -30, GETDATE()) is used to obtain a date that i ...Show All
Smart Device Development Migration to Visual Studio 2005 binary footprint (C++ exception handling and RTTI)
So you completed a migration to Visual Studio 2005 from Embedded Visual C++ and now you realized the binary footprint of your application is now 25% larger than that output from the eVC++ compiler. Ok, so you want to reduce the size of the binary footprint of your application and you have no need for C++ exception handling, because it never really existed in the previous version and/or you never got around to that KB that instructed you on linking RTTI in to your application. So now RTTI is there along with C++ SEH, you disable C++ SEH but that does not seem to do very much now what There seems to be a bug, uh ...Show All
.NET Development XML Web Service Weird Issue
Hi All, I have a web service for our client was running fine on our localmachine. Web service receive/send data to our pocket pc devices. Then we have a success trial on exploring web service to allow outside people to consume it. However, when we deploy this web service to our client. It doesn't seem work. - really doesn't work at all. I tried xcopy, msi web setup method. At the end, I end up copy whole virtual directory to my client's computer. Now, I can access the web service. But I was unable to pull /send the data. Web service suppose to pull data from MS Access and send data back to pocket pc. Connection string = "Provider ...Show All
.NET Development is the Client online????
Hi, I am new in C# programming. I have developed a Client-Server Application.The Clients can loggin to the Server and send messages to each other. My Question is: How can the Server know whether a Clients is still connected I use TcpListener, TcpClient .Connect(serverIP, serverPort), StreamReader and StreamWriter for the communication. Thanks. MAT. This question is better suited for the .NET Framework Networking forum where general framework related questions are posted. Reserve this forum for general questions related to C#. I'm moving the thread over there where the experts ma ...Show All
Visual C# Auto-Update Application
Hello folks! I was wondering, someone here knew if there is an Auto-Update component available for VC# The client should check the server for the updates and if updates are available, then download and install them Can this be done without additional components too Thanks for reading. You should dive into Smart Client Applications: http://msdn.microsoft.com/netframework/programming/winforms/smartclient.aspx ...Show All
Visual Studio Subversion SVN with Visual Studio 2005
Anyone know how I can use Subversion SVN source control in combination with VS .NET 2005 to have source control for a website served on IIS with Frontpage extension 2002 Thanks in advance guys! We did not specifically test VS 2005 with Subversion, so I would not be able to comment whether this is possible or not. You might need to talk to Subversion developers to resolve this. Sorry for the lack of a better answer, -Grigori ...Show All
Windows Forms Questions w/Web Broswer & Windows Form App
We have a vb6 app that has a form with the AxSHDocVw.AxWebBrowser (web broswer). In the VB.6 app it takes very little code to give it a url it opens it and then when it is closed it comes back to the Win App. Question: Is there currently a WebBroswer control in vb.net where you can place the control on a form and give it a url& ...Show All
SQL Server FMTONLY, LONG Running ?
Hi There I have been running a trace for long running queries. I know what FMTONLY is, simply returns the metadata of the query. I have found something odd. SQLBatchComplete:SET FMTONLY ON SELECT SETID,FFIG_FIGURE_XX,(CONVERT(CHAR(10),EFFDT_XX,121)),EFF_STATUS_XX,FFIG_TYP_XX,PRCSR_CLASS_XX,SQL_SEL_TXT_XX,RUN_SEQ_AVAIL_XX,DESCR_XX,FFG_COLUMN_XX,FFG_VAL_COL_XX,LASTUPDOPRID_XX,LASTUPDDTTM_XX FROM PS_FFGDFN_XX_VW SET FMTONLY OFF. This performs 0 reads with a 0 duration time. A few commads later the same SPID does the following: SQLBatchComplete:SET FMTONLY ON SELECT FFIG_VAL_XX FROM PS_FFG_FCRB_XX_VW SET FMTONLY OFF This performs 44000 reads 449 ...Show All
