all groups > c# > april 2008 > threads for thursday april 24
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Reading data from a dataset
Posted by sweetiecakes at 4/24/2008 7:10:17 PM
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?... more >>
hide public property in propertygrid
Posted by J-L at 4/24/2008 6:06:51 PM
Hi,
I have a class with a public property that I don't want to display in
ma propertygrid.
Is is an attribute to hide this property ?
J-L
... more >>
How to write a .NET attribute which does just like ObsoleteAttribute...
Posted by AshokG at 4/24/2008 5:56:46 PM
Hi,
In .NET there is attribute named ObsoleteAttribute which is derived from
System.Attribute Class. This attribute when applied to a target (class or
method etc.) gives a compiler warning/error. I know we can write our own
attributes by inheriting the System.Attribute but I want to make i... more >>
Displaying high-res images in .NET?
Posted by Usenet User at 4/24/2008 5:48:51 PM
..NET 1.1/2.0
I have a need to display high-resolution scrollable images in a .NET
application (Windows Forms). One well known solution is to create a
Panel with AutoScroll set to "true" and then add a PictureBox or
another Panel to it, that is used to display the image.
The above approach ... more >>
Process List / Module List problem..
Posted by dogatemycomputer@gmail.com at 4/24/2008 5:42:15 PM
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... more >>
OleDB parameterized query for Access Database
Posted by bob at 4/24/2008 3:55:53 PM
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 bracket... more >>
weird behavior with static int
Posted by parez at 4/24/2008 3:49:35 PM
Hi,
GetNextSequenceNumber2 worked for me in a different class..
but now it does not work.. it does not increment..
will it not get incremented after the return?
private static int GetNextSequenceNumber1()
{
lock (padlock)
{
... more >>
Retrieving text printed in a stored procedure
Posted by Jan_Löhndorf at 4/24/2008 2:11:35 PM
Hi.
Is it possible to retrieve the text I printed in a stored procedure
using PRINT command when using C# SqlDataReader?
Any idea?
Thanks for every hint,
Jan... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
HttpWebRequest - data is truncated?
Posted by Logician at 4/24/2008 1:31:25 PM
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)
... more >>
Microsoft SQL Server Compact 3.5 (.NET Framework Data Provider for Microsoft SQL Server Compact 3.5)
Posted by Martin Racette at 4/24/2008 11:49:19 AM
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
I can create all the tables, a... more >>
newbie inheritance question
Posted by BillE at 4/24/2008 11:41:26 AM
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 nonst... more >>
Multiple Controls
Posted by Thom Little at 4/24/2008 11:06:33 AM
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 wh... more >>
Not getting status event from SmtpClient
Posted by Steve Barnett at 4/24/2008 10:39:40 AM
I'm trying to send emails using the SmtpClient class and, while the messages
get sent, I can't seem to get any status information to that effect. I've
hooked in to the SendCompleted event, but it never fires. Can anyone suggest
why or tell me how to find out whether the email was sent or not?
... more >>
Cannot convert lambda expression of type System.delegate because it is not a delegate type
Posted by Satish at 4/24/2008 10:06:19 AM
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
... more >>
how to get memory usage
Posted by auldh at 4/24/2008 10:00:01 AM
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 ... more >>
Threads debugging
Posted by Lubomir at 4/24/2008 9:59:01 AM
Hi,
I have the folloving code:
Public class MyForm : Form
{
……
void SomeMethod()
{
a = new Obj1(this);
Thread t = new Thread( new ThreadStart( a.CallMethod ) );
t.Start();
}
}
Class Obj1
{
Public Obj1(Form myForm)
{
parent = myForm;
}
Public void Cal... more >>
Adding a reference from the GAC.
Posted by Frank Rizzo at 4/24/2008 9:54:47 AM
Hello, an assembly I want to reference is installed in the GAC and
doesn't have a local copy (e.g. somewhere that is not
c:\windows\assembly...). How do I reference it from VS2005?... more >>
Determine if assembly is installed in the GAC
Posted by Cramer at 4/24/2008 9:32:55 AM
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 an... more >>
Determine currently loaded version of System.Xml.dll and Mscorlib.dll ?
Posted by MC at 4/24/2008 9:17:27 AM
Is there an easy way for a .NET application to determine the version of
Mscorlib.dll and System.Xml.dll that is is actually using?
Given that System.Xml.dll has been revised several times (within .NET 2.0),
I'm wanting to find out if my program is running in an up-to-date
environment.
Th... more >>
sql error message retrieval
Posted by rodchar at 4/24/2008 8:36:02 AM
hey all,
is there a way to have my stored procedure generate an error message that i
can catch in csharp?
thanks,
rodchar... more >>
Get the attribute of a class within this class
Posted by Michael at 4/24/2008 8:30:43 AM
Hello all,
using System;
namespace Test
{
[AttributeUsage(AttributeTargets.Class,
AllowMultiple = false)]
public class FactoryAttribute : System.Attribute
{
public string Identifier { get { return id_; } }
private string id_;
pu... more >>
Studio crashing when I try to select a data source
Posted by Coderer at 4/24/2008 8:17:24 AM
I have a project that I've been working on for a while, where several
forms use DataGridViews to represent database information. The forms
are .NET 2.0, in Studio 2005. For the past couple of days, whenever I
click the little arrow in the top-right corner to show the
DataGridView Tasks subwind... more >>
2 questions about array lists
Posted by Adam Sandler at 4/24/2008 8:04:04 AM
Hello,
I have 2 questions about using array lists.
1. I have a method which returns an arraylist. I'd like to put the
contents of what is returned into another arraylist:
ArrayList al = new ArrayList();
al.AddRange(obj.getArrayList());
The two lines above fail miserably.
2. Can th... more >>
convert double to string
Posted by Denis at 4/24/2008 7:45:34 AM
Hi,
I am trying to convert a double to a string. The problem the value of
the double may vary and I need to always the exact value without the
exponential and without rounding.
Example: double 0.00000000000000000000023 should be string
0.00000000000000000000023 and not 0.00 or 2.3-E24
I t... more >>
inherited forms
Posted by parez at 4/24/2008 7:21:16 AM
Hi,
I have a weird situation.
I have a base form for all my mdi child forms. I have added new
control to the base form in the recent past.. and they show up in the
new forms that i create. but i just realized that they dont show up in
my old forms, forms which were created before the contro... more >>
creating multiple variables with a loop
Posted by AMP at 4/24/2008 6:09:04 AM
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;
... more >>
Protecting code when distributing demo programs
Posted by _DD at 4/24/2008 5:14:26 AM
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,... more >>
LINQ. Is this select possible?
Posted by shapper at 4/24/2008 4:09:49 AM
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 <ul> and <li> HTML tags.
I am trying to solve 2... more >>
WCF, Typed Datasets and DataContracts
Posted by matthew-andrews@ntlworld.com at 4/24/2008 12:04:34 AM
Hi,
I'm new to this WCF world, and have attempted to create a WCF service
which takes a typed dataset as its data contract. I know this isn't
always put forward for interopability, but I'm working in a pure .Net
environment (.Net 3.0) and VS2005.
However, how do I get the client to populate... more >>
how to convert byte[] to object[]
Posted by EF@nospam.nospam at 4/24/2008 12:00:00 AM
Hi,
How do I convert a byte[] to an object[]?
I am trying to use IADs PutEx and the last parameter required a variant
array.
Thanks,
Alex
... more >>
|