all groups > c# > may 2006 > threads for sunday may 14
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 31
Can i call an UDF (user defined function ) on an MSDE2000 server from code ?
Posted by Sagaert Johan at 5/14/2006 10:56:32 PM
Hi
How can i call an UDF in an SQL database ? ,i tried ExecuteScalar ,but
without luck
Johan
... more >>
List<T> and IList interface
Posted by Rene at 5/14/2006 10:31:03 PM
According to the documentation, the List<T> type explicitly implements the
non generic IList interface.
The problem is that no matter how hard I look, I am not able to find this
implemetion on the List<T> type. Could some one tell me where can I find the
IList implementation?
Please note... more >>
How to get the domain name
Posted by None at 5/14/2006 10:17:57 PM
Hi,
If anybody knows how to get the domain name(only domain name) of the
system pls let me know.
Thanks and Regards,
Vinothkumar B
bvinoth@tvsinfotech.com
... more >>
StackFrame is inconsistent in Debug version and Release version
Posted by HCF_15 at 5/14/2006 9:15:18 PM
Hi all,
I have a small piece of code to use StackFrame to GetMethod, I found it is
inconsistent in Debug version and Release version, is there anything I am
doing wrong?
Here is code, build in Debug and Release version, you will get different
results.
My env. is VS 2005 on XP with SP2.
... more >>
Static property of type parameter - is this a CLR or C# limitation?
Posted by Ole Nielsby at 5/14/2006 8:12:40 PM
Here comes a generic class with a static property.
Let's say they are exotic singleton pets.
abstract class Pet {...}
abstract class SharedPet<T>: Pet
where T: SharedPet<T>, new()
{
private static T singleton = new T();
public T Singleton {get {return singleton;}}
}
clas... more >>
Can't get hold of resources in .resx files
Posted by Shimon Sim at 5/14/2006 8:02:24 PM
I just started trying localization for my web application.
I have class library as part of solution so I need to globalize / localize
this component too.
I created resource file in the assembly itself - Account.resx - the one that
VS offers.
And wrote code like this.
static ResourceManag... more >>
C# 1 - PInvoke - Pinning structures via GCHandle
Posted by steve at 5/14/2006 7:35:01 PM
Hi all,
I want to understand more about how the pinvoke pinning process works.
I'm writing some code that calls DeviceIoControl.
DeviceIoControl provides a generic interface to device drivers.
Its signature is deliberately open-ended so that it can be highly generic.
Refer SDK for more.
... more >>
Exception
Posted by PiotrKolodziej at 5/14/2006 6:40:11 PM
Hi.
I have hugie problem with exception. I need to debug button1_Click code,
after openfiledialog is called but i can't because of this:
System.Threading.ThreadStateException was unhandled
Message="Current thread must be set to single thread apartment (STA) mode
before OLE calls can be made... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Generic constraints
Posted by Mark Wilden at 5/14/2006 5:41:58 PM
Can someone explain why this code won't compile?
interface IProductCode {}
class ProductCode : IProductCode {}
class Product<T,C>
where T: IProductCode
where C: ProductCode, new()
{
public T New()
{
return new C();
}
}
Every C is-a T, right? So why can't a C be conve... more >>
Custom ListView selection style like VS2005 Menus
Posted by DZ at 5/14/2006 5:35:04 PM
Help!
I wish to have the selection bar on a ListView control look like the
selection bar on menus of VS2005.
ie. Navy blue border with a light blue transparent background which
shows the selected text behind.
Anyone have some code to do this??
thanks
... more >>
Selecting events
Posted by Tina at 5/14/2006 5:23:40 PM
I'm a VB.Net developer learning C# so this is another newbie question....
(using 1.1)
I posted a question about how to paste definitions for events in C# because
in VB we use the vs.net left dropdown for the object (Page, btnpush, etc)
and the right dropdown for the event we want. Simple!... more >>
Parellel interface and class hierarchies
Posted by Mark Wilden at 5/14/2006 5:07:20 PM
Take a class, RateTableProductCode. It needs to share implementation with
other classes, so the common code is placed in a ProductCode class, from
which it derives. There needs to be an IRateTableProductCode interface so
that objects can be mocked for testing. That interface also has a common ... more >>
why need constraints?
Posted by Ian Lazarus at 5/14/2006 3:21:58 PM
Why are constraints needed? In C++, an attempt to use a non-existing method
will cause a compiler error. Isn't that true in C# also?
... more >>
System wide hot key overriding
Posted by Matt at 5/14/2006 2:15:22 PM
I am trying to write a program to basicly mask the keys of a game I
play (Final Fantasy XI Online) This game was made with consoles in mind
and the control and configuration options on PC's are simply no good.
What I aim to do is create an app that registers system wide hot keys
(I know how to... more >>
GetType() ??
Posted by Erland at 5/14/2006 1:46:41 PM
Hi,
I've been trying to load a type and and get all of the methods within
that type. I finally made it happen by using typeof, but im really
stumped how could one implement the same with Type.GetType(). I have
read the documentation and it says that this looks currently executing
assembly and... more >>
SortedList<> and SortedDictionary<>
Posted by Michael Primeaux at 5/14/2006 1:06:39 PM
Why does the generic SortedList and generic SortedDictionary not define any
virtual members?
Thanks,
Michael
... more >>
Mouse Pointer turns to hour glass
Posted by diatom NO[at]SPAM newsgroup.nospam at 5/14/2006 9:39:02 AM
Hello,
I have a custom dialog. When the user hits the 'Ok' button, I want my mouse
to turn into an hourglass while its performing work - and then I want it to
go back to normal afer the work is finished.
In C# and Windows projects, how I can I control the look of the mouse?
Thanks... more >>
Connection pooling
Posted by Steven Blair at 5/14/2006 5:21:56 AM
As I understand it, if I create a connection object in my application
and close the connection, the next time I open a connection with the
same connection string I should be using a pooled connection?
Is this possible over different instances of a class.
For example
Instance 1 of my dll i... more >>
problem with HTTPWebRequest on Pocket PC 2003 SE Emulator
Posted by bliz_87 NO[at]SPAM yahoo.com at 5/14/2006 2:23:04 AM
Hello all, I'm trying to create a simple application that does a HTTP
request/response on a button click. Here's the entire code which I got
from a reference book:
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Te... more >>
debug
Posted by RobcPettit NO[at]SPAM yahoo.co.uk at 5/14/2006 2:03:39 AM
Hi How do stop vs2005 from finding errors in other programs and then
wanting to debug these. Eg I opened a browser, went to a site and got
an error. If vs is open before going to site, doesnt throw error. Also
happens with programs I use.
Regards Robert
... more >>
What is the default when writing class Test
Posted by Tony Johansson at 5/14/2006 12:00:00 AM
Hello!!
If you write private class Test {} you have a private class
If you write public class Test {} you have a public class
If you write protected class Test {} you have a protected class
If you write internal class Test {} you have a internal class
Now to my question
If you just write c... more >>
MySql & Databinding
Posted by Ivan Sammut at 5/14/2006 12:00:00 AM
Hi ppl,
Everyone has a clue how I can do a databinding on a combobox when my
data is coming from a MySql database cause the MySqlCommand does not have
the ".fill()" procedure.
Thanks
Ivan
... more >>
|