all groups > c# > december 2003
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
capitalization
Posted by kuya789 NO[at]SPAM yahoo.com at 12/31/2003 11:00:08 PM
How do you detect a string that is all capitalized?
ie.
string s = "MY NAME IS"; return true;
string s = "My Name is"; return false;... more >>
Exceptions
Posted by Drew at 12/31/2003 8:14:57 PM
How do I know which exceptions are thrown by certain methods?
For example, reading a file might throw an IO Exception, etc.
In Java, the compiler won't even let you compile unless you put your
code in try/catch blocks but the C# compiler doesn't seem to mind?
I am particularly interested i... more >>
Security exception -- running assembly from a shared directory
Posted by Fred Mellender at 12/31/2003 6:42:01 PM
I wish to run a C# Windows Forms program on a Windows 98SE machine, from a
directory that is owned by a Windows XP machine.
The directory is shared via directory sharing from the XP machine to the
W98SE machine via a TCP/IP network. This directory holds Foo.exe, and I
want to run the program ... more >>
C to C# converter?
Posted by Ray Mitchell at 12/31/2003 5:22:08 PM
I'm sure this is the nth time this has been asked so here
is n+1. Is there a decent (or any) utility available to
convert a standard multi-file C program (just a bunch of
bit fiddling and file IO) to C#? The original program is
a Visual C 6.0 project.
Thanks,
Ray Mitchell... more >>
Large source files and Syntax Color/Intellisense Problems in VS.Net
Posted by Rick Strahl [MVP] at 12/31/2003 4:48:39 PM
I seem to have problems when working with large Windows Forms files. What
happens is that hte editor looses its syntax color highlighting and
Intellisense capability on large files. The code works - it compiles and
runs fine, but the syntax color highlighting goes away. All formatting blows
up t... more >>
Detect IP
Posted by RF at 12/31/2003 4:41:53 PM
Hi,
How can I detect the external ip of a NAT.
Thanks,
RF
... more >>
Create Access db Programatically
Posted by Jacob at 12/31/2003 4:02:39 PM
Happy New Year!
I'm writing a program that will need to store large amounts of data from
several DataSets that I create at runtime (for information like email,
calendar, etc...). The trick is that these files will need to be created
programmatically. I think saving the DataSets into Access .... more >>
NAT SDK
Posted by RF at 12/31/2003 3:54:48 PM
Hi,
I've read on the PlatformSDK site there a NAT Transversal API SDK available
for download. It's able to detect if a NAT is present.Get the external IP of
the NAT, etc...
However, I don't wnt to download the complete CORE SDK. I just need this
particular SDK.
Can someone point me towar... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Happy New Year and many thanks!!!
Posted by José Joye at 12/31/2003 2:36:13 PM
I just want to take the occasion to thank everyone who make these newsgroups
so great.
It helped me a lot and was a great area to learn from.
Happy New Year and thanks again!
José
... more >>
Thread procedure with parameter.
Posted by Boba at 12/31/2003 2:33:21 PM
Hello Superiors,
Can someone explain me how can I run thread with
parameter in C# ?
Procedure TX()
{
.... Do something here...
}
Call the TX procedure like this :
tSearch = new Thread(new ThreadStart(TX));
but now I have this one :
Procedure TX(string Test);
{
.... Do... more >>
doubt in namespace
Posted by Baskar RajaSekharan at 12/31/2003 2:32:14 PM
Hi,
I want to use IMyExtenderInterface Please let me know what namespace
i can include in my project.
This is mainly for using Activate.CreateObject method in my project.
... more >>
System.Reflection
Posted by Raj Dhrolia at 12/31/2003 2:31:55 PM
Hi,
In one of my method, I want to know the class/function that
called/invoked this method.
i.e. i have a function named Method1() in class1. I want
"ClassX.MethodX()" in Method1(), when MethodX() of ClassX invokes Method1()
function
I think System.Reflection might provide some he... more >>
Dynamically creating an object
Posted by dnlwhite NO[at]SPAM dtgnet.com at 12/31/2003 2:28:49 PM
I am attempting to create a unit test that can switch between calling
a method from the web service I created or calling the component that
the web service actually calls.
So in my unit test form I have a checkbox that I can use to "turn on
or off" which one I would call and I have code someth... more >>
thread var
Posted by Thierry at 12/31/2003 2:01:25 PM
Hello.
I am creating a class where the unique instance is called by many other
thread.
My class don't know how is structured the threads and of course I can't
modify threads code.
I want to create a var specific to each calling thread to store state
information on my class.
I want ,for ex... more >>
Calling Method of Unknown Object
Posted by Vinod I at 12/31/2003 1:08:05 PM
Hi Team,
I want to do following Task. Please let me know how should I go for it.
Thanks in advance.
I have a general method and I am getting parameters as "object" type.
No based on object type, I want to do few actions.
Like,
if(objCon.GetType() == typeof(SqlConnection))
{
objC... more >>
set DataColumn.DefaultValue to false
Posted by aamirghanchi NO[at]SPAM yahoo.com at 12/31/2003 1:00:18 PM
How can I set the DefaultValue property of DataColumn to false in C#
this.objdsMyDataSet.tblMyTable.MyBooleanColumn.DefaultValue = false;
I have also tried setting it to System.Data.SqlTypes.SqlBoolean.False;
but in either case I get ArgumentException.
What is wrong, it looks straightfor... more >>
codeDOM... is this a good use for it?
Posted by neverstill at 12/31/2003 12:54:02 PM
Hi-
I am developing an asp.net application. I have a bunch of client script
that I need to place in a page. Right now I'm doing it like this:
StringWriter cs= new StringWriter();
cs.WriteLine("<script language=\"javascript\">");
etc, etc.
it is a real pain. I was thinking... is it pos... more >>
Advice on databases
Posted by Ann Marinas at 12/31/2003 12:44:59 PM
Hello All!
I need to seek your advice on databases.
I was wondering if you guys have any suggestions on a databases that is
lighter than SQL Server but much more efficient than MS Access.
I am currently designing a C# program that would be deployed on computers
that have no SQL Server nor... more >>
String Question
Posted by Ann Marinas at 12/31/2003 12:22:41 PM
Happy New Year to all! :D
I am currently developoing an application that imports data from a CSV file.
Each comma represents an array item that I need to extract data with.
My problem is this...
I am encountering a string that has the example below:
a, b, c. "d,e,f,g", abcdef
----The... more >>
Generics - when?
Posted by John Sparrow at 12/31/2003 12:00:33 PM
After reading all the info about Generics in C#, when are we going to get
them? Is this something planned for the Longhorn release, or sooner?
Thanks,
John
... more >>
How to set ap icon
Posted by RA at 12/31/2003 11:52:19 AM
Where in csharp can I set the application icon?
Thanks
... more >>
Question for framework guys: string.Format and valuetype boxing
Posted by Eric Newton at 12/31/2003 11:26:55 AM
Since String.Format has to box all value types to accomodate the params, and
just for sheer efficiency, are there possibly any plans for a FormatValue
method to minimize boxing?
public static string FormatValue(string formatSpec, System.ValueType[]
valueArgs);
public static string FormatValue... more >>
If the db provided isn't SQL Server and OleDB, which class should i use
Posted by Mullin Yu at 12/31/2003 11:12:01 AM
my connectionstring is something like this:
"Provider=FnDBProvider;Data
source=edmscs2^ccbs-edmsdb1;SystemType=2;logonid=2a7cecf1a4e9c2eda2ea7a65f6d
4a90a;"
the provider isn't ms-sql or oledb, i can't use SqlConnection and
OleDbConnection class, then which one should I use?
thanks!
... more >>
compile time casting guarantee
Posted by Eric Newton at 12/31/2003 9:33:47 AM
I'm wondering if there's a compile time cast gaurantee if any?
Given the following:
//----- begin sample code
public interface IRegion
{
string Text { get; }
RectangleF Area { get; }
}
public class Region : IRegion
{
public Region()
{
}
public Region(string... more >>
How do I convert time_t data to DateTime type
Posted by trellow at 12/31/2003 7:25:27 AM
Does anyone know how to convert data that was written to a
file in the "time_t" format to the C# DateTime type?
Thanks in advance!... more >>
pass structure address to un-managed code
Posted by Yoramo at 12/31/2003 6:33:55 AM
hello
I'm calling Win32 API methods like "SendMessage" in this method there
are the lParam & wParam parameters, sometimes I need to pass a structure
address in the lParam or wParam.
the only way I found that workes is to define SendMessage like that:
[DllImport("User32.dll",CharSet = ... more >>
Data (text) conversion
Posted by Calvin Lai at 12/31/2003 6:33:28 AM
If my data in SQL server was stored from a web application with
requestEncoding set as iso8859-1. And now I want to change the data encoding
to big5, (or anything else), how could I do that? Thanks for all advice and
input.
Calvin
... more >>
Select a diferent cell or row at run time...?
Posted by Bernardo at 12/31/2003 4:13:22 AM
Hi,
Anyone knows how can I sellect a diferent cell or Row at
runtime?
Thanks a lot... more >>
Datagrid Problem "Bug???"
Posted by Bernardo at 12/31/2003 2:29:45 AM
I'm making a windows project...
I have a datagrid with one checkbox collumn.
When I check the checkbox (sometimes) the grid redraws and
stays white with a Red X in the middle and the application
freze...
I think I have to make a datagrid "refresh" before and
after de check...
I'm using... more >>
ASP.NET1.1 Timeout period elapsed prior to obtaining a connection from the pool.
Posted by Kamalanathan T. at 12/30/2003 11:16:33 PM
Hi,
We have developed an Web application in ASP.NET with C#
and we r using SQL Server 2000. We get the Timeout expired
error, when more than 300 concurrent users hit the site.
I hagone thru the code, to check whether all the
Connections are closed. everything is perfect, and infact
t... more >>
Getting a value out of StringDictionary
Posted by John at 12/30/2003 10:59:15 PM
Hi! I have a StringDictionary itialized as follows:
private void frmICUCalculations_Activated(object sender, System.EventArgs e)
{
StringDictionary dataDict = new StringDictionary();
dataDict.Add("Item1", "2001" );
dataDict.Add( "Item2", "2002" ... more >>
How do Embed a file as a resource?
Posted by M at 12/30/2003 10:49:44 PM
Hi Folks,
Does anyone know how to embed a file into a resource in C#? You
seem to be able to embed Icon, Bitmap, Cursor's & Strings. But how do you
embed a file???
In VC++ version 6 you would, Find the Resource, Load It, get its size, and
then write it out to where ever you ... more >>
ComboBox
Posted by Jim Heavey at 12/30/2003 9:42:57 PM
You apparently can bind a HashTable to a ComboBox? How do you set the
ValueMember and DisplayMeneber?
... more >>
Making my own type castable to string?
Posted by Kenneth Baltrinic at 12/30/2003 8:57:26 PM
I am implementing a class that routinely needs to be cast to and from a
string. I would love for some way to make the compiler realize that my
class can be cast to and from a string. Implementing a TypeConverter seems
like it is designed to do this kind of thing but it doesn't actually do it,
... more >>
Doubt
Posted by Baskar RajaSekharan at 12/30/2003 8:38:18 PM
Hi,
Please clarify my doubt in C#.
I have one Dll which is created in (VC7). I want to load the Dll
dynamically in my C# project. How to do that. How to load the Dll
Dynamically.
In Vb, We get the ProgId and then with the help of CreateObject we
do it. Similary Is... more >>
Re:
Posted by Charlie Williams at 12/30/2003 7:27:53 PM
This works for me.
string myValue = dataDict["Item3"];
By the way, I'm assuming you are refering to the
System.Collections.Specialized.StringDictionary, but I
don't see a member named "Item"
Charlie
... more >>
Serializing?
Posted by Tobias Zimmergren at 12/30/2003 7:18:21 PM
Hi, just wondering what serializing really is, and howto use it?
Thanks.
Tobias
__________________________________________________________________ Tobias
ICQ#: 55986339 Current ICQ status: + More ways to contact me
__________________________________________________________________
... more >>
Language Enhancement Idea
Posted by Matt Osborne at 12/30/2003 6:03:45 PM
I don't know if this is the correct forum to propose a new feature for the
C# languange, but I thought I would do so anyway.
I was working on a project and thought of a feature that would possibly
help many developers. It was the adition of a new loop that crossed a
foreach and a do loop. ... more >>
Threading problem
Posted by Paul E Collins at 12/30/2003 5:46:37 PM
I have written a game that allows the user to upload high scores to the Web.
I now want this upload to occur on a separate thread so that the window
remains responsive.
My attempt looks like this:
m_worker = new Thread(new ThreadStart(UploadScores));
m_worker.Start();
// ...
private void ... more >>
Attributes and Generics in C#
Posted by Brian at 12/30/2003 5:34:01 PM
Hi,
According to An Introduction to C# Generics
(http://www.msdn.microsoft.com/vcsharp/default.aspx?
pull=/library/en-us/dv_vstechart/html/csharp_generics.asp)
the AttributeUsage enumeration has a GenericParameter
value.
[AttributeUsage(AttributeTargets.GenericParameter)]
public class ... more >>
String Manipulation
Posted by kuya789 NO[at]SPAM yahoo.com at 12/30/2003 5:29:21 PM
1. How do I remove non-alphanumeric characters?
Input: dEFD&*fdff/df;
output: dEFDfdffdf
2. How can I capitalize the first character of a word?
Input: remember
Output: Remember
Thanks... more >>
Graphics and GDI+
Posted by Gary Morris at 12/30/2003 5:26:11 PM
Happy New Year, all!
I hope that everyone is in good spirits, and for those
that choose to indulge, you are imbibing in good spirits
as well. The subject is graphics and GDI+, something
that may or may not belong here, so I'll start with this:
Is there a newsgroup that specifically deals wi... more >>
migrating ASP to ASP.Net: #include
Posted by Davíð Þórisson at 12/30/2003 4:49:19 PM
hi,
I am getting really excited to start migrating so much less time it's going
to take to do my web projects!!
in my old Asp web I had a common frame for all pages which was simply
included at top of each .asp file. Actually all layout was done through
various strings (strFrame, strMain, str... more >>
A class with only static members
Posted by Simon Harvey at 12/30/2003 4:36:06 PM
Hi everyone,
I have a class that I want to use to store application state information. I
was thinking that I would probably want to make all the information static
in that class because the application should only have one copy of
application information.
First Question:
Is this the right ... more >>
ZeroDeployment
Posted by Suresh at 12/30/2003 4:34:53 PM
Hi All,
1) Zero Deployment talks of downloading an application
from the webserver and running it(Talks of placing the
client app in the virtual directory of IIS).
I have a client ( built using C# on .NET) acessing a
webservice running of Tomcat. Now how do I place the
my .NET client in T... more >>
Editable list view style control
Posted by wonil kim at 12/30/2003 4:28:33 PM
Hi, All.
Can I use ListView control for sub item editing purpose?
For example,
Name Value
------------------
X 1
Y 2
ATTR 10
If I have above style list name and value pair, is it possible allow to user
edit "Value" column only?
If I didn't... more >>
C# vs Sun Java security
Posted by Mario at 12/30/2003 4:08:27 PM
I've been reading some Sun Java articles where they say
Applets cannot import dlls and cannot write to disk.
(This does NOT apply to applications, only to Applets.)
Supposedly, this is NOT something you can cotrol with a
security manager or in any other way. The dll exclussion
is due to t... more >>
Import a DLL at runtime
Posted by David Vestal at 12/30/2003 3:29:25 PM
I need to import an unmanaged DLL (not COM or .NET, just a plain DLL), but
there's a caveat. I don't know its name at compile-time.
I know the functions and function signatures that are in it, but I can't
discover the name of the DLL until runtime. DLLImport, unless I'm
mistaken, can only... more >>
Exiting an application
Posted by Andrew Warren at 12/30/2003 3:28:00 PM
I'm trying to exit a Windows Forms application while in
the form's constructor (after InitializeComponent() has
been called) and am finding that calling Application.Exit
() still leaves the form displayed and running. Trying
to force the form to close with this.Close() does not
work either... more >>
Read Standard Output of a Child Process by CreateProcessAsUser
Posted by bo_dong NO[at]SPAM yahoo.com at 12/30/2003 3:19:58 PM
In my asp.net webservice application, I need to launch a DOS process
as authorized users. To impersonate users, I use <impersonation =
true> in my webconfig. I can't use Diagnostics.Process.Start, because
it creates a child process using parent process token "System", not
the impersonated thread... more >>
|