marceloshb's Q&A profile
Visual C# Blocking ALT+CTRL+DEL in your application!
Hello all How to block ALT+CTRL+DEL or ALT+F4 in your c# application. Thanks for your help. I assume that you work on the windows form. If so, there is a way to prevent ALT+F4 from happening. In the properties window, double click on the KeyDown Event and it will take you right into the source code. Then, you want to type the following highlighted code down below. private void (name of KeyDown)_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F4 && e.Modifiers == Keys.Alt) e.Handled = true; base.OnKeyDown(e); } PS let me know how it works out for you. ...Show All
SQL Server Fail to run report made with report builder
Hi, I am completely new to Report Builder. I created and deployed a report model and opened the Report Builder, and created a very simple report by dragging a table into the report. When running the report i get this error: Keyword not supported: 'provider'. ---------------------------- Cannot create a connection to data source 'dataSource1'. ---------------------------- An error has occurred during report processing. The data source name that I used in the report model was not called dataSource1. Approximately the same error is displayed if I deploy (save) the report to the report server: An error has occurred during report processing ...Show All
Visual Studio Express Editions How many source files are needed to publish a VB program
I have put Form1.vb and Form1.Designer.vb for a small serial port program in our knowledgebase, but it seems that these two files are not enough. In some examples I have seen Form1.Designer.vb inserted in the beginning of Form1.vb to form a complete source code. How do you do that This is the project settings and resources, available to all forms. It also contains things like what form to start up first. You might store some general messages, connection strings in the project settings instead of a individual form or class. ...Show All
Windows Forms Setup and deployment project + Environment variable
Sorry for the not-so-helpful subject line. I have a c# application for which I am trying to create an installer. I am using the 'Setup Project' template under 'Setup and Deployment' for achieving this. I have added two files a.exe and b.xml under Application Folder. I want to set the default location of the Application Folder as some environment variable say 'DEF_DIR'. How do I achieve this I tried all these options: $DEF_DIR %DEF_DIR% ENV(DEF_DIR) $ENV(DEF_DIR) No luck so far. Can someone please help Hi J Andrews, Go to the following link... http://support.microsoft.com/Default.aspx scid=kb;en-us;8 ...Show All
Windows Forms Wrong content type ?
Application: ---------------- "An unknown error has occured. Please review the even log for more information" Event log: ---------------- "Client found response content type of 'text/html; charset=Windows-1252', but expected 'text/xml'." Any ideas "Client found response content type of 'text/html; charset=Windows-1252', but expected 'text/xml'." you said &qu ...Show All
Smart Device Development Multiselect listbox for Compact Framework
I'm developing a VB.NET PPC application using VS2005 Beta 2. I've noticed that the SelectionMode property (which allows you to specify a single or multiselect listbox) for the listbox control is not available for smart device development. This seems like a fairly basic property that has been omitted from the Compact Framework. (By the way, I'm porting this application over from the Palm OS, which has had this capability for many years). Any idea whether the SelectionMode property for the listbox control will be available in the released version of VS2005 If not, is there a recommended alterna ...Show All
Visual Studio Express Editions link.exe error
I followed this tutorial: Building Windows Forms Applications with Wizards in Visual C++ Express (12 Minutes - 8.2 MB) And I get an alert box that pops up and says: --------------------------- Microsoft Visual C++ Runtime Library --------------------------- Runtime Error! Program: C:\Program Files\Microsoft Visual Studio 8\VC\bin\link.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. --------------------------- OK --------------------------- When I click OK, the output window at the bottom of VC++ EE says: Project : error PRJ ...Show All
Visual C# what are those files VS2005 creates?
When i compile my application, there are 3 files it creates: <projectname>.exe <projectname>.vshost.exe <projectname>.pdb i know that <projectname>.exe is the executable file, but are the other two's Which one of those 2 should i include when i want somebody else to debug my program What are the basic ideas of the other 2 files please let me know :) The other two files are related to debugging, but only the .pdb is necessary if you want to give your application to other people to debug. The .pdb file contains the 'debugging symbols' for your applicaiton. Having it will allow the debugger to re ...Show All
Visual C++ output format......
Hi all, I dont know if I am in the right section or not....any way, let's try my lock .. I wanna write a program that compute a formula which depent at the value I will enter..... this is too easy but I want the output be as vector on the x-axis & y-axis ... how I can do this format . Thanks alot Reta Please be more specific. Give an example of what you want to see as an output Do you just want to see the value of x is blahblah and the value of Y is blahblah or do you want to see something like (value of x,value of y). If you want the second output, here is a small sample tha ...Show All
Visual C++ MFC displays XP visual style only when VS2005 installed
HI. I'm writing an MFC app and trying to use visual styles. I added the manifest file with the various lines, including: [...] name = " Microsoft.Windows.Common-Controls " version = " 6.0.0.0 " [...] My problem is that although this caused the application to render correctly in testing (e.g.: white menus), when I run the application on a machine that has XP, but not VS2005, it renders in the old style (e.g: grey menus). Anyone know what is causing this Thanks! edit: I have the MFC libs linked in to the app - not using the shared DLL. I'm sorry but you must be confusing Vis ...Show All
Windows Forms Changing property localizability via TypeDescriptor
Hi. I'm using some third-party control, which one of its sub properties isn't localizable. By "sub property", I mean that the property doesn't belong to the control itself, but to some other object in its property hierarchy instead. I'm trying to replace the PropertyDescriptor for that property, with an inherited one who adds the LocalizableAttribute(true) attribute to its AttributeArray virtual property. Unfortunately, I didn't have much luck. The value of the property is still serialized to code instead to resources. Can anyone give me some guidelines how to implement this Thanks, Yaakov ...Show All
Visual Studio Team System Why there is a fork icon in my report folder?
Hi all, I have a test project and I am the one to create the team project and the test project. In the Team Explorer, I find that there is a fork icon on the Report folder, and I cannot use the Report functions. What's wrong How to solve it Thanks, Leon The members in the team still have such kind of problem sometimes. For the same application, someone could access while someone else has the red fork and unable to access. Regards, Leon ...Show All
SQL Server try to setup membership with ASP.NET configuration
When I whant the use the new ASP.NET configuration tool (2005) and I want to define a provider I get the following error. You should know that on installation of VS 2005 SQL-Server Express did not install and I installed SQL-Server 2005 (shiped with VS 2005). So now it seems that VS waits for the Express edition. I changed under Tools/Options/Database Tools/Data Connections the SQL Server Instance Name to "MSSQLSERVER" but this does not help, too. Thank you very much for any help! Regards, Fabian ----------- Server Error in '/asp.netwebadminfiles' Application. If you are using Virtual PC with SQL Server Expr ...Show All
Visual C++ Code to compile???
Hi, I need my program in C to compile a .c file. I remember that there is a call of system to do that. Something like system("compile the file",file.c,file.exe) I dont remember how to do that. please can u help me :D thanks You can just execute the compiler from straight ahead assuming that you have the compiler binaries in the path. system("cl.exe a.c") should compile a.c. cl.exe is the compiler driver. You can test that by going to the VS command prompt and executing cl.exe yourself. Hope this helps! Thanks, Ayman Shoukry VC++ Team ...Show All
SQL Server actual size in layout
When I compare the size on the screen with the real paper layout size is bigger than actual size and when i print report in the print preview, it was zoom in and only print part of my report.I must save it as pdf then print it. How to make it same size as the actual size(11*8.5in) You may want to read this blog article: http://blogs.msdn.com/bwelcker/archive/2005/08/19/454043.aspx It discusses logical pagination (e.g. in preview or HTML output) vs. physical pagination based on page size (e.g. in print preview, PDF, printing). -- Robert ...Show All
