all groups > c# > april 2008 > threads for thursday april 17
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
LINQ dataContext reports wrong parameter type?
Posted by Andy B at 4/17/2008 8:20:11 PM
Hi...
I have an sql server 2005 database that has a table called TestXml in it.
The table has the columns ID (identity, int) and MyXml(xml). I created a
stored proc on the server to insert a row into the table. It looks like
this:
create procedure InsertRow(@xmlDocument xml)
as
insert ... more >>
ProcessStartInfo adobe reader file- can not open
Posted by sunny at 4/17/2008 7:32:33 PM
Hi all
We have a pdf user manual which we open when client clicks on help
button. some of our clients have the issue that it does not open the
file and it says file not found. checked with istaller and everything.
i wonder why it would do so?? please help out
code to run the adobe reader:
... more >>
DLL Outputg path problem
Posted by Yoavo at 4/17/2008 4:36:35 PM
Hi,
I have an application which contains an .exe and a .dll.
I want that the DLL will be built in a different location than the .exe.
I set its output path in the "Build" property tab to a different folder.
I build the solusion and everything seems to be as I wanted.
When I added a dependency b... more >>
Help with an Aggregate Calculation Sum( DateTime ) in a DataTable
Posted by edcha at 4/17/2008 4:03:41 PM
I am trying to use the following Aggregate Calculation.
string time = trabajadoresTable.Compute ( "Sum(DateTime)" ,
"") .ToString();
I need to sum the hours in a column with type DateTime.
If they be numbers this work good
"trabajadoresTable.Compute("Sum(pago)", "")"
But with the type DateT... more >>
String array intersections
Posted by kevinmr@optonline.net at 4/17/2008 12:51:45 PM
To all -
I have two arrays of strings one of length M and the other of length
N; N > M. Ther arrays will be on the order of 1 million for N array
and ~50000 for the M array. Can someone describe to me a fast
algorithm to find the intersection of the arrays? Currently I am using
ArrayList in V... more >>
Accesing SQL View form C# asp.net
Posted by Carlos at 4/17/2008 12:46:25 PM
When I try to access a SQL Saved view calleed FilteredLead I do not get
anythin back on asp.net if I run same SQL command on the SQL Editor I get
all my results. Is it any way to use views in C# diffrent than tables ?
See my code
MyString = "SELECT * from FilteredLead";
... more >>
trouble posting to this group?
Posted by parez at 4/17/2008 12:03:44 PM
is there anyone else having trouble replying tot his group... more >>
Buggy Datagridview?
Posted by KCBTDev at 4/17/2008 11:58:01 AM
I and another developer have created an app that uses a datagridview to
display market information. The datagridview is fed with messages from
another app on a server that feeds the messages through msmq to the display
app.
The problem is that when writing to the rows values from row x c... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Image transparent and a button
Posted by djamila at 4/17/2008 11:37:51 AM
Hello,
I have a program in C# that contains a form with one picture box. This
picture box contains two images: One background image and a second
image as a transparent in order to see the first image (the background
image).
The program works well, but there is a small problem that I couldn=... more >>
Serialize XML is broken?
Posted by Andy B at 4/17/2008 11:07:05 AM
I have the following code in a default.aspx web form page_load event. There
seems to be a problem with line 5 (NewsArticle.Date = line).
//create a news article
NewsArticle NewsArticle = new NewsArticle();
NewsArticle.Body = "This is a test news article...";
NewsArticle.Title = "Testin... more >>
Why can't a static member be abstract or an override?
Posted by Owen Blacker at 4/17/2008 11:00:23 AM
Ok, dumb question, I know, but I just can't get my head round it.
I'm writing a base validator class, let's call it abstract BaseFoo.
I'm also writing two implementation classes, let's call them Bar and
Quux. I want them all to share a static field that defines a regular
expression pattern use... more >>
.Net 2.0 C# and HMTL table question
Posted by Jason Huang at 4/17/2008 10:55:40 AM
Hi,
In my .Net 2.0 C# web form WForm1, I have a table Table1 and it's size is
W800 H400, all other controls and stuff are inside the Table1.
When I open the WForm1 in browser, I would like to let the Table1 show in
the middle of the browser regardless of the screen size is 1024*768 or any
... more >>
start/stop 'RemoteAccess' in Vista
Posted by Uwe Domschke at 4/17/2008 9:38:43 AM
I had to start and stop the service "RemoteAccess". For this I use the
'ServiceController'. In XP is this no problem, but in VISTA I get "access
denied".
Had anybody an idea?
Uwe
... more >>
.NET 2.0 apps think they're being run from the Internet, but they're being run from the intranet...
Posted by WATYF at 4/17/2008 9:36:15 AM
I have several .NET apps that run from network shares (and which have
done so for years). In order to make this possible, I increased the
LocalIntranet zone trust level to "FullTrust". This has always worked
just fine.
Recently, and for reasons unknown, all of my apps that run from the
intr... more >>
Compiler Error CS0702
Posted by PIEBALD at 4/17/2008 9:31:03 AM
I'd really like to be able to constrain a generic type to System.Enum or,
better, enum. But of course that results in "Compiler Error CS0702".
So far I've been checking the type parameter at runtime and throwing an
exception if the provided type is not an enum. That works, but it just
doesn... more >>
ClickOnce alternative
Posted by parez at 4/17/2008 8:01:59 AM
Hi,
What is a good alternative to clickonce that allows partial or delta
updates to the application.
ie if only one dll changes, then the update should only download that
particular dll.
Is this possible in clickonce?
TIA... more >>
Help needed regarding: Application.DoEvents() throws object reference not set error
Posted by Bharathi Harshavardhan at 4/17/2008 6:51:32 AM
Hi,
I have an application in which I have used Application.DoEvents()
method in the click event of a NumericUpDown. This particular method
is throwing "Object reference not set to an instance of an object"
error.. Does anyone have any idea about it?
Regards,
Bharathi... more >>
ClickOnce Deployment
Posted by Christian Havel at 4/17/2008 6:49:01 AM
Hi,
I want to deploy my managed COM object (DLL, .NET 2.0) using ClickOnce
Deployment.
In the project properties, tab "Signing" the checkbox "Sign the ClickOnce
manifest" is disabled.
Why?
Christian... more >>
How to link .CHM to windows application
Posted by aagarwal8@gmail.com at 4/17/2008 5:47:56 AM
Hi,
I have a windows applicationm which can open seversal forms from a
main form. All the forms that are opened, from main form (as well the
main form) have a link to the help (.chm) file.
I am using System.Diagnostics.Process.Start(<help_file_path>) to
display the help file. But the proble... more >>
.NET remoting - using code config works / using config does not ( but listening )
Posted by Piotrekk at 4/17/2008 5:41:01 AM
Hi
I have a strange problem. Here is some input data before I describe
the problem.
1. RemoteClass (Mathematica) is compiled into dll and put to GAC
2. Server remoting configuration is done by code.
//used in case of code configuration
TcpChannel channel = new TcpChannel(5000);
ChannelS... more >>
Is a binary-serialized DataSet versioning tolerant?
Posted by Martin Koch at 4/17/2008 4:41:01 AM
1st I serialize a DataSet (contains 14 DataTables) into file, with
BinaryFormatter.
2nd I change some columns in a DataTable.
3rd When I now Deserialize the DataSet from bin file got I problems ??
Thanks in advance
... more >>
using and error trapping
Posted by Mike P at 4/17/2008 3:58:38 AM
I've just started using the 'using' keyword for database connections
etc. Is it not possible to use try catch blocks with using? And if so,
how do you trap errors when using using?
*** Sent via Developersdex http://www.developersdex.com ***... more >>
returning interfaces
Posted by Mike P at 4/17/2008 3:56:31 AM
In some of the code I am looking at on a sample website, a lot of
methods are returning interfaces such as IDataReader instead of a plain
DataReader. Why would you want to do this?
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Slow socket on some machines
Posted by bruno.wouters@gmail.com at 4/17/2008 3:40:34 AM
Void pointer and structure pointer
Posted by Nasif at 4/17/2008 3:02:59 AM
Dear All
I am using a C++ DLL which has two function , one returns a void
pointer, other returns a pointer to structure .But I doing my project
on C#.
Which data types in C# should I use to catch the void pointer and
pointer to structure?
Please answer.
Thanks in advance
Nasif... more >>
TCP listener servis
Posted by erdogan at 4/17/2008 12:57:00 AM
Hi,
I have Multi-threaded TCPListener.
I can connect to listener from local sistem and remote sistem.
I turned it to windows servis.
I can connect to listener via telnet from local sistem but i can't connect
remote sistem.
I used for loading servis installutil.exe
My Oparationg sistem: ... more >>
|