all groups > dotnet framework > april 2008 > threads for april 15 - 21, 2008
Filter by week: 1 2 3 4 5
Binding a generic List to GridView
Posted by Andreas Hartje at 4/21/2008 7:22:41 PM
Hi there,
sorry for crossposting, it's getting late in the evening here in Europe :-(
I have a little problem binding a generic list to a GridView. The List gets
filled
with data from textboxes (via properties in class Person, see below) and I
want the grid to show each new set of textbox st... more >>
Problems Background Printing PDF from C# Application
Posted by lmttag at 4/21/2008 5:47:03 PM
Hello,
We are having a lot of problems trying to print a PDF file in the background
using a C# application that is executed via SQL Server Agent. The output
should be printed to a local printer (HP Color LaserJet 1600) connected via a
USB port.
We have a C# application that calls System... more >>
EIL Logging to Custom Event Log?
Posted by coconet at 4/21/2008 3:58:09 PM
Can anyone post an example of how to log to a custom (new) Event Log?
I don't want to use Application or System or any of the other built-in
ones. I want to write to a new log called "CustLog".
I think I just need to see what the .config snippet should look like,
right?
Thanks.
... more >>
How to Send a Socket Close Event in .NET Sockets
Posted by Phil at 4/21/2008 12:49:00 PM
How do I send a Socket Close Event in .NET Sockets?
Thanks,
Phil... more >>
Binding to a datagrid
Posted by Khan at 4/21/2008 9:13:52 AM
Ha all.
I have a my custom class with few strings. Then i have a List of
my custom class. I' m adding data to list with "mylist.Add(mycustmclass)"
I wnat to bind that list to a GridView but i get an exeption
" The data source for GridView with id 'GridView1' did not have any
properties or attr... more >>
Receiving Socket Close event in .NET Sockets
Posted by Phil at 4/21/2008 9:02:01 AM
How do you recognize a Socket Close event in .NET. From what I have read on
the internet, it is done by checking if the byte count is zero in the
EndReceive() callback function in an Asynchronous type of connection. What I
can't seem to find out is how you do this if you are using a Synchron... more >>
Duplicate 0xFF in Socket.Receive(Byte[])???
Posted by Michael R. Nelson at 4/21/2008 6:30:02 AM
I use Socket.Receive(Byte[]) to receive data in server from client over
TCP/IP. All byte values of 0xFF sent by client are showing up DUPLICATED in
server receive. In other words, if client sends [0xFF, 0x01], then server
receives [0xFF, 0xFF, 0x01]. It's as if bytes having values 0xFF are tre... more >>
Form not disposing due to lingering reference
Posted by David Rosenkranz at 4/21/2008 6:11:02 AM
Hi everyone,
i've got a problem with a Form, because it is not being disposed of when I
close the form. Nevertheless, callback methods registerd to the
"Form.Disposed" event of this very Form are being called. But when the
callback method are being executed the "Form.IsDisposed" property is... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
typed dataset
Posted by OlivierH at 4/20/2008 7:53:05 PM
Hi all,
I need to make a typed dataset cause i import a dataset from foxpro
I use this code
Dim oDbcommand As New SqlDataAdapter(Sql, Conn_SqlServer)
oDbcommand.MissingSchemaAction = MissingSchemaAction.AddWithKey
oDbcommand.Fill(Me.DataSet, Me.TableName)
My Problem is vs 2005 or Frame... more >>
Uri and the %2f and %5c escape codes.
Posted by Paul Linville at 4/20/2008 12:40:38 PM
We need to be able to use the following URL that is given to us by a test
harness.
hTTps://000.000.000.000:000/59B9F4F20E2911DDA2C7E519FDF7B25D;59B9F4F30E2911DDA2C79DE1971E1E45/@%5C%A1%38jzrF%88K6czQq%2A~%bc%e0HMn%027Cxh:Kc)R+z%0EAPySaroF%19b-0X2G%06F)%3du%c2%55eOQY%03DZd*:8cviSj.A~CYRe.H.$%4CM... more >>
Subclassing a Singleton C#
Posted by Jeff Louie at 4/19/2008 3:27:22 PM
If you must, here is some code:
http://www.geocities.com/jeff_louie/OOP/oop40.htm
Regards,
Jeff
*** Sent via Developersdex http://www.developersdex.com ***... more >>
ThreadPool.SetMaxThreads
Posted by Michael D. Ober at 4/19/2008 12:48:27 PM
Does the ThreadPool in framework 3.5 honor the SetMaxThreads method? The
reason I ask is that I started a program that queued 256 worker threads in
the threadpool and after a few minutes, task manager (and the console
output) showed all of them working. I have situations where I need to limi... more >>
performance - xf.server vs .net 3.5 async sockets
Posted by Gregory Stanskiy at 4/19/2008 10:24:32 AM
Hi, I know that Socket class performed poorly in .NET 2.0, was it fixed in .NET 3.5?
Can you give an expert advice regarding xf.server component(http://www.kodart.com) that pretends to be a better solution for network programming in .net
Thanks,
Gregory... more >>
cs0165 - the error that keeps on giving
Posted by ritterhaus@yahoo.com at 4/18/2008 4:42:43 PM
I'm an unashamed C coder learning C#, and in my first 24 hours with
the language I've already found my first TIDL (thing I don't like),
the inane "error cs0165." I'm sure that this has been discussed and
argued over at great length, but I'm having trouble finding useful
information about why thi... more >>
DateTime Adding Parse Help
Posted by coconet at 4/18/2008 3:41:20 PM
I have a Datetime of "2008-04-17 00:00:00.000" and a Datetime of
"2008-04-18 16:55:28.000", and I need to join them to be
"2008-04-17 16:55:28.000"
What is the best way to parse that?
Thanks.
... more >>
catching VSYNC or BLANK
Posted by MarcG at 4/18/2008 1:31:00 PM
Is it possible to catch these video signals from C#? I want to control
internal task timing with display updates.
Thx
Marc... more >>
Are primitive types like bool threadsafe ?
Posted by Ramesh at 4/18/2008 1:20:00 PM
Are primitive types like bool threadsafe ? Or do we need to use
synchronization when multiple threads concurrently access a value type ?
Thanks,
Ramesh... more >>
Setup project - Silent Uninstall.
Posted by Lamrin at 4/18/2008 6:50:01 AM
Here's the context. We have a setup program that will deploy an application
to our clients. The exe deletes all of its files when the user exists from
the application (I know this is odd, it's a requirement of the project). To
run the application again, the user must run the msi twice. The... more >>
Finding files - Directory.GetFiles not sufficient
Posted by KoenT at 4/18/2008 6:19:02 AM
Hi,
I need a fast way to enumerate files in a directory hierarchy.
I have tried the Directory.GetFiles routine with search option set to
AllDirectories, because it seemed to be useful for this task, but it has some
limitations:
- whenever a subdirectory is encountered that is not accessible f... more >>
.Net framework 2.0 for vista
Posted by benj at 4/18/2008 2:14:00 AM
Hello all,
i'm a system administrator and have some problems using specific software
for windows Vista Business.
This software needs .Net framework 2.0 to work, version 1.1 and 3.5 red.
wont work.
But problem is that i'm not able to find a compatible download for vista.
Al nthe version... more >>
How do references to exes work?
Posted by Siegfried Heintze at 4/17/2008 2:35:00 PM
I wrote a console mode program demo program and I was lazy and I just pasted
in the source for dumpObject.
Then I wrote another demo program and said to myself: I should not paste in
that code again. So I added a reference to the first console mode program and
lo and behold, it worked! I co... more >>
Will Collection.ToArray() function keep the order of its items?
Posted by Andrew at 4/17/2008 12:51:00 PM
Hello, friends,
We have a .net 2005 app. I need to pass 2 arrays to a method:
UserInfoUpdate(dataType1[] array1, dataTyep2[] array2).
The items in these 2 arrays have 1-1 relations, i.e., the first item in
array1 must be updated together with the first item in array 2, vice versa,
and t... more >>
COMException after upgrade to .Net 3.5
Posted by Jesse Hansen at 4/17/2008 10:23:00 AM
We have an in-house developed application that uses a 3rd party COM control.
We recently upgraded the application to .Net 3.5. Everything runs smoothly on
Windows XP. We had previously tried the .Net 2.0 version on Windows Vista,
and it runs just fine as long as you have not. However, when we ... more >>
Error on Publish (vb2005)
Posted by Will at 4/17/2008 6:44:00 AM
I have published many versions of this app before, now I am getting this error:
Failed to copy file 'C:\Documents and Settings\Me\My Documents\Visual Studio
2005\Projects\MyProj\bin\Debug\MyProj.publish\setup.exe' to
'\\myserver\projfoldr\setup.exe'. Unable to add 'setup.exe' to the Web. The... more >>
Strange exception. Help needed.
Posted by Martin Christiansen at 4/16/2008 9:40:07 PM
Hi, everyone. I need a bit help here:
I have written an application for my company. That application runs at my
company's customers as part of a larger solution. Now some customers
complain that the application occasionally crashes and/or refuses to start
up.
Here are som facts about t... more >>
wcf call with a ref type
Posted by Roy at 4/16/2008 8:10:00 PM
I have a class object as a data member used in a WCF service contract. I
create the object at the client side and pass it (serialize and deserialize)
to the service side. If I modify it at the service side, is the modification
being transfered back to the client side just like a normal functio... more >>
operation has timed out error
Posted by AVL at 4/16/2008 7:51:04 AM
Hi,
I'm working on a windows application. My app uses web service to connect
to the sql server db. The app and web service are running fine on my
development environment but
whe deployed on to production server, i'm receving the
'operation has timed error'.
I've tried all the possible sol... more >>
Variable name with hyphen / dash
Posted by Matty J at 4/15/2008 5:34:32 PM
Hi
Is it possible to put a hyphen in a variable name?
I'm creating a DataContract for a WCF service and ideally I would like
the output XML to have hyphens in the variable names. Is there any way
to do this?
Thanks
Matt... more >>
Capture WebResponse to MemoryStream?
Posted by coconet at 4/15/2008 4:26:05 PM
..NET 3.5
I have an HttpWebResponse.GetReponseStream() that I iterate over. Well
now it looks like I'll have to iterate over it twice. And that type of
stream does not support Seek() back to the beginning.
So I'd like to copy it to a MemoryStream and instead iterate over that
two times. Can a... more >>
outlook back up failure
Posted by george at 4/15/2008 4:09:00 PM
I recently had to return my pc for fault diagnosis. The engineer told me that
had done a complete back up before replacing the hard drive. However I have
not been able to recover outlook: contacts, diary or e mails from te
partitioned back file he created and he can`t help.. a colleague told ... more >>
uninstallin .net 2.0
Posted by WillisTheAdmin1 at 4/15/2008 2:13:02 PM
I am having problems with quickbooks workin with .net 2.0
then qb fix is to uninstall and reinstall. i cant uninstall or repair the
..net 2.0 that is installed on my server. this is causeing huge problems. i
have also tried installing newer versions of .net. i get an error every time
i tr... more >>
GC.Collect() not cleaning memory, how to find out what references to lots of memory still exist?
Posted by DR at 4/15/2008 2:03:01 PM
GC.Collect() not cleaning memory, how to find out what references to lots of
memory still exist?
When all my processign is done i set everything to null and then:
GC.Collect();
and then
GC.WaitForPendingFinalizers();
but it still shows that my process takes 400 MB of memory. Is there any ea... more >>
DateTime.Now.toString("yyyyMMdd") depending on CultureInfo?
Posted by Frank Hauptlorenz at 4/15/2008 12:25:22 PM
Hi,
I have this instruction mentioned at top running on an japanese client.
Strangely this renders to "200809" (just year and day).
Has anybody an idea?
Thank you,
Frank... more >>
DCOM use over WAN
Posted by mahmad at 4/15/2008 7:38:01 AM
Hi,
We have a database hosted in our Uk which office which uses DCOM to
communicate between server and client.
I want to allow users from our US office to use this package, so what ports
would need to be enabled on the firewalls and how would i setup the DCOM at
both ends.
I have never ... more >>
|