Mark Shoesmith's Q&A profile
Visual C# How add row to dataset
I have a WinForm with a grid on it. I would like to add 2 rows to the grid using the dataset. I would like to have this happen when I click a button. Upon adding each row I would like to put a value in a column called InvNum. My dataset is called DSInvoices and the table I am intersted in in this dataset is called Hours. The instance of the dataset on my form is called dSInvoices. Could someone tell me what code do I need in the click even ...Show All
Visual Studio Team System Cannot deploy ASP.Net Web Service on my TFS Server ???
I am trying to deploy an ASP.Net Web Service project to the same server that I have TFS on. This was a freshly formatted server that has had just TFS and its prerequisites installed. In my solution I added a web deployment project, added the content files of my web service to it, and compiled everything. When I take the resulting msi and install it on my dev machine (or any other machine) to the default web site (new virtual directory called ...Show All
Visual Studio 2008 (Pre-release) security exception with WCF service
I've a WCF service hosted by IIS. When I try to use the service in a WPF Web Browser Application I get a security exception: System.Security.SecurityException: That assembly does not allow partially trusted callers. How can I solve this I've read in other threads that WCF requires full trust. It doesn't make any sense for me. Isn't WCF supposed to unify everything related to services Why exclude partial tr ...Show All
.NET Development return an object from web services
Hi, It is a basic question:) I searched the previous post but I still do not get it. So I hope someone can help me out here. I have a simple custom class called 'WorkOrder'. using System; namespace WorkOrderService { public class WorkOrder { private int customerID; private string customerName; private string addressStreet; private string addressCity; &nbs ...Show All
Windows Forms Simple Add New Record
I have a simple win form which has a few text fields bound to my dataset i designed in the dataset designer. I am able to view, edit, and delete records no problem using the bindingsource.EndEdit() and the tableAdapter.Update() or Delete(). However i am at a loss when it comes to adding a new record to the database. I have spend days looking at articles on the internet but very few cover the inserting of data from a databound form. Here ...Show All
Windows Forms How to programatically change system color settings
Is there a way in a Windows Forms C# program to programatically change the system colors for the current context Like setting the Control color property in the SystemColors namespace during program initialization to a certain value, which would allow all&nbs ...Show All
Windows Forms SqlClientPermission
OK.....I have been searching and haven't found much helpful info on this topic. I am hosting a winform (user control) on a website. The form makes a call to a stored procedure...: Public Function getxxxxx() as dataset ...Show All
.NET Development VS2005 Dataset Designer Bug?
Hi I seem to be having an issue deleting datacolumns from a datatable created using the dataset designer (hope that's clear!). I have created a dataset with two datatables based on SQL Server 2000 tables. I can't seem to delete any of the datacolumns that make up the datatable. I can change names, modify, etc but if I try and delete the datacolumn I get the following error message: Failed to delete object(s)'{0}'. {1}. The only optio ...Show All
SQL Server PIVOT question
I have a basic table consisting of several thousand records. Im trying to generate a pivot query for a report. the table consists of records, each of which has a recieved date ( small date time ) and a tranactioncount ( int ) . Im looking to generate a PIVOT to show the show the month and year counts for the files recieved ie YEAR | JAN FEB MAR APR etc 2004 ! 2 34 67 43 2005 | 12 2 3 1 can anybody ex ...Show All
Visual C# Passing array into Constructor
Hey guys, I'm using C# 2.0 and thought I would take advantage of the new params keyword (I might not even need it if someone can show me another way). I'm making a custom class that handles files that our customers upload via the upload control. I want to only allow certain types of files to be uploaded, and was going to leave this up to the consumer of this object to specify in the contructor what file types they would like to allow from a p ...Show All
Visual Basic StreamReader
Hello, I’m trying to create a program will supply information for variables from a text file, so that as the possibilities change, a simple text file will need to be amended, rather than rewriting the original code. I am reading about FileStream and StreamReader, which seem like just the ticket. For instance, if I wanted to populate a TextBox with items I wrote in a text file, such as: Tom Mike Jim Jean I t ...Show All
.NET Development COM vs Component
Hi, I am looking at developing a component within .Net which can be distributed to non-Microsoft (Java, C, Delphi) design environments. Traditionally, this would be performed through distributing the code as a COM. According to Microsoft's website, it is suggested support for COM is being phased out, and all future development work should be done as a component. Since components appear to be incompatible with non-Microsoft design environme ...Show All
Visual Studio Deploy web app with ReportViewer to hosted site embedded mode
I'm using a ReportViewer control in an .aspx page using ASP.NET 2.0 in Visual Studio 2005 Beta2. I want to deploy this ReportViewer control to my hosted site at WebHost4Life in "local" or "embedded" mode. My report runs fine on my development machine. But when I deploy it to my hosted website at WebHost4Life, I'm was getting this error. Parser Error Message: Could not load file or assembly 'Microsoft.ReportViewer.Web ...Show All
Visual Studio Express Editions vs_setup.ms_ not 'expanded'. - VBasic Express
I downloaded the VC++ Express Beta 2 image and burned it to a CD. Then I ran the setup.exe from the CD. The install failed because the image had the file mentioned in the subject header, not it converted form, *.msi. I used IsoBuster to install the image and then expanded the vs_setup.ms_ file to vs_setup.msi The install then proceeded normally. Hi, I have tried to install the VBasic Express edition on W ...Show All
Windows Forms How do I set the color of an InputBox scrollbar
Also, how do I get access to styling type properties of MessageBox and InputBox, the problem for me being that they are static methods of some class, and not objects themselves with readly accessible properties. Thanks in advance From the messagebox help: "The title, message, buttons, and icons displayed in the message box are determined by parameters that you pass to this method." There are lots of overloads ...Show All
