473,788 Members | 2,726 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

4
2,041
thread by: =?Utf-8?B?QXJtaW4gR2FsbGlrZXI=?= | last post Jun 27 '08 by: =?Utf-8?B?QXJtaW4gR2FsbGlrZXI=?=
Hi I wrote a test for a workflow. Unfortunately my assertions in the eventhandler which I set up during initialization, fail in every case... What's the problem?? public void MyTestInitialize() { workflowRuntime.WorkflowCompleted += delegate(object
3
1,745
thread by: shapper | last post Jun 27 '08 by: Frans Bouma [C# MVP]
Hello, I created an SQL table using the Adjacency Model described here: http://www.sqllessons.com/categories.html By using this model I am able to hold many categories and subcategories in one table. I then need to create a Site Map using <uland <liHTML tags.
0
955
thread by: Peted | last post Jun 27 '08 by: Peted
Hi, im having some trouble with reg expression pattern matching for something i think should be a straightforward test. Im validating the text being entered in a winforms textbox and i need to bring up a message in a validation test if these patterns are found in the text enetered in the text box.
2
3,593
thread by: Logician | last post Jun 27 '08 by: Logician
I am looking for some help about the method below which partly works. The problem is that the data returned is truncated in that the returned data has missing bytes near the beginning of the data. I am using VS 2005 and C#. Has anyone got any ideas? public string getWebPage(string url) { // add error handling
1
2,685
thread by: Cramer | last post Jun 27 '08 by: Cramer
How can I programmatically read the public key token, Version, and Culture values of an assembly that is not yet installed into the GAC, and all I have is the assembly's containing dll file on disk? I have searched, but the closest thing I found is the FileVersionInfo class that lets me get at the *file* version (which isn't necessarily the...
0
1,694
thread by: serhio | last post Jun 27 '08 by: serhio
Hello, I have a problem with Microsoft.Office.Interop.Excel.Range.Group() method. The problem is that I can call this method only 7 times, before it throws me an exception. I don't understand quite well why this happens, and for witch documents this affirmation is valid, but the problem exists, probably,
0
1,427
thread by: dogatemycomputer | last post Jun 27 '08 by: dogatemycomputer
I'm new to C#. I am using the following C# method to populate a TreeView control. If you call this method once during the life of form then it works perfectly. If you call the method a second time (without closing and reloading the app) then the process list populates the TreeView control with varying degrees of success. Sometimes the...
2
1,952
thread by: Martin Racette | last post Jun 27 '08 by: Martin Racette
Hi, I'm trying to make a programme that will use the above mentioned database, but I can not find how to create any relation between the tables, all there is in the database explorer is DATA CONNECTIONS DATABASE1.SDF TABLES REPLICATION
7
7,623
thread by: Cramer | last post Jun 27 '08 by: parez
I'm wondering if there is an easy way to programmatically determine if an assembly is installed in the GAC. This would be similar to our ability to easily determine if a file exists (File.Exists(path)) - but for an assembly, of a particular version, etc in the GAC. I have googled this and failed to find anything useful. Thanks
2
914
thread by: =?Utf-8?B?RXJpayBSZWl0ZXI=?= | last post Jun 27 '08 by: =?Utf-8?B?RXJpayBSZWl0ZXI=?=
I have rather odd problem and I am not sure how to go about debugging it. I have an MDI application that I am deploying on the local intranet to about 20 users using ClickOnce deployment. I am just using the default setting in Visual Studio 2005 to deploy the app to an intranet web server. It is a full trust application. After I published...
2
2,723
thread by: bob | last post Jun 27 '08 by: bob
Hi, Its been a long time since I have had the joy of feeding parameterized query CommandText strings to an OleDBCommand object. I have tried all manner of versions of " update foo set bar = @bar where id = @id" I have wrapped the fields in square brackets and the parameters in square brackets and all manner of other strange variations....
9
1,280
thread by: BillE | last post Jun 27 '08 by: Jeff Louie
I have a C# console application. The class which contains the "static void Main()" method inherits from a base class. The base class contains a function GetSomething() When I try to call this function GetSomething from Main(), I get the error An object reference is required for the nonstatic field, method, or property "GetSomething()"
3
3,383
thread by: =?Utf-8?B?YXVsZGg=?= | last post Jun 27 '08 by: =?Utf-8?B?YXVsZGg=?=
i have need to build a program in C# that will collect specific data for a service on remote machines. i see how i can use "win32_process" to get threadcount and handlecount of a service. but i don't see how to get the memory usage as seen in the task manager. i have a service that runs on multiple servers. i need to get a snap shot of...
0
870
thread by: Tony Johansson | last post Jun 27 '08 by: Tony Johansson
Hello! Here I display all the existing rows in the products table in the database using the TableAdapter fill method to put these rows into the DataTable object. private void quryButton_Click(object sender, EventArgs e) { NorthwindDataSetTableAdapters.ProductsTableAdapter productsTA = new...
6
7,682
thread by: CSharper | last post Jun 27 '08 by: Jon Skeet [C# MVP]
I am trying to use the following; I have an array with bunch of values in it. I am trying to find a value that contains part of the string I am passing eg string array = {"help","Csharp rocks"} if (array.Contains<string>("Csharp")) { //here I want to get the actual string like "Csharp rocks" string str = array.First<string>(); //Here...
5
5,717
thread by: Satish | last post Jun 27 '08 by: Satish
When i compile this function I get the error Cannot convert lambda expression of type System.delegate because it is not a delegate type. private void SetStatus(string status) { if (this.InvokeRequired) { this.Invoke( status =SetStatus(status)); } else
18
4,298
thread by: =?Utf-8?B?VHJlY2l1cw==?= | last post Jun 27 '08 by: Peter Duniho
Hello, Newsgroupians: I've a question regarding dictionaries. I have an array elements that I created, and I'm trying to sort those elements into various sections. Here's the template of my data type. DT { int nSize; ...
2
1,162
thread by: _DD | last post Jun 27 '08 by: Peter Duniho
Is there any practical way to protect .NET demo programs from being reverse-engineered? This will be for a one-shot thing, and I'm far from making any money on this, so I'd prefer an economical solution if that's available. I'm thinking a combination of code 'obfuscation' and maybe a timeout, but I don't know what is available for either....
7
1,422
thread by: colin | last post Jun 27 '08 by: colin
Hi, How can I use a delegate that I can set to call a non static function but of any instance of the class ? eg class TypeTeader<T> { delegate T readDelegate<T>();
6
5,635
thread by: AMP | last post Jun 27 '08 by: AMP
Hello, I am trying to do the following with a loop because the amount of channels can change. uint Chan_1 = 0; uint Chan_2 = 0; uint Chan_3 = 0; uint Chan_4 = 0; uint Chan_5 = 0; uint Chan_6 = 0; uint Chan_7 = 0;
1
1,517
thread by: sweetiecakes | last post Jun 27 '08 by: =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?=
Simple Googling only results filling controls with information -- not this. The scenario is, that I have a whole table in my dataset. I know the ID (autoincrementing integer field) of the row to grab data from in the dataset. How do I get all the data of that row in the dataset?
0
1,329
thread by: Marc Gravell | last post Jun 27 '08 by: Marc Gravell
Marc
0
235
thread by: Tom Shelton | last post Jun 27 '08 by: Tom Shelton
On 2008-04-24, J-L <alphomega_sansca_@free.frwrote: I believe if you apply the BrowseableAttribute set to false to the property, then it won't show in the property grid: public in MyProperty{get;set;} HTH
0
1,289
thread by: =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?= | last post Jun 27 '08 by: =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?=
Assuming you mean a control which has a runtime only property, then apply the following attribute to the property: -- Ciaran O''Donnell http://wannabedeveloper.spaces.live.com
3
949
thread by: Thom Little | last post Jun 27 '08 by: Thom Little
Using Windows Form C# in .NET 3.5 I have 12 controls on a form. When one of them is clicked I want a common event handler to do the processing and substitute a single property on the form. There is a different value for the property in each control. Is there a standard way to determine which control was clicked and to make a...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.