Loopsludge's Q&A profile
Visual Studio 2008 (Pre-release) Rolebased Security & controls
Hello, For my WPF application, I need to use rolebased security to: a) Disable buttons b) Make controls readonly or read/write I'm planning to use an access matrix for each role. Each control has a boolean that indicates if it is enabled or if it is readonly. It just seems like a lot of work, and lot of binding code (in xaml-binding and cs-properties). aya-yaya... Is there a way out of this Is there a better approach Thanks Houman Josh, I'm going to spend some time playing with this suggestion. Sounds good to me... If I'm not mistaken this way all the enable/disable logic/lookup can happen in the class that wraps the dependency property I haven't used dependency propertie ...Show All
Software Development for Windows Vista Help with enabling trace listener when hosting workflow runtime in IIS
I am hosting the workflow runtime in IIS and have tried to enable the trace listener shipped with workflow by adding the following section to the web.config < system.diagnostics > < switches > < add name = " WorkflowTraceToDefault " value = " 1 " /> < add name = " Host " value = " All " /> < add name = " Runtime " value = " All " /> < add name = " Tracking " value = " All " /> < add name = " Activity " value = " All " /> </ switches > < trace autoflush = " true " indentsize = " 4 " > ...Show All
.NET Development Copying/Cloning question
A third-party grid control I am using does not appear to support Cloning/Copying, nor does its' ColumnCollection which is what I really want to get at. Question is do I need to custom-implement some way of copying/cloning what I want or is there anything I might be overlooking here Thanks! I really appreciate you writing out that extremely detailed answer. I just need the column names and their visibility (for now) and to feed those back to the source grid, so I'll go with a custom struct for now. ...Show All
SQL Server SQL Native Client Configuration or Remote Connections problem
If I look under SQL native client configuration | Client protocols, I have no entries and no ability to look at the properties of SQL Native client Configuration. Something is missing which I think is related to an error when connecting to my local server. sqlcmd -E -S .\devmain, 1064 I get error : Encryption not support sqlcmd: Error: microsoft SQL native Client : Client unable to establish connection An error has occurred while establish a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.. In comparison to other machines here at work, it appears my remote connections are configured. But I have no ...Show All
Visual Studio Creating an ASP.NET page using ReportViewer control in VS2003
This is probably very simple. However, I have not found a way to add the ReportViewer control in Visual Studio 2003. Currently, I am using .NET 1.1 and Reporting Services 2005. I know it is possible to create ASP pages for RS2005, but I have yet to find the solution. Thanks oh.. btw, to add reportviewer, you need to add the reference webforms.reporting. i can't remember the exact reference name cos i couln't check now. hth... ...Show All
Visual Studio Visual Studio 2005 Addin - How to find all the controls in a webform?
Hi everyone, I’m the coordinator of project NMVP ( http://www.codeplex.com/nmvp ). It’s a framework to develop MVP architectures. The framework is doing really well, but there’s one task I’d like to automate that is the task of creating a contract for the web form. I’ll illustrate: Imagine I have a web page like this: Username: [TextBox of Username] Password: [TextBox of Password] [Login Button] In MVP the contract for this page would be something like this: public Interface ILoginForm{ string Username; string Password; event EventHandler Authenticate; } So what I am trying to accomplish is: 1) When the user clicks the LoginPage : Page class in .cs file a "Refactor to NMVP Contract" item appears (done ...Show All
Visual C# Create a pdf
Hi everyone From Visual Studio 2005 is there libaries to create your own pdf documents If there is please point me in the correct direction. If not please give me suggestions on how i can achieve this. Other libaries available Thanks in advance THere's a couple of free options. THe easiest is CutePDF, which installs as a print driver. YOu just print to this pseudo-printer, and it save it as a PDF. Then there's the iText library, which is a Java library for manipulating PDFs, much like SuperGoo There are a couple different .NEt port of it. Check SourceForge.Net ...Show All
Visual Studio auto reload file!
If file changed in the disk and the file is open in the env ,then the editor will ask you do you want to reload the file, but I feel this is anoning, Can I let the editor auto reload the file Unfortunately, there is no way to suppress this message in VS 2005. If you think that this would be a good addition please file a suggestion in our MSDN Product Feedback Center. ( http://lab.msdn.microsoft.com/productfeedback/default.aspx ) Thanks, Sean Laberee ...Show All
Software Development for Windows Vista event in a workflow
is it possible that we declare an event for a workflow and write an eventhandler for this event in our Windows form. my problem is that i have declared an event for my workflow, but this event is not visible in my Host class so i cannot write a handler for it. What should i do Hi, Can you please provide more detail Is your goal to communicate between the workflow and the host If so, I would suggest the workflow host communication samples ( http://msdn2.microsoft.com/en-us/library/ms742138.aspx ) Thanks, Ranjesh ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Help needed with Spacewar Disaster
Hello, I am a C# begginer and i was just wondering if anyone could help me with a little problem. I have made a basic Spacewar game following a gamestate system. when the game load you press X and the game begins. you are meant to be able to fly a spaceship around but all i can get it to do is turn. i have some code which should fix the problem but i don't know where to insert it. Vector3 modelPosition = Vector3 .Zero; float modelRotation = 0.0f; //Position of the Camera in world space, for our view matrix Vector3 cameraPosition = new Vector3 (0.0f, 50.0f, 5000.0f); //Aspect ratio to use for the projection matrix float aspectRatio = 640.0f / 480.0f; anythough on where the code goes ...Show All
Visual Studio Tools for Office VSTO Deployment Models
I have a VSTO template demo that I would like to distribute to my company's sales team. I have an idea of how I would like to deploy my solution, but I am curious if anyone has had success deploying a similar model: -I would like the latest assemblies to be stored on a server. -I would like my sales team to be able to run the template locally on their machine using the server assemblies. -This would involve setup for both the server, and the client (sales person) machine. -Right now, I am stuck trying to create a setup application for the client machines. I have not been able   ...Show All
Windows Forms Change default icon on the application's exe file??
I have been searching for the answer for this problem for a while now. I have been going through the settings without no luck at all. I have found out how to: * change the icon on the application window's left upper corner * set the icon that's showing in add/remove programs dialog * change the icon on a shortcut placed on the users desctop (by adding the icon to the programfolder and then change the shortcut's icon-property to that icon)... I hope that is how it is supposed to be done ! But how do I change the default icon (white with blue border) on the application's exe file that is outputted to the programfolder by the installer project I have added the icon i want to use in app.rc by using the "Resource View"-windo ...Show All
.NET Development HELP ME!!! Need to update database from dataset bound to a datagridview!!
Hey guys, I'm still new to C# and have not coded for about 4 years (and that was c++ and I never touched databases or SQL) I have been developing a piece of simple software that uploads a .csv file into a dataset and then binds a datatable from that dataset to a datagridview control. This is fine and works ok. However, once changes are made to the Datagridview (and thus I presume to the datatable in the dataset as its bound to the datagridview), I then want to update the database with the updated datatable. However, when I call the update method for my OdbcDataAdapter object, it tells me that Update requires a valid UpdateCommand when passed DataRow collection with modified rows. I think I understand that in order to update the database ...Show All
Visual Studio Express Editions TextBox NOT being visibly updated
Hi Guys, I need some help if a kind someone has a spare moment. :) I am fairly new to VB Express 2005 (coming from MS Access) and I've just constructed a small starter program to print a currency rate that is received via an API. Now I receive the rate and assign to the text box via the following Public Overrides Sub handle(ByVal ei As fxEventInfo, ByVal em As fxEventManager) Dim rei As fxRateEventInfo = CType(ei, fxRateEventInfo) If rei.Pair.Pair = "EUR/USD" Then EURRate.EURTextBox.Text = rei.Tick.Bid.ToString &nb ...Show All
Visual Basic Invisible starting form
How can I make invisible the starting form of my application (in the form designer there is not the invisible property) thank you everybody! thank you, combining it with the showintaskbar property works, but you know that's not the way you do it ...Show All
