Olle SW's Q&A profile
Windows Forms FileIOPermission on Deployment
I have a clickonce app with embedded VB "custom code" for a local rdlc report file. When I deploy this to a file share and then install on a client - I have file IO permission (I can write a text file on the client). However, when I try to run a report - I get the following exception: Microsoft.Reporting.WinForms.LocalProcessingException: An error occurred during local report processing. ---> Microsoft.Reporting.DefinitionInvalidException: The definition of the report 'Main Report' is invalid. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report Processing. ---> System.Security.SecurityException: Request for the permission of type 'System.Sec ...Show All
Visual Studio Express Editions Noob VB Questions
Alright, I'm trying to make a program that has two buttons. When the user puts his/her mouse over the top button, it gets disable and the other button gets enabled. In other words, I want to make it so the user can't press either of the buttons because everytime they put their mouse over a button it gets diabled. If the user does somehow press one of the buttons, I want a dialog box to appear and display some text. This is probably pretty simple but I'm just completely new to vb. Thanks Wintallo wintallo@gmail.com Create a new project. Add two buttons. Add this code... Private Sub Button1_MouseEnter( ByVal sender As Object , ByVal e As System.EventArgs) Handles Button1.Mou ...Show All
Visual Studio Visual Studio 2005 and VSS integration issues
Are there any known issues with Visual Studio 2005 integrating with VSS We have several developers upgraded to Visual Studio 2005 but we continue to use VSS for source control. But we have been having problems with files opened in Visual Studio which are preventing VSS from performing basic operations like applying a label. Has anyone heard of any issues like this Is there anything we can do to resolve this problem Maggie, VS 2005 and VSS are designed to work together. I assume you are managing your projects and solutions from Visual Studio using the source control integration. To track this down, I need more details about the problem you are seeing. Are you trying to apply a label from ...Show All
Visual Studio 2008 (Pre-release) How to determine message size that goes over wire?
Hi , I need to determine System.ServiceModel.Channels. Message size that goes over wire. I have intercepted message in public void AfterReceiveReply( ref System.ServiceModel.Channels. Message reply, object correlationState) method of IClientMessageInspector interface. In quick watch reply message was formatted and when I saved it in txt file, file size was 105K. Then, I tried to serialize it in file in AfterReceiveReply method with: System.IO. Stream str = new System.IO. FileStream ( @"c:\file" , System.IO. FileMode .Create); System.ServiceModel.Channels. MessageBuffer mb = reply.CreateBufferedCopy(maxBufferSize); mb.WriteMessage(str); and file size was 70K. Is any of these two va ...Show All
Visual C# Visual Style for a BHO
Hi How can I change the visual style of a BHO Something like: Application .VisualStyleState = System.Windows.Forms.VisualStyles. VisualStyleState .ClientAndNonClientAreasEnabled Thanks Deza ...Show All
Visual C++ Is it possible to use MFC42 (compile and link) under VC++ 8 (MSVS 2005)?
May be rather weird idea, but one of our customer using our SDK is demanding it. Thank you for hints. I could understand a motivation to create an EXE on VS 2005 that only made calls to MFC42.DLL: Suppose a C++ developer wants to bring a VC++ 6.0 project to VStudio 2005, but build an EXE that can run on XP, Windows 98, and Vista. 1) Then, wouldn't it be easier to have the thing compile so its function calls to MFC only reference MFC42.DLL, which is already included on Win 98 and later machines 2) If the EXE's from a VStudio 2005 build only reference later versions of MFC__.DLL, how could that EXE be properly installed on a Windows 98 machine ...Show All
Windows Forms How to cancel the MDIForm_Closing event?
I am using VS2003 (Vc++ or C# or Vb examples fine).This has MDI form, Child Form, one Richtextbox inside child form. If the RichtextBox contents are changed and user click closing the MDIform, I am trying to handle that event in MDIForm_Closing event.If the richtextbox is changed, it asks whether to save or not or cancel.If yes(save), I can handleIf no(do not save), I can handleIf cancel, I wanted to cancel the event and come back to the previous state. Since this closing event it closes the complete application. I do not know how to handle it.Can anyone one help me how to handle cancel and go back to the original state Thanks, Jil ================= private: System::Void MDIForm_Closing(System::Object * sender, System::ComponentModel::Can ...Show All
Visual Studio Team System Files, Filegroups, Objects
Hello! How do I can specify physical layout of database - specially files and filegroups For example (CTP6): 1. filegroup: ALTER DATABASE [$(databasename)] ADD FILEGROUP [REFS] 2. table: CREATE TABLE [dbo].[Customers] ( [id] [int] NOT NULL , [Buyer] [nvarchar] (100) NOT NULL , [BuyerCode] [nvarchar] (16) NOT NULL , ) ON [REFS] But after deployment Customers table appears in PRIMARY filegroup (not in REFS group as expected)! I've also tried import shema of existing database with files and filegroups. It creates storage.sql file under Post-Deployment. But deployment of this imported database also creates all objects in PRIMARY group. Any issues ...Show All
SQL Server New to xml - Dts
Hi, I am very new to xml and need help urgently. I have a .xsd file and a regularly generated .xml file from a third-party application. I have to upload that xml file to our SQL 2000 Server db using DTS. How do i do this my xml file has mltiple tables with in it and i have creatd them. I also loaded mu sqlxml 3 and started processing but it gives me error Schema: relationship expected on 'Transaction'. Please help... i have pasted my XSD file here... and please remember this is in SQL 2000... < xml version="1.0" encoding="UTF-8" > - <!-- FRI Input Schema version 0.40 --> - < xsd:schema xmlns:xsd =" http://www.w3.org/2001/XMLSchema " elementFormDefault =" ...Show All
Visual Studio 2008 (Pre-release) Windows installer failure
help urgently required. I have attempted to run a CognosController.Msi file but the installation failed with the following error: "There is a problem with this windows installer package. A script required for this install to complete could not be run." I currently have .NET framework 1.1 including SP1 installed. Any tips on how I can resolve this problem. Thanks ...Show All
Software Development for Windows Vista Utter lack of Icon documentation
I'm trying to update an application to be nice and Vista-y; the current problem is with icons. What icon sizes should my application have to be Vista+XP compatible. How can I tell In particular, why doesn't Microsoft actually documentation the icon file format As near as I can tell, there are single-byte 'height' and 'width' values in the list-of-icons in the icon header. This means that icons can only be 0 to 255 pixels. However, it seems that icons in Vista can in fact be 256 pixels, so clearly there isn't a simple mathematical relationship between the value in the file and the value used. My question is: what is the mathematical relationship between the height and width fields and the actual icon height Are they just set to zero, bu ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Debugging Problem Windows Vista x64
Hello, I've got a problem with compiling a "Game-Project" in XNA Express. The error message is: "Die Datei oder Assembly Microsoft.Xna.Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f48fa5f25d27e8ff oder eine Abhangigkeit davon wurde nicht gefunden. Es wurde versucht, eine Datei mit einem falschen Format zu laden." Translated it means something like "The file or assembly Microsoft.Xna.Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f48fa5f25d27e8ff was not found. There was a try to load the file with a wrong format." ( Bad bad bad English, I know ;) ) I googled for informations about the Problem and I found some about a problem with x64 systems. There was offered a solution with the csproj Files and " <PlatformT ...Show All
Software Development for Windows Vista Question on an old 16-bit application
We have a legacy 16-bit application that we still support. It was originally designed for Windows 3.1 (remember that ) and its architecture requires a "feature" of 16-bit DLLs where different applications could share the memory space of a common DLL. In the example, the central admin.dll stores the state of the logged in user to the application. Other "modules" can then call that DLL and read and update the state. This has worked all the way up to Windows XP. As we know, in the 32-bit world, and the more secure world of application programming, we wouldn't want to allow different applications to "borrow" the memory space of a DLL, so each application gets its own instance of the DLL, but it seems there was ...Show All
Visual C# DataGridView.Rows.Add... problem!
I am facing a problem with adding new row to an existing unbounded DataGridView which contains two columns; the first one is DataGridViewLinkColumn type and the second one is DataGridViewTextBoxColumn type. But I always having an empty cell inside the DataGridViewLinkCell, I am using the following code: DataGridViewLinkCell aLinkCell = new DataGridViewLinkCell(); aLinkCell.Value = "Something"; MyDataGridView.Rows.Add(new object[] { aLinkCell, "Something" }); Thanks in advance. You just need to set the text private void Form1_Load( object sender, EventArgs e) { DataGridViewLinkColumn lc = new DataGridViewLinkColumn(); DataGridViewTextBoxCol ...Show All
Windows Live Developer Forums Nedd Help Adding & controlling multiple tile layers in 3d mode.
I created 5 tile layers using the mapcruncher tool. If I click the "preview" link, it loads the newly created layers in 2d mode just fine, with the ability to turn them off and on and zoom-to. I want to do the exact thing in 3d mode. Is it possible I've spent hours now trying to get that to work with no luck. I have had some success loading all of the layers in 3d mode, but without the ability to turn them off and on and zoom to. I am an amateur javascript guy, so I probably am going about it all wrong. Does anyone have an example chunk of code that will essentially duplicate this functionality Any help would be appreciated. Aaron ...Show All
