Charles Lewis's Q&A profile
Visual C# Extensibility
The new spacing configurations in VS2005 are fantastic. In fact, they are so great that they have inspired me with the desire to write an AddIn that allows me to perform even more spacing logic that I particularly like. Is something like this sound possible You might want to try asking this question on the C# fourms as people over there might have a better idea of the formatting tools that currently exist for C#. I'll look around and see if I can find a formatting example. In the meantime, check out the macro project included with VS as there are a lot of samples there that might help you get started. The concepts in ...Show All
Visual Basic Uninstall file
Hi, Can someone tell me where to find the uninstall file for any given program Where is it normally located Or else, if it has to be created, then how can I go about doing that Thanks a lot. As long as the program appears in the Add/Remove Programs applet, you can find the uninstall commands in the registry key HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall. Look through the subkeys for the UninstallString value. The DisplayName value gives you a hint which program gets uninstalled. ...Show All
Visual FoxPro Converting VFP reports to PDF 6 or Higher version
How can i convert visual foxpro reports to PDF 6 or higher version from visual foxpro appication and opend automatically. I was having a tool which works fine for Acrobat 4.0 version which uses Acrobat PDF Writer and Acrobat Distiller. Now in the latest version of PDF its creates the printer as Adobe PDF AND now the Windows 2003 server only the higher versions are getting installed. Plese help me in this regard Raman Check out the excellent article by Lisa Nicholls on PDFs in FoxTalk. There is a link to the free article on David Stevenson's (FoxTalk Editor) blog: http://talkingfox.blogspot.com/2005/06/dont-miss-free-pdf-article-by-lisa. ...Show All
Windows Forms Is WebBrowserShortcutsEnabled = false supposed to disable menu access?
Try creating a simple form with a MenuStrip, and add a menuitem (for example "Hello") with a shortcut on it (for example "Ctrl+H"). Write some code for the menuitem, for example "MessageBox.Show("Hello World!");". Next, add a webbrowser to the form, and set its WebBrowserShortcutsEnabled propterty to false. Next, in the form's load event write something like the following: webBrowser1.Navigate( "about:blank" ); webBrowser1.Document.Write( @"<html><head><title>Test</title></head> <body> This is a test to see if WebBrowserShortcutKeysEnabled does what it i ...Show All
Software Development for Windows Vista Example of SQL persistance service
I am developing a web application with workflow. I have implemented the sql persistance service also. Can any send me small example code, in which first time you open the browser you just start the workflow . And next time when you open the browser, load all the workflow that are not completed move them them to next state. Using sql persistance service. Thanks in advance. Amit, I am working on a sample whcih has WF hosted in a ASP.NET environment with SQL persistence. I should be finishing it by next week. Please send me your email address and I can send it you when I am done. Thanks, ...Show All
Visual Studio Code comments in MPF - How to associate derived Source class with VSPackage?
To associate new characters for code comments - single and multiple lines (blocks), the VSIP documentation says that you need to extend Source class and override GetCommentFormat method and return the appropriate CommentInfo structure. It also requires that the registry entry EnableCommenting is set to 1. I did the above, however I am not able to understand how to associate the new MyLanguageSource class with the Language service VSpackage to get the new code comment characters. Anyone knows how the association can be done Thanks in advance. Regards, Vinay Ahuja Vinay, Have yo ...Show All
.NET Development What type of security should I use on web app(asp.net)
Hi, Hopefully I've posted in the correct forum. I have a relatively simple C# asp.net web app that a user enters personal data it POST's back to the server and an email is sent to a specific user with that data. I have all the code and everything working, my problem now is security. I want to implement some on the POST and on the email, but hopefully with no cost$(third party) involved and conceptually easy to develop. I've looked at the Cryptograhy class in .net and I am just over whelmed, not too mention every site out there has a different way of doing it It seems like I either need SSL, DRM, PGP, Certificates or something to that ...Show All
Visual Studio 2008 (Pre-release) Intermediary router and interoperability
Greetings, I am currently designing a solution which requires to have a high level of interoperability. The services will be used by external clients but also by internal applications. For me it would make sense to have 2 different bindings for both audiences. One would be wsHttpBinding for external clients and the other would be netTcpBinding so i can get the best performance for my internal applications. One thing though, is that i don't want to expose these services directly to the outside world. (They are deployed in a secured zode). Therefore i want to use a router similar to the one in the SDK (Intermediary router) that i will ...Show All
Visual C# Visual Studtio 2005->File->New Project->Shows an empty box
Hi All, I am new to .NET, and have just downloaded "Visual Web Developer 2005 Express Edition Beta 2". I want to start building C# applications but on Selecting File->New Project, gives an empty box with no "project types" and "templates". Do I have to install C# express edition separately OR is the installation incorrect. Thanx Varun Varun Sood wrote: Hey Nicholas, Thanx again...just one more question...where can I download VS.net from Is it free online or do I have to purchase it Thanx Varun Varun, You will have to purchase it, as it is not a free product. If you have a subscription to M ...Show All
.NET Development Same data access takes thrice the time in .net than vb.
Hi, I have migrated my app from VB to VB.Net. A 3-tier app with remoting and COM+. I am experiencing a long wait time of about 3 times higher than what it would take in the VB App. I am using DataAdapter.FiLL method to fill the datatable. I have tried. Using DataReader ( Made the things worse ) Using BeginLoadData and EndLoadData Creating a Dataset and calling fill with the dataset so that the round trip to the middletier is saved to bring the SQL. Using Ref-Cursor in Oracle proc to get the allready compiled o/p. But i feel now that whatever is done. the problem is with the fill method only Is there any alternat ...Show All
Visual Studio Express Editions FileDialog question
Hi As if I don't have enough problems! I copied the routine below from the help system into my code. Straight away, then item DialogResult complained that : 'Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated' Is there something there that I should be doing to correct this error This is an unaltered copy from the help system. Private Sub button1_Click(sender As Object, e As System.EventArgs) Dim myStream As Stream Dim openFileDialog1 As New OpenFileDialog() openFileDialog1.InitialDirectory = "c:\" openFileDialog1.Filt ...Show All
Visual C++ a simple string-question (newbie!)
i face a little problem with string-handling. i have to handles to strings and a label called "lblText" which displays my destinationstring: String^ strSource = gcnew String("this is a test"); String^ strDestination = ""; .... copy-routine... lblText->Text = strDestination; now i would like to copy only the word "test" to strDestination (position 11 to 14) and display it in lblText as shown above. CopyTo do need a char-Array of unicode-chars as a destination. thanks in advance. Drole Use the String::Substring method. drole wrote: i face a little problem w ...Show All
Visual Studio Team System Can't connection Project Portal
Hello~~~ I have installed TFS RTM Workgroup Edition. I'm using Windows Server 2003 R2 with Active Directory. After installation, I can open Documents, Reports at Team Explorer. And I can connection Windows SharePoint Services Site Administration using the link at Team Project Setting->Group Membership Dialog. But if I try to connect with Show Project Portal... , the browser request authentication. If I try to logon with TFSSETUP, the message is displayed "You are not authorized to view this page". I tried with administrator account too. But it's not worked. Could you help me Thank you. ...Show All
Visual C# Web Browser
Hi, I have a web program that working but the addressBar and the form title bar do not updating. Thanks for any help. Zulbaric wrote: Can i just ask one question How would you alter the code to fit a tab system You create a factory class or a method on your form that can create TabPages, so you can add them on runtime. So it creates a TabPage with an WebBrowser control on top of it. But, a better way is to create a your own TabPage by inhire the TabPage class. ...Show All
.NET Development strongly typed dataset
Hi, The following line populates a datagrid using a strongly typed dataset. dsEmps is the .xsd file in the foreach line I would like to loop through each record I get an error on the foreach line and it says: specified cast is not valid I think this line has to be somehow casted employeeDetailsData.Employees.Rows EmpBusRule.EmpService.dsEmps employeeDetailsData; EmpBusRule.Employees br = new EmpBusRule.Employees(); employeeDetailsData = br.GetDataEmployee(); if (employeeDetailsData.Employees.Rows.Count < 1) { throw new Exception("No record found."); } grdEmps.DataSource = employeeDetailsData.Employees; forea ...Show All
