all groups > c# > january 2004
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
What does this do? Object[0]
Posted by Chad Z. Hower aka Kudzu at 1/31/2004 11:44:26 PM
Object MyOnject = new Object[0];
What does the [0] signify?
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com
... more >>
WebService
Posted by Daniel P at 1/31/2004 10:33:54 PM
Hi,
How can I use Webservices for transmit huge data to the database?
thanks,
dep
... more >>
about inherited
Posted by Owen at 1/31/2004 9:48:51 PM
Hello:
How I can know the class of some object?. Like in Object Pascal with this
sentence TObject.ClassType = SomeClass?
Best Regards.
... more >>
Where to put images
Posted by MC D at 1/31/2004 9:45:14 PM
I'm new to win forms programming, and am having a bit of trouble figuring
out where to place images that will accompany the program. Do you place
them in the bin directory?? What if you are making a control library to
accompany the app, and there are images that accompany the controls? Do you
... more >>
Variable declaration intellisense...
Posted by Da~One at 1/31/2004 9:21:33 PM
Hi all:
I am almost positive someone showed me how to do this before, but I cannot
remember how it is done.
Problem:
<csharpcode>
public void DoSomething()
{
SqlConnection cn = new SqlConnection();
}
</csharpcode>
Before I type the first SqlConnection, how can I get the intelli... more >>
gdi+ Flatten
Posted by WoodBeeProgrammer at 1/31/2004 8:09:28 PM
When i try using Flatten on my ellipse, i get 6 points no matter how fine i
set the flatness parameter. According to my understanding of the
documentation, the smaller i make flatness the closer the approximation
should be, ie many more points in the approximation.
What am i doing wrong?
T... more >>
Why does this fail? Is my extern signature wrong?
Posted by Hasani at 1/31/2004 8:04:12 PM
OK, I'm trying to programmatically create an Access database/mdb file but
CreateDb(string) always returns false. I don't know what I'm doing wrong, is
it my extern signature?
Thx in advance
my references:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_core_d... more >>
Preventing an MDI child from being closed
Posted by Iain at 1/31/2004 6:34:29 PM
I would like to prevent the user from closing MDI child windows. However, I
would like them to be able to minimize and maximize them.
Setting the Control Box to false removes the minimize and maximize too.
An obvious thing to do is to handling the CLosing event and cancel it.
Sadly, if you ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
intercepting HTML?
Posted by L# at 1/31/2004 6:13:15 PM
Hi,
I'm looking for a starting point here. I want to 'intercept' incoming
HTML on the client, before it's handled by the browser. Is this
possible?
Kind regards ,
Ludwig ... more >>
.NET Framework Directory
Posted by Mark mm at 1/31/2004 5:56:34 PM
The Framework dir is
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
Does anyone know how I can programmatically return the Directory of the
..NET Framework I know how to get the version System.Environment.Version.
To get the Directory I was thinking of using
System.Environment.SystemDir... more >>
C++ templates in C#
Posted by Bob Weiner at 1/31/2004 5:55:10 PM
Hi,
Forgive me if this has already been discussed but does C# have a construct
like C++ templates?
bob
... more >>
How to immediately close socket release port in C#t?
Posted by L.J.SONG at 1/31/2004 5:31:10 PM
I use following code to create socket and connect to a server app:
/// code /////
Socket connecter = null;
IPEndPoint localEp = null;
IPEndPoint remoteEp = null;
IPHostEntry he = Dns.Resolve("localhost");
IPAddress localAddr = he.AddressList[0];
localEp = new IPEndPoint(localAddr,... more >>
Not used reference assemblies
Posted by Vadym Stetsyak at 1/31/2004 4:38:12 PM
Hi there
I am building an assembly Asm1, and it has references to Asm2 and Asm3.
(/reference: Asm2.dll Asm3.dll)
In Asm1 I am using types only from Asm2. The question is will CLR loader
load Asm3?
I assume that assemblies are loaded only when we reference to the type that
assembly contains... more >>
How to sort this array
Posted by Arjen at 1/31/2004 2:19:12 PM
Hello,
Persons is a hashtable which I convert to an array.
Person[] aPerson = new Person[Persons.Count];
Persons.Values.CopyTo( aPerson, 0 );
Now I can access the person items like aPerson[3].name or
aPerson[3].birthdate.
How can I sort all the array items based on the birthdate?
So t... more >>
How do I: Insert text in an XML document?
Posted by name at 1/31/2004 1:37:15 PM
Say I have an xml document called test.xml
that looks like this:
<?xml version="1.0"?>
<!--test.xml-->
<theroot>
<group_a>
<stuff>This</stuff>
<stuff>is</stuff>
<stuff>a</stuff>
<stuff>test</stuff>
</group_a>
<group_b>
</group_b>
</theroot>
And I want to insert some s... more >>
How to determine the domain for a NetworkCredential ???
Posted by Prehaut Anselme at 1/31/2004 1:32:28 PM
Hi,
I need to create a WebRequest with an automatic proxy
I have the specification of this porxy (host & port)
I ask the user their own login and password, but the proxy tells me that the
connection need an authentification.
During the creation of a NetworkCredential you can define the ... more >>
Accessing config files programatically
Posted by Simon Harvey at 1/31/2004 1:21:16 PM
Hi chaps,
Can someone direct me to the necessary class that will allow me to write
information into my applications .config file? I know how to read
information but I'm sure there must be a way to write out to the config file
easily as well.
Also, my application doesnt actually have a confi... more >>
Source Code Compare
Posted by Doug at 1/31/2004 12:49:57 PM
Hi,
I'm looking for a tool to do Source Code comparison. Can anyone point me in
the direction? Thanks
Doug
... more >>
Sample Code - C# or VB?
Posted by Chad Z. Hower aka Kudzu at 1/31/2004 12:13:34 PM
I need to provide a series of demos for an assembly. There are potentialy
several dozen of them. None of them are very complex, however maintaining two
versions of them will be very maintainance intensive.
Some of the very basic ones I have provided in both C# and VB. However moving
forward... more >>
Creating a Pause in Execution
Posted by C# Learner at 1/31/2004 12:03:37 PM
What's a nice way to create a non-blocking pause in execution?
Will I need to use some kind of timer for this, or is there a nicer
way?... more >>
C# exception question
Posted by Kevin Jackson at 1/31/2004 11:20:39 AM
In the following code snippet, will the finally block be executed when the
throw is executed in the catch block???? I'm assuming it will.
catch (Exception e)
{
// if (ContextUtil.IsInTransaction)ContextUtil.SetAbort();
ReportError objError = new ReportError();
objError.Pe... more >>
C# IDE question, adding events
Posted by Rene at 1/31/2004 10:27:18 AM
Hi,
I'm expierenced with C++ and VB6 and learning C#. I tried some small
application in VB.NET too.
But I'm stuck with the IDE: Say in put a button on a form and I double click
the button. C# generates the declarations for the Click event.
In VB6 and VB.NET (when I'm standing in the butto... more >>
Alternatives to the Output window for Debug info
Posted by chris at 1/31/2004 9:51:36 AM
Hello all -
Preface: This isn't a C# Builder question but if you happen to have the
answer to my primary problem, please feel free to chime in ;-)
I'm using Borland's C# Builder (Personal) and it seems there isn't an Output
window (where the Debug.WriteLine() info would go) like VS has. ... more >>
C# Application With Web Pages
Posted by Clive Foley at 1/31/2004 7:50:52 AM
Hey everyone.
i have written a simple server that accepts user connections. these
connections are made by a simple game which i also made. I would like
this game to be played across a network through my server inside of web
pages. The thing is the game is 2 player so i want peple to initiat... more >>
html parser
Posted by majid at 1/31/2004 7:46:08 AM
I want write a program with c# to pars a html file how ccan i do this with system.mshtml? or there is other way to do it p;ease help me?... more >>
using a variable within a object name
Posted by Luke Smith at 1/31/2004 4:49:16 AM
I want to loop thru number (0 - 10) and assign values to a hyperlink
webcomponent which uses the number in the components id.
for (i=0;i<10;i++)
{
hl_[value of i].hyperlink = "hodhodhso";
}
any suggestions?
... more >>
TextBox.AcceptsReturn Property
Posted by Chuck Bowling at 1/30/2004 11:48:16 PM
Am I doing something wrong or does the TextBox.AcceptsReturn property not
work as documented?
According to the help, "true if the ENTER key creates a new line of text in
a multiline version of the control; false if the ENTER key activates the
default button for the form."
I don't want the E... more >>
String question
Posted by Tdw at 1/30/2004 11:41:22 PM
In C#, you can use the string data type to hold a series of characters. The
string can be compared to another string using the == operator in the same
way that you compare numeric or character variables. However, you can only
use the == comparison operator with strings that are assigned literal
... more >>
Datagrid displaying related ArrayLists
Posted by Christiaan at 1/30/2004 10:31:43 PM
Hi,
I have two classes, Department and Employer, the Department contains an
ArrayList (employers) filled with Employer objects. I want to display an
ArrayList filled with Department objects using a Datagrid. Therefor, I do a
setDatabinding with the Deparments ArrayList and I create two
Datagrid... more >>
Converting array data
Posted by Pete Davis at 1/30/2004 9:33:24 PM
I've never done this in C# so I don't know what the appropriate way of doing
it is.
I've got an array of bytes and I need to convert the array into "usable"
data. For example, the first 4 bytes need to be converted to an enum. The
next 4 bytes to a 32-bit int. And so on. I'm basically populati... more >>
Exceptions: Order of Catch Statements?
Posted by clintonG at 1/30/2004 9:24:00 PM
Could someone provide me with a URL documenting the
specific order of exceptions?
--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@REMOVETHISTEXTmetromilwaukee.com
... more >>
MyClass on the toolbar
Posted by Chuck Bowling at 1/30/2004 8:29:42 PM
I'm working on a class that inherits from TextBox.
Is it possible to put this object on the toolbar so that I can drag and drop
it on a form the same as a TextBox?
... more >>
Web App with Dataset problems.
Posted by TonyM at 1/30/2004 6:56:00 PM
Hi all,
First, Let me say I feel like a complete idiot here, and shamefully come to
you for help. I've read and read and can't get this to work in a web
application, however in a windows application I have no problems. Here it
is:
I have an sqlDataAdapter, sqlDataConnection, and a DataSet... more >>
Same method but different events
Posted by Ramsin Savra at 1/30/2004 6:51:35 PM
Hi Group,
How can I define one function but able to use it in different events? let's
say I have a method which should be called in KeyPress and KeyDown and Click
either ?
thanks
... more >>
How to sort a datagrid when clicking on column?
Posted by Jon Davis at 1/30/2004 6:48:32 PM
How do I enable my Windows Forms datagrid to sort when I click on the column
header? I have a collection of custom classes that are displayed in my
datagrid, and it works great except for this missing feature! AllowSorting
property is set to True, but it doesn't seem to do anything.
Thanks,
J... more >>
how to put bmp images in listview or listbox
Posted by Kanaiya at 1/30/2004 6:28:53 PM
hello
how to put images in either listbox or listview.bye.
--
With regards,
Gangani Kanaiya.
... more >>
deleting carriage return and linefeed characters from astring
Posted by Maxxam at 1/30/2004 6:14:41 PM
Hi,
I have a simple question but i can't solve it simple. How can i remove
carriage returns and linfeed characters , \n\r, form a string?
Thanks,
Andre
... more >>
TreeView2XML
Posted by thanigai at 1/30/2004 5:45:04 PM
how to Convert TreeView Nodes to an XML File?
... more >>
ADO.NET OnRowChanged
Posted by John Smith at 1/30/2004 5:27:36 PM
I've developed an application that uses DataSet's for data storage. Now
I had this idea to make things easy that I could hook into the
DataTable's OnRowChanged delegate to know when to Update the dataset. So
when a OnRowChanged is fired I connect to my local database and invoke
Update on t... more >>
Serial communications in .NET???
Posted by Jim H at 1/30/2004 5:25:41 PM
I need to communicate using a serial port. Are there any classes or
libraries for this in .NET? If not are there any open source libraries for
this out there?
jim
... more >>
locating a carriage return in C++
Posted by Laura D at 1/30/2004 5:11:09 PM
How can I identify a carriage return in C++?
\r, \f, \0, \n, \t does not work. I have also tried !isprint(ch), iscntrl(ch), isspace(ch), etc....with no luck!
I even poked around in the MSDN and found some code that MS claims will save a file in unix format and I cut and pasted into my program(and ... more >>
Conditional compile from a main file with defines, is it possible?
Posted by John Dolinka at 1/30/2004 4:37:41 PM
I have a project of several files with #defines to setup a conditional
compile. I would like to put these #defines in a single file and change the
conditional compile from this one file with the #defines using an "include
like" directive.
C# does not have a #include directive so it appear... more >>
C# DataGrid Issue
Posted by Sunny at 1/30/2004 4:11:07 PM
Hi
I wanted to create some custom DataGrid columns that i could use in my DATAGrids and allow the user to use them
e.g. in addition to the TextBox, and Boolean column which are in the DataGrid by default, I would like to use, images and progress bar columns and perhaps any generic OBJECT column
... more >>
adding spaces to string
Posted by VM at 1/30/2004 4:08:49 PM
I'd like to add several spaces to a string variable. For example, if the
value is "VM", I'd like to add 7 spaces so the new value is "VM ".
Is that possible?
Thanks.
... more >>
C++ capability within C#
Posted by David H. at 1/30/2004 4:01:09 PM
I have some background with C and C++ and am considering migration to Visual C#.NET for academic work. To get started, is it possible to compile working C++ code in the Visual C#.NET environment? If so, how is it done
Thanks in advance for any help.... more >>
Bound Control
Posted by Jim Heavey at 1/30/2004 3:22:17 PM
Hello, when you have bound a datatable to a control, say a comboBox and you
have set the "ValueMember" and the "DisplayMenber". The cbo.SelectedValue
returns the object which equates to the "ValueMember", but how do you
retrieve the object which is associated with the Display Member? I have ... more >>
Where can I download a Windows Mobile 2003 emulator?
Posted by Jim H at 1/30/2004 3:09:34 PM
Where can I download a Windows Mobile 2003 (PocketPC 2003) Emulator?
Thanks,
jim
... more >>
TextBox Find and Replace !
Posted by Ramsin Savra at 1/30/2004 3:03:19 PM
Hi,
What do you suggest to do if I want to do a search in TextBox ? I know that
using RichTextBox, we could have Find method to search for a specific word
or information but I was wonder if somebody knows some methods for Find and
Replace in TextBox.
Thanks
... more >>
Convert string to font
Posted by Wim at 1/30/2004 2:58:42 PM
I would like to store the ListView font in the XML config file. So I have
a string variable listFont that stores the font (font.ToString()). It
must be a string variable because a Font object cannot be written to the
XML config file. Next time the program is started the font is read from
the... more >>
copy var contents to the clipboard
Posted by Stephen Russell at 1/30/2004 2:50:58 PM
I am getting frustrated! I have huge strings in making segments for a SP in
SQL Server. Everything looks good but I want to copy and then past into
ISQL as a test.
this is my error:
Line 1: Incorrect syntax near 'whereclause'.
Description: An unhandled exception occurred during the executio... more >>
|