all groups > c# > november 2003 > threads for monday november 10
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
How to prevent putting cursor on TextBox in c# winform
Posted by jung wook seo at 11/10/2003 11:56:40 PM
Hi~ all
How??
please let me know~
Thanks in advance~
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
how does MessageBox work?
Posted by Saso Zagoranski at 11/10/2003 11:53:26 PM
Hi!
I'm trying to make my own MessageBox... What I would like to know is, how
the MessageBox class is implemented?
I could have something like:
new MyMessageBox().ShowDialog();
but I would like the solution used by MessageBox, where you call the static
Show() method, which
returns a Dialo... more >>
Datagrid problem
Posted by Ajay Bhalerao at 11/10/2003 11:45:05 PM
I am moving various control on datagrid by catching
currentcellchanged event and leave event of corresponding
control.However problem is i have to click first on a
particular cell to move a specific control to the cell and
then i have to click again to set cursor on the same
control.
Coul... more >>
AP I
Posted by [GHO] at 11/10/2003 11:24:52 PM
some one can help for how to get a free IRQ .
I want to get the number of free IRQ or list of IRQ's
avilable (not using)... more >>
Eclipse plug-in?
Posted by Graham Ashton at 11/10/2003 10:49:28 PM
Hi. I'm trying to edit C# code from within eclipse 2.1.1 but am getting
nowhere. The Improve plug-in doesn't seem to install on such recent
versions of eclipse; is there anything else out there that I could try?
Thanks,
Graham... more >>
Create a "Tab" in MSN Messenger
Posted by Oscar Thornell at 11/10/2003 10:26:34 PM
Hi,
I would like to create a tab in MSN Messenger like an addin...that uses the
Messenger interface...
My idea is to export data from a Web Service on wich the users can access
information via "MyTab" on their MSN Messengers (once they have downloaded
the plugin...)
Is it possible to exten... more >>
mscoree.dll
Posted by Patrick De Ridder at 11/10/2003 10:21:01 PM
a) This concerns a machine with a UK version W98SEe operating system.
b) I have developed an application on an UK version XP professional
machine.
c) On the UK version W98SE machine I have installed a Dutch
dotnetfx.exe in order to test the application for the Dutch market.
d) When I try ... more >>
Large scale C# development
Posted by Ivan Krivyakov at 11/10/2003 9:55:51 PM
Let's say I have a big system with several dozen C# projects - some
of them class libraries, some of them applications. Executables and
libraries from higher layers depend on libraries from lower layers.
The system usualy has two builds: debug build and release build.
Debug libraries and execu... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Threading
Posted by Amendra at 11/10/2003 9:48:59 PM
Hi,
I want a certain task to be run by multiple threads. The issue is do we have
to create a new thread object foreach new thread and specify the same
threadStart deligate or is there a different approach to this.
Thanks
Amendra.
... more >>
List of software to be installed on Win98,Win2000 to run .NET programs
Posted by Mac at 11/10/2003 9:47:15 PM
Hello
Anyone has a list of software needed to be installed on below Operating
systems to be able to run C# applications.
a. Win98
b. Win2000 Pro
Regards,
Mac... more >>
newbie: XmlUrlResolver?
Posted by Dan at 11/10/2003 7:31:34 PM
Hi, I'm creating a C# assembly which loads from its resources some XSDL
schemas and use them to validate external XML files. Some of these schemas
refer to other schemas via include commands. How can I let the validator
resolve these references in schemas loaded from assembly resources? I think
... more >>
HTML editor control
Posted by PromisedOyster NO[at]SPAM hotmail.com at 11/10/2003 7:23:58 PM
Can anyome recommend a good HTML editor control that we could embed
into our C# application. The HTML editor is primarily used to create
emails.
We are looking for basic formatting things like fonts, bolds, colours
etc
A .NET managed assembly is preferable.... more >>
Enumerating Workgroup via C#?
Posted by Mark at 11/10/2003 7:23:56 PM
I have a server in a workgroup (called "wg"). Does anyone know how to find
the name of the workgroup from code (pref c#)? I've trawled the newsgroups
and the MSDN site for the right class / method / property to use but I just
can't find the right one. There are plenty (such as UserDomainName) tha... more >>
Calling server-side function from client-side
Posted by Benny at 11/10/2003 7:17:22 PM
Hello all,
How can i call a server side function (in .aspx.cs) from a client side
(in .aspx) using javascript?
thanks,
benny
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
GetValue
Posted by Cezar at 11/10/2003 7:10:12 PM
Hi,
For non static fields, FieldInfo's GetValue needs an instance of a class
that inherits or declares the field.
What I do is that I create an instance of the class that defines the field
using
Object instObj = Activator.CreateInstance(cl);
but now I need to get the value of the field f... more >>
C# and 64 bit programming
Posted by Alex88 at 11/10/2003 6:55:57 PM
hi all, i would know if and how C# will change with the new 64 bit
architecture.
and the other .Net languages?
have you some link?
thanks
Alex
asassu@SPAMMlibero.it (remove SPAMM)
... more >>
Next problem, this time arrayoriented
Posted by H at 11/10/2003 6:35:40 PM
Ok, now this newbie is dealing with arrays.
I have some questions on this. I thought I'd use the built in Array class,
since it contains all I need for sorting, copying etc. arrays. Now I'm
wondering if this is so clever. As I've understood it, one good thing with
the Array class is that it is p... more >>
which is the reference for root.cimv2 namespace?
Posted by Pablo Garcia at 11/10/2003 5:46:07 PM
Please, if someone knows which reference I must Add to use the namespace
ROOT.CIMV2, please tell me.
Thank you
... more >>
combobox datasource
Posted by Tamir Khason at 11/10/2003 5:28:04 PM
Why this does not work???
cb1 - combobox
DataProvider.DataProvider.DS_BringRacks() - DataSet
cb1.DataSource=DataProvider.DataProvider.DS_BringRacks().Tables[0];
cb1.DisplayMember = "id";
cb1.ValueMember = cb1.DisplayMember;
it diplays in combobox : "System.Data.DataRowView" instead of ... more >>
CodeDomSerializer
Posted by Björn Marthen at 11/10/2003 5:14:19 PM
Hi,
I have written a custom web control with a DesignSerializer.
If i change a property in design-time, the serializer starts before the
properties will be set in the control (the object "value" in the serialize
method has the old property value). Thats annoying cause the serialize
should wri... more >>
Enumerate Users
Posted by Bryan at 11/10/2003 4:44:45 PM
How can I get a list of all users currently logged into a Windows Server?
My program will be a windows service that has administrative access, so I
should have the correct access to do this.
Thanks for any help,
Bryan
... more >>
How to return DataSet
Posted by Peter Afonin at 11/10/2003 4:41:08 PM
Hello:
I'm creating an ASP.Net application. I need to run a method that would
return a DataSet. I'm new to C#, so I have a problem with it.
In VB.Net I just used to write a function like this:
Public Function GetOrders(ByVal sSQL As String) As DataSet
In C# when I try to write something... more >>
Memory Usage Problem
Posted by 2003et at 11/10/2003 4:16:05 PM
My program uses 200 radio button, 20 panel and about 150 textbox... But I
cannot understand its memory usage... It uses about 30 MB while it is
running without any db connection or something else...
Do you have any idea?
Thanks...
... more >>
Compiler warning with bitwise operators
Posted by cody at 11/10/2003 3:39:38 PM
I get a compiler warning with this statements:
ulong versionHash=0;
if (User!=null)
versionHash |= (ulong)User.UserID;
The warnign is like that (translated from german): "Bitwise OR-operator is
used for signed operand. It is recommended to convert a smaller unsigned
type first."
I don... more >>
databind hashtable
Posted by Ryan Moore at 11/10/2003 3:18:44 PM
I am trying to use a hashtable as the datasource for a listbox and am
running into an error:
{"Complex DataBinding accepts as a data source either an IList or an
IListSource" }
what am I doing wrong? do I need to cast the hashtable in order to bind it?
thnx
... more >>
HTTPMail / WebDav Question...
Posted by MJB at 11/10/2003 3:14:53 PM
I'm trying to execute a MOVE command via WebDav for my Hotmail account (
trying to move a message into my trash folder ). I'm getting an
authorization exception. I am pretty sure that I'm not getting/setting the
proper cookies. I was hoping someone out there may have an example of how
to do a... more >>
parse multiple date formats at once
Posted by Zeng at 11/10/2003 3:06:42 PM
Hi,
Is there a way to parse datetime in string with following possible formats
into a DateTime object?
- MM/DD/YYYY
- MM/DD/YY
- MM/YY
- MM/YYYY
This line of code would throw if I pass "08/03"
DateTime result = DateTime.Parse( s );
Thanks!
... more >>
Converting hex array to integer.
Posted by Newbie at 11/10/2003 2:52:53 PM
Hi,
I have a hex array in big endian format.
like -
byte[0]=0x07
byte[1]=0xC3.
I need to interpret it as 0x07C3 and convert it to it's integer value.
How can I do this?
Thanks,
Susan
... more >>
one more question before i give up
Posted by dawn at 11/10/2003 2:51:56 PM
hi yet again (slowly going crazy here),
when i press enter......the keypress event doesn't get fired....anyone has a
clue as for why this is.....i've been looking in MSDN and they do exactly
what I did....and they claim it works??!!
well anyway if anyone has any idea why they keypress event ... more >>
Convert Bitmap to Byte and Byte to Bitmap
Posted by Eka Gautama at 11/10/2003 2:48:07 PM
Hi all,
I need help for a sample code to convert a bitmap to byte as well from byte
to bitmap..
Thanks for the help
Eka
... more >>
Passing message between forms
Posted by Jim at 11/10/2003 2:45:54 PM
I've got a Main Form that takes a list of files. You click the "Process
Button", it then opens a new "Batch" form which processes the images files
one at a time. Unfortunatley the process takes a bit of time but my code
keeps running, not waiting for the batch to get done. How can I have the
... more >>
Database connectivity
Posted by Maziar Aflatoun at 11/10/2003 2:34:38 PM
Hi everyone,
Is there a need to close any of the following when done using them? or does
C# take care of them by itself.
OleDBDataAdaptor?
OleDBConnection?
dataSet?
Thank you
Maziar A.
... more >>
another question
Posted by dawn at 11/10/2003 2:09:54 PM
Hi,
I know I must be becoming a pain in the ass, but i've encountered yet
another little problem :
I catch an enter keypress with the KeyPress event handler....it does what it
needs to do.....but then after that it still fire the event for the button
that is active at that moment.
I've s... more >>
XmlSerializer.Serialize
Posted by discussion NO[at]SPAM discussion.microsoft.com at 11/10/2003 1:50:22 PM
Hey,
I have made a method that would take any object o and an array of
extraTypes to construct a XmlSerializer object then call .Serialize(stream,
object)... When I have this called within the same method as the type it
works fine but when I am passing this type and the extra types array ... more >>
quick question on spacebar
Posted by dawn at 11/10/2003 1:44:44 PM
Hi,
does anyone know how to catch the spacebar with a keypress event....
if (e.KeyChar == ????)
thanks.
... more >>
How do I pass a web control reference to a class?
Posted by Sam at 11/10/2003 1:30:26 PM
Hi,
I write my code behind in C# and everytime I need a new functionality, I
build a class for it and save it in a folder I call ClassLibrary.
My question is I don't know how to send my web controls to these classes.
For example, I created a standard States and Countries class which simply
... more >>
OLE Structured Storage files
Posted by David Groves at 11/10/2003 1:08:29 PM
Are there any plans to incorporate a native C# facility to deal with the OLE
Structured Storage concept? It's clumsy at best to have to construct a C++
interface to the .doc files (or any such files by any suffix), when
Microsoft uses the concept in most, if not all, of their other products.
"J... more >>
compatibility question with c# components
Posted by Yuri O. at 11/10/2003 1:00:37 PM
Sorry if my question is quite naive, nevertheless :
Will components written on C# with VS 2003 be applicable on legacy VS 2001.
If no, please direct me to a safe way to provide backward compatibility ...
--
Best Regards
Yuri
... more >>
Static vs Non-Static Function Performance
Posted by Steve - DND at 11/10/2003 12:54:59 PM
We're currently doing some tests to determine the performance of static vs
non-static functions, and we're coming up with some odd(in our opinion)
results. We used a very simple setup. One class had a static function, and
the one class had a non-static function. Both of these functions did the
e... more >>
WMI: I can't find the reference to namespace root/cimv2
Posted by Pablo Garcia at 11/10/2003 12:52:20 PM
I am working with Windows Management Instrumentation (WMI). I must use the
namespace ROOT.CIMV2, I have written "using ROOT.CIMV2.Win32" on the top of
the file, but a compilation error happened because I hadn't Add the
Reference where that namespace is.
If someone knows which is the Reference I ... more >>
User Logon
Posted by Dan at 11/10/2003 12:43:15 PM
I am developing an application that has to have acces to
it controlled. I would like to be able to have the users
logon to the application using their existing WIndows
account. I would create a new Group on the domain and add
those users who should access the program to that group.
The pr... more >>
Handke keypress - keydown event Label Control
Posted by Peter Verburgh at 11/10/2003 12:41:44 PM
Is there an easy way to capture the keypress - keydown events from a LABEL
control ?
Standard the control doesn't handle these events.
The label control inherits from the control class , and this class has the
keypress - keydown event handlers. So i believe this must be possible ?
k/Regards,
... more >>
button problem
Posted by dawn at 11/10/2003 12:31:19 PM
Hi,
I have a form with 4 buttons on it. Now when the user presses enter....i
always want the button2_click event to be fired, no matter what button was
last clicked on by the mouse.
However if I click on a button with the mouse....it needs to fire the event
for the button that was clicked.
S... more >>
"protected" access specifier
Posted by p988 at 11/10/2003 12:21:23 PM
using System;
using System.Windows.Forms;
using System.Drawing;
class MyForm : Form
{
MyForm ()
{
Text = "Windows Forms Demo";
}
protected override void OnPaint (PaintEventArgs e)
{
e.Graphics.DrawString ("Hello, world", Font,
new Solid... more >>
Readonly Global Variables?
Posted by blue at 11/10/2003 12:18:59 PM
I know, I know, global variables are bad bad bad.
I have some readonly variables that I assign right away and they will never
change (hence the "readonly" part). I need to access these variables in
multiple classes and I don't want to have multiple declaractions all over
the place and have to... more >>
Some questions
Posted by Zoury at 11/10/2003 11:54:49 AM
Hi! :O)
I'de like to know how date types are hold in memory. Is there any
documentation on this?
for example, is System.String a BSTR? or int[] a SAFEARRAY?
thanks a lot!
--
Best Regards
Yanick Lefebvre
Please posts answers to the group so all can benefit
... more >>
Dealing with "." or "," in decimal string expression
Posted by Cybertof at 11/10/2003 11:38:14 AM
Hello,
I would like to return the good single value from a string value
in these cases :
Convert.ToSingle("23,30");
Convert.ToSingle("23.30"); // Conversion Error !!!
The result should be a single 23,30 (Single Type)
How to deal with this "." or "," for the decimal point ?
How to by... more >>
Unit testing tools for .NET ?
Posted by gicio NO[at]SPAM web.de at 11/10/2003 11:35:13 AM
Hi!
I'm looking for unit-testing tools for .NET.
Somthing like Java has --> http://www.junit.org
regards,
gicio
... more >>
Derive custom exception types
Posted by p988 at 11/10/2003 11:29:06 AM
Could someone show me how to derive and use custom exception types
separately from:System.Exception, System.Object and
System.ApplicationException in C#?
When people say:"Use Visual Studio .NET to create a component..." What does
it mean by "component" here in C#?
... more >>
How to call Win32 API function from C# (newbie)
Posted by David Ichilov at 11/10/2003 11:28:09 AM
How do i call in CSharp to this function:
GetVolumeInformation
The GetVolumeInformation function retrieves information about a file system
and volume whose root directory is specified.
BOOL GetVolumeInformation(
LPCTSTR lpRootPathName,
LPTSTR lpVolumeNameBuffer,
DWORD nVolumeN... more >>
KeyPress event not handled
Posted by dawn at 11/10/2003 11:24:59 AM
Hi,
I've added a KeyPress event to my form...but when I run it, and I press a
key this event isn't fired. What could be wrong? Does the KeyPreview
property need to be set to true for this?
Thanks,
Bart.
... more >>
Serialize with dll is not is same folder as exe
Posted by john at 11/10/2003 11:21:34 AM
I'm having a serialization problem. I have a dll, and one
of its classes can get serialized. but the dll and the
calling exe dont reside in the same folder or subfolder.
so serialization works fine and a file can be saved to the
hard drive. but deserialization blows chunks, because the... more >>
Serialize with dll is not is same folder as exe
Posted by john at 11/10/2003 11:21:32 AM
I'm having a serialization problem. I have a dll, and one
of its classes can get serialized. but the dll and the
calling exe dont reside in the same folder or subfolder.
so serialization works fine and a file can be saved to the
hard drive. but deserialization blows chunks, because the... more >>
How to Maximize a form
Posted by Susan at 11/10/2003 11:16:38 AM
I am currently hiding a form until a key is pressed (I am
using the command "this.Hide();" to hide the form). When
that key is pressed, I am once again showing this form,
with the command "container.Show();". My problem is that
when I do this, it always brings up the form in a
minimized s... more >>
Need a logging framework. Any suggestions
Posted by Ali Baba at 11/10/2003 11:15:22 AM
Hi,
I need a logging framework for C#, similar to Log4J for Java. I prefer
an open source solution is possible.
Thanks.
--
You don't pay to get spam, why pay to clean it?
Visit http://www.spammarshall.com to create an account for free
<http://www.spammarshall.com>... more >>
WinSock Error (Error code: 10054)
Posted by SK at 11/10/2003 11:11:43 AM
Hi all,
I am dealing with sockets in my code.
I open them like -
System.Net.IPAddress remoteIPAddress = System.Net.IPAddress.Parse
(szIPSelected);
System.Net.IPEndPoint remoteEndPoint = new System.Net.IPEndPoint
(remoteIPAddress, alPort);
// Connect to the remote End point in the socket.
... more >>
How do I find difference in MONTH for two DataTime
Posted by Ali Baba at 11/10/2003 11:02:50 AM
Hi,
Is there is equivalent of VB's DateDiff() method in C#. I need to find
difference in months between two dates that are years apart. Docs says
that I can use TimeSpan like:
TimeSpam ts = date1 - date2;
but this gives me data in Days. I don't want to divide this number by 30
because... more >>
Compound file access
Posted by Todd Webb at 11/10/2003 10:42:05 AM
I would like to talk to the COM implementation of
Structured Storage from C#. I would like a C# equivalent
of StgCreateStorageEx.
I expected to find support in the stdole Primary Interop
Assembly, but I have not been able to find it.... more >>
Dispose doesn't free memory
Posted by Memory Issues at 11/10/2003 10:38:48 AM
In an MDI app after the first internal screen is launched,
used, and then closed, it doesn't return the memory.
I have noticed that if you open the same form again the
memory stays about the same and doesn't reallocate another
10-25 megs depending on whats on the form.
Is this normal?
I... more >>
Anyone know of a DNS Server written with C#
Posted by Rein Petersen at 11/10/2003 10:30:40 AM
Hi Folks,
As mentioned, looking for sample source of a DNS Server - written in C#
would be ideal... VB is the next most comprehensible to me.
Rein
... more >>
Enumartion flags
Posted by Jose Ines at 11/10/2003 10:21:25 AM
Hello,
Can anyone give me a link where I can find a tutorial on how to make
enumaration flags? Not the structure (public enum MyFlags{...}) but how to
asign the members values (0x01, 0x02) etc...
Thanks.
Jose.
... more >>
ExtractIconEx - it is not working
Posted by news NO[at]SPAM mikendy.com at 11/10/2003 9:58:01 AM
Im using this construction, for getting num of icons contained in specified
file. But it is not working. Function returns 0. Where is the problem???
[DllImport("SHELL32.DLL", EntryPoint="ExtractIconEx", SetLastError=true,
CharSet=CharSet.Unicode, ExactSpelling=true,
CallingConvention=CallingCo... more >>
Imports Dll
Posted by ligi168 at 11/10/2003 9:18:49 AM
Hi.Can the Dynamic Link Libraries created by C# be used in MS Excel2000 if
it is CLSCompliant?
Thanks.
Agan.
... more >>
Repost: NT Service and redirection of stdOut/stdError
Posted by José Joye at 11/10/2003 9:13:18 AM
I have made a NT Service in c# and I need to use some features provided in a
legacy C library (it can be interfaced with callbacks and normal calls). So
far, no problem, I used p/Invoke and all is fine. However, this library
writes to stdOut/stdError. :-((
Is there a way at service startup (or l... more >>
Datagrid and focus confusion
Posted by billybobc1210 NO[at]SPAM yahoo.com at 11/10/2003 8:57:11 AM
Hi,
I'm trying to implement a ComboBox drop-down column for a DataGrid.
When a cell is selected in the ComboBox column I overlay a ComboBox
over the cell and call:
this.comboBox.Show();
this.comboBox.BringToFront();
this.comboBox.Focus();
Now when I press the up/down arrow keys I would ... more >>
*** Visual C# Team Chat: New Whidbey Features ***
Posted by Eric Gunnerson [MS] at 11/10/2003 8:19:04 AM
The C# team is hosting a chat on MSDN next week discussing the changes in
Visual C#, including both language changes and IDE changes.
November 20, 2:00 P.M. Pacific time/5:00 P.M. Eastern time - You can find
more information about this chat on http://msdn.microsoft.com/chats/.
--
Eric Gunner... more >>
Remoting memory leak?
Posted by Yair at 11/10/2003 7:32:55 AM
Hi,
After executing a server-client remoting scheme I wrote,
I've noticed a constant memory growth (both at the server,
and at the client). Searching through various newsgroups,
I've stumbled across various posts, regarding this
behaviour.
My question is: Is there currently any known bug, ... more >>
IInternetProtocoll implementation (Pluggable Protocall Handler)
Posted by juerg.staub NO[at]SPAM object-soft.ch at 11/10/2003 7:31:56 AM
Hi,
I have implemented IInternetProtocol and IInternetProtocolRoot in my
protocol handler. Whenever I try to register the instance with
IInternetSession::RegisterNameSpace, I receive a
NullReferenceException. I checked to news for it and other people seem
to have similar problems.
The Crea... more >>
How to create analogue of Delphi's 'DataModule'?
Posted by BlackTiger at 11/10/2003 6:50:17 AM
How to create analogue of Delphi's 'DataModule'?
DataModule is non-visual form, which contains connections
to DB, queries, tables, field definitions and relations
between tables. All this objects are available for all
project's forms and procedeures.
Can i implement this in .NET?... more >>
Class generates error
Posted by gordenblom NO[at]SPAM hotmail.com at 11/10/2003 5:49:14 AM
Hi,
I'm a student who's working on a school project about ASP.NET / C#.
I'm having some problems with my class. I want to create an ArrayList
filled with results from a DataReader. It gives me the following
error:
Exception Details: System.NullReferenceException: Object reference not
set t... more >>
Looking for an elegant solution to find a file within a fileshare
Posted by Rosa_Shelton NO[at]SPAM hotmail.com at 11/10/2003 5:24:27 AM
Hi,
I'm looking for an elegant solution on how to find the youngest file
within a given directory.
At the moment I'm storing all files in an array and loop through it
comparing the creation date as follows:
private string FileShare(string strURL)
{
string [] files;
DateTime datLastWriteT... more >>
generating events in user defined controls
Posted by Liz - Newbie at 11/10/2003 5:24:01 AM
I need to generate an event in a user defined control
when I have changed a variable, so that I can pick it up
in my main form and take it from there.
Can someone explain the SIMPLEST way of doing this.
Liz (newbie to OO)... more >>
How to write data to an embedded resource
Posted by Jani Mantytorma at 11/10/2003 5:11:10 AM
I have embedded resource called Settings.xml. I'm able to read the resource but how can I write data to the resource. The code for read operation follows:
private XmlDocument m_doc = new XmlDocument();
System.Reflection.Assembly a = System.Reflection.Assembly.GetExecutingAssembly();
System.IO.Stre... more >>
Access from inner classes
Posted by Marco at 11/10/2003 4:55:31 AM
Howdy!
Given:
public abstract class A {
public abstract int A1(int i);
private class B {
private int B1(int i) {
int j;
...
----------> j = A1(4); // that's what I want
...
... more >>
Validate if field is part of an interface
Posted by joneks NO[at]SPAM hotmail.com at 11/10/2003 3:53:37 AM
Hi,
Is't possible to find out if a field is declared in a specific
interface using Reflection?
-pseudo code-
Type type = MyObject.GetType();
fieldInfo = type.GetFields(...)
Debug.writeLine(IsDeclaredInInterface(fieldInfo, IMyInterface))
-J E E... more >>
Adding custom ToString method to Enum
Posted by Suresh at 11/10/2003 3:37:40 AM
Hi,
I need to add a custom ToString method on an Enum
Property. The default ToString method expands the whole
name. But, I want only an short associated code with the
long name of the enum type.
For example,
public enum Color { Red = 0, Blue, Green }
The statement
Color cr = Color.R... more >>
array question
Posted by t at 11/10/2003 1:09:29 AM
I have a 3 digit number that needs to be in an array. I
want to get the last digit. ex. number is 127 and i want
to get the 7.I have a lot of numbers that I will be
working with in a loop. How can I enter this number in an
array and get the last digit only? if that is not possible
can some... more >>
Response.Write(String.Format("{0:#,###.##}",0)); returns empty string
Posted by Von Shean at 11/10/2003 1:04:03 AM
I use the following code to format the numbers to have commas. But in case
when input is zero it returns an empty string....any ideas?
String.Format("{0:#,###.##}",dblNum);
... more >>
[C#] Fatal stack overflow
Posted by Jesper Stocholm at 11/10/2003 12:01:49 AM
I have a recursive function that I would like to do a lot of recursive
calls (preferebly 2^20 in total)
The function is called as (with maxi = e.g. 100000)
DoRecursion(0,maxi,bseed,sha);
And the total code is
static void Main(string[] args)
{
long maxi = Convert.ToInt64(args[0]);
t... more >>
creating my own textbox in VS.Net
Posted by jonas.linde NO[at]SPAM scrollan.se at 11/10/2003 12:00:24 AM
Hi,
I need to create a textbox which acts as a normal textbox but with the
following extra requirements:
1) In-focus color, when the textbox gets focus the backcolor property
of the textbox should be set to a, selectable, in-focus color.
2) Out-of-focus color, when the textbox loses focus t... more >>
|