all groups > c# > january 2008 > threads for friday january 11
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
GetType() in static method?
Posted by Jeff Dege at 1/11/2008 10:45:53 PM
In a non-static method, I can obtain the Type of the class containing
that method with "this.GetType()".
In a static method, I cannot, of course. There is no "this".
I have a method in another class that needs to be passed a Type object
associated with a class. I'm calling that method fr... more >>
Creating an app that works like the Visual Studio form designer...
Posted by Johnny Jörgensen at 1/11/2008 10:20:14 PM
Now, the following will probably sound weird to you, but I can assure you
that there is a good reason for why I want to do it. Unfortunately, I'm not
ad liberty to disclose WHY at this moment in time, so you will have to take
my word for it.
What I want to do in the application I'm developi... more >>
Hash Code Of A String
Posted by j1mb0jay at 1/11/2008 10:03:14 PM
I am currently working on a dictionary populating program. I currently
have a socket connection my local news server and am trawling through
all of the articles looking for new words. I am currently using Java to
do this but would like to move the source to C#. Java's String class has
a meth... more >>
RDP encrypted passwords
Posted by Brian Stoop at 1/11/2008 9:34:14 PM
Can RDP password be written programatically, is there a dll that contains a
method for generating encrypted passwords?
thanks
... more >>
C# should support "const ref"
Posted by not_a_commie at 1/11/2008 8:19:03 PM
A method parameter declared as "const ref" would allow for passing
large structs quickly and enforce that the struct does not get
reassigned. I know there was concern before about the inability of
such a device to enforce that the members don't get set. I don't care
about that. Let them assign t... more >>
Graphics.CopyFromScreen() problems
Posted by rory.groves@gmail.com at 1/11/2008 7:24:29 PM
C#, NET 2.0:
I am using CopyFromScreen to copy a background user control to a
foreground usercontrol to create the appearance of transparency.
It works perfectly 95% of the time. However it only paint what is
visible. So if there is another window on top of the application when
CopyFromScre... more >>
How to trap F1 from a menu item
Posted by Johnny at 1/11/2008 5:49:09 PM
Hi there,
Does anyone know how I can trap F1 to activate help when a menu item is
active, preferably without creating a "ToolStripMenuItem" derivative (so I
can quickly wire this up using the designer). I'm doing this when my users
activate a menu from my main form. I simply want to activat... more >>
gSoap authentication from C# Soap Client
Posted by Enda Manni at 1/11/2008 5:37:12 PM
Hi,
I have a gSoap Web Service written using C++, it uses SOAP username and
password authentication.
I also have a C# form client consuming the web service, all this was working
fine until I added the authentication on the server, now I can not get the
client to authenticate. Can someon... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DataAdapter Scope
Posted by Kevin at 1/11/2008 4:41:01 PM
I am pretty new to C# and .NET and am using VS 2005.
Let's assume I have an MDI application with various child windows, each of
which will need access to a database. My question is: where would be the best
place to instantiate the DataAdapter and DataSet objects so I would only have
to do ... more >>
what's is the difference between object vs Object, exception vs Exception
Posted by Ryan Liu at 1/11/2008 3:12:45 PM
In C#, what's is the difference between object vs Object, exception vs
Exception?
Thanks,
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
Ryan Liu
Shanghai Fengpu Software Co. Ltd
Shanghai , China
http://www.PowerCATI.com Powerful CATI!
http://www.fpsoft.net.cn
~.~.~.~.~.~.~.~.... more >>
Form in Panel?
Posted by Tom Howes at 1/11/2008 2:18:02 PM
Hello all.
Is there a way to dynamically insert a Form in a Panel?
Thanks
... more >>
Class with different properties
Posted by Robert Bravery at 1/11/2008 1:46:28 PM
Hi all,
How do I aproach this.
I need to have a class that has different popeties based on a givien value
eg
if the company value >35
then myclass should have theses two properties
bigvalue
lagecompany
someproperty
else the properties should be
smalvalue
someproperty
Thanks
Robert... more >>
How does Assert determine equality?
Posted by Ethan Strauss at 1/11/2008 1:40:03 PM
This is mostly just curiousity. I was writting a unit test to verify that I
was creating a Regex correctly. This involved
Assert.AreEqual(expected, actual)
where expected and actual are both Regex objects. My code failed the test
:-(, but I think it because I had created two Regex objects whi... more >>
Table-like (database-like) object
Posted by Snaggy at 1/11/2008 12:50:16 PM
Hi,
I' trying to write a program (to learn the language) that handles a
deck of cards. Each card has an ID, a string name, a position, an
order (for shuffling) and as many other optional properties we might
want to assign it.
To store the deck's data I'm using right now a string[ , ] array,... more >>
Non-bittable data in struct
Posted by Soren S. Jorgensen at 1/11/2008 12:26:50 PM
Hi,
I got a structure defined in C as:
typedef struct _M4W_SERVICE_MESSAGE
{
ULONG Command;
ULONG Reserved; // Alignment on IA64
LPWSTR FileName;
} M4W_SERVICE_MESSAGE, *PM4W_SERVICE_MESSAGE;
and in C# as:
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
private str... more >>
Loading assemblies in another domain gets the assembly loaded in the default domain too!?!?!?
Posted by Jeff at 1/11/2008 12:20:07 PM
Hi
I'm trying to achieve a scenario where I have c# files that are compiled
dynamically, the assemblies are then loaded in a different AppDomain, I call
a simple method from the object, and then unload the AppDomain to release
the lock on the assemly files (so to I can compile the code agai... more >>
Multiuser database
Posted by Vanessa at 1/11/2008 11:49:01 AM
Hi!
I started working with .NET and I have some doubts about how to work with
multiuser database. I am using VS2008 with MySQL through ODBC for Windows
Form.
1. Is it correct to create a DataSet with all tables in the form load? And
how can I be notified if some other modifies the databa... more >>
Serializing a Singleton
Posted by Joe Tavares at 1/11/2008 11:10:00 AM
I have read several articles on serializing a singleton and have attempted
to implement it in my code. Unfortunately, the object is not being
serialized. The file size on disk is 1K. I am not sure exactly what I am
missing here, do I need to use AddValue to add the object fields I want to
s... more >>
How to translate OrElse and AndAlso from VB.NET?
Posted by Siegfried Heintze at 1/11/2008 10:58:54 AM
Are there operators in C# that are the counterparts of "OrElse" and
"AndAlso" that I can use when translating the following program from VB.NET
to C#?
Thanks,
Siegfried
Namespace vbtest
Module Main
Function reflect(x as boolean) as boolean
System.Console.Out.WriteLine("... more >>
Creating a script interpreter using C#
Posted by jkimbler at 1/11/2008 10:41:31 AM
As part of our QA of hardware and firmware for the company I work for,
we need to automate some testing of devices and firmware. Since not
everybody here knows C#, I'm looking to create a new scripting
language that makes writing automated tests simpler. Really, I'm
looking to kind of abstract... more >>
Classes
Posted by Keon at 1/11/2008 10:40:23 AM
When you create an instance of a class, do you have to delete the
instance after you are finished with it? I can't seem to find any
information dealing with that. All I see is create the instance and
thats it.
Thanks
Keon
... more >>
XmlDocument - while saving end tage moves to next line
Posted by Venu at 1/11/2008 9:26:05 AM
I use XmlDocument to load and save the XML document...
While i save the document end tag of elements with blank value is moved to
next line..
i.e.
<root>
<element1>some text</element1>
<element2>123566</element2>
<element3></element3>
<element4></element4>
</root>
whe... more >>
Question on best practices for scrollbar UI in a WinForm
Posted by Bill Fuller at 1/11/2008 9:14:06 AM
We are building a multipane C# winform application with three panes. The
anchored left pane will be the menu, center pane data entry, and right pane
advisory information. The customer has requested there be only ONE scrollbar
per page. IOW, if the menu needs to scroll, it will use the single s... more >>
Increasing Stack Size for UI Thread: C# WinForms Application
Posted by randy1200 at 1/11/2008 9:03:02 AM
Visual Studio 2005, C# WinForms application:
Here’s the question: How can I increase the standard 1 MB stack size of the
UI thread in a C# WinForms application?
Here’s why I ask:
I’ve inherited some code that at the view (User Interface) layer kicks off a
background worker thread.... more >>
Application Updates
Posted by Looch at 1/11/2008 7:30:15 AM
Hi All,
Forgive my lack of using the right terms here but I'm hoping someone
has an answer. I'm using VS 2005 C# Express and doing the following:
Right clicking the solution name and choosing properties, going under
the Publish tab on the left and clicking the 'Publish Wizard' button.
This la... more >>
Running Command line process
Posted by garykenneally@gmail.com at 1/11/2008 6:48:42 AM
Hi,
Im trying to run a command line application from C# but i having some
strange problems with it.
Heres the code im using:
System.Diagnostics.Process process = new System.Diagnostics.Process();
procPath = @"c:\ae.bat";
//string procArgs = " " + fileName + " " + tempFile... more >>
Formula in Changed Event
Posted by Alan at 1/11/2008 5:15:01 AM
I have a InfoPath form that I need to use an event handler to perform a
calculation. The calculation is derived from a excel formula that
calculates the second tuesday of the month when the user enters the month
(numeric) and the year. Where Year and Month are variables from a dropdown
box.... more >>
Create a function like IsDigit()
Posted by skneife@gmail.com at 1/11/2008 5:09:25 AM
Doeas any know the simplest way for create this type of function:
bool result = IsDigit(string s);
Sam... more >>
Optimal solution for processing some info in a thread
Posted by roundcrisis at 1/11/2008 3:30:36 AM
hi there:
this is the situation:
I have a function in a class the processing of this takes some time,
this function can either be called from a winform or a command line
with several parameters. I want to display some sort of progress bar
what is the optimal way to do this
i e been reading... more >>
Several programs and getting "hangups"
Posted by christery@gmail.com at 1/11/2008 2:31:20 AM
Hi!
I have one program running multiple copys (acting as IP <-> serial
port) of the same program (no connection to eachother) and they all
work fine for a while then some starts slowng down, then others, and
then magically all work fine again...
How did I come to know that?
Just to test ... more >>
Remoting, Singleton and BackGroundWorker problem
Posted by Steve K. at 1/11/2008 2:03:56 AM
I'm working on my first remoting project. It's going well and I have one
(that I know of!) bug left to work out.
I understand how remote objects have leases and those leases expire. I
fixed a problem earlier today where the EventShims that my clients were
invoking to handle server -> Clie... more >>
Exporting to excel
Posted by cameljs18@yahoo.com at 1/11/2008 1:45:26 AM
I am using RKLib to export to excel but i need to change the format of
one of the columns when i export it to excel.Any suggestions will be
appreciated, when the column is opened by excel it is automatically
converted into rands because there is a R before the data in each
cell.Is there a way i ... more >>
|