all groups > c# > october 2003 > threads for saturday october 25
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
event add remove
Posted by news.microsoft.com at 10/25/2003 11:45:00 PM
Why must I define a remove acessor for an event when I just want to process
the add, like to add logging or to verify that a subscriber could indeed
subscribe to the said event.
... more >>
Issue implementing type converter
Posted by Kerry Sanders at 10/25/2003 10:10:31 PM
I am working on a project for work where I need a specialized type
converter to convert the value of a string which is edited in a grid
back to the underlying object type from the cell. The value in the
cell is displayed as a string from the ToString() method in the class.
Anyway, I am trying... more >>
Thinking out loud about pass by value semantics
Posted by Alvin Bruney at 10/25/2003 7:00:57 PM
The more knowledgable I get about this .net world, the more questions I
have.
..NET uses pass by reference for all objects....uhhh I mean pass by value.
(Couldn't resist this jab)
Consider a string object whose value is passed as a parameter to a function.
The reference is pointing back to ... more >>
Circular Image
Posted by cql60 at 10/25/2003 5:37:14 PM
Hi all PRO out there,
Does any body know how to draw a Circular image or ellipse image or even
star shape image base on Existing image. Any help is deeply appreciated.
Have a good weekend all of you.
Thanks you all so much
Kate Luu
... more >>
How can I print controls to paper?
Posted by Clark Nu at 10/25/2003 5:32:46 PM
My English is very pool.
I have a window contains some controls that based on "UserControl",now I
want print them on a paper,and I want them can keep the true size,it means
if had a control with the size "10*10"(inch),I hope in the paper it has the
same size "10*10"(inch),and more legible,cont... more >>
Declaring types in an Interface
Posted by Peter Berry at 10/25/2003 5:29:52 PM
I was surprised and somewhat disappointed by the fact that you cannot =
declare types in an interface. I discovered this when defining an =
interface that included events, where the definition of the delegates =
had to be placed outside the definition of the interface. To me, the =
delegate defi... more >>
IRC
Posted by Chris Miller at 10/25/2003 5:19:12 PM
Is there an IRC channel anywhere that's related directly to C# (and is very
popular)?
-Chris
... more >>
memory leak with streamwriter? help!!
Posted by Rob Corwin at 10/25/2003 5:17:18 PM
Hi,
a c# app of mine that parses 30,000 xml files writes large amounts of
data to file (> 2GB) using a streamwriter object (sw). everything works
fine except that the memory used by the app grows linearly during
execution and eventually crashes the computer. without going into too
much ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Folder Security (ACL)
Posted by Arran Pearce at 10/25/2003 5:16:47 PM
What's the best way to set and read ACL's on files and folders using C#?
At the moment I am using System.Diagnostics.Process to run cacls.exe however
this is proving unreliable and does not meet all of my needs.
thanks for any suggestions.
Arran
... more >>
Threads - what's going wrong
Posted by Jerry S at 10/25/2003 4:55:21 PM
Hi
This is probably simple, but can anyone explain why this won't work:
public void SomeMethod()
{
//Do stuff
}
ThreadStart myThreadDelegate = new ThreadStart(SomeMethod);
Thread myThread = new Thread(myThreadDelegate);
It gives me a "A field initializer cannot reference the... more >>
C# app asks for its installation CD
Posted by Michael A. Covington at 10/25/2003 3:48:00 PM
What would make a C# .NET application do the following? This is the
customer's report, and in place of XXX is the name of the program.
Sometimes when I go out of the software and later go back [i.e., relaunch
the program?] a box comes up and reads
'The feature you are trying to use is on... more >>
Changing font of a RichTextBox
Posted by Michael A. Covington at 10/25/2003 2:44:53 PM
When you change the Font property of a RichTextBox, does it change the font
of all the contents, or only the text subsequently added, or only the
selection, or what?
... more >>
SQL Not Exist
Posted by Eric at 10/25/2003 2:31:05 PM
I have a table called Elections where All is Yes/No
Title ... ... All
I also have a table called HasVoted
ID Title
And a table called Students
Name ID ... ...
I need to write a query that finds all the Titles in Election where All = yes and checks to make sure that t... more >>
Determine control type
Posted by shazalmay NO[at]SPAM hotmail.com at 10/25/2003 2:01:17 PM
hi, i have a window form with different controls. i want to loop
through all the controls and write the types and lables of each
control in a file. I dnt know how to determine the type of a control
that wether it is a button, lable or text box.
any body out there to help please.
thanks in adv... more >>
readonly richtextbox
Posted by blah at 10/25/2003 1:52:21 PM
if i change my rtb to readonly then when a user presses a keyboad key it
'bings'. how do i stop the noise evertime a user presses a key?
thanks,
Rob
... more >>
menus and mdi
Posted by blah at 10/25/2003 1:15:43 PM
if i have an mdi parent with a menu option of View->source and this menu
item creates a new child window how do i make a checkmark appear when the
child form is loaded and have the checkmark dissapear when the childwindow
is closed? and how do i stop a child window from being created more than
o... more >>
interface and enum
Posted by Torben Madsen at 10/25/2003 12:57:10 PM
I need a intereface so that i get the same structure in several arrays that
i create. I think that i need to use enum in a interface. Abstract classes
don't do the job as i need to inherit from several interfaces.
This doesn't Work.
Any ideas?
using System;
namespace well_test
{
public in... more >>
Type.GetType for referenced library returns undefined value
Posted by jean_stax NO[at]SPAM hotmail.com at 10/25/2003 12:51:24 PM
Hi !
I created a sample library project. In my second project I reference
this library
and make the following call, which returns "undefined value":
Type myType = Type.GetType("SampleLib.MyClass");
My guess was that the function fails because my library isn't loaded
yet.
So I wrote the ... more >>
Processing messages in a while loop
Posted by Jerry S at 10/25/2003 11:35:45 AM
Hi
A beginner's question.
I want to run through a series of instructions over and over until a
user hits a button.
What's the standard way of making the application process user input
whilst it is in a loop like this (i.e., so that it doesn't just get
stuck in the loop forever)?
I see... more >>
com interop passing parameter (DWORD *)null
Posted by No Spam Man at 10/25/2003 11:18:48 AM
I've got an app that I've written using C# and some type libraries I've
generated from some of the directx .IDL files.
I have got a problem with calling some of the methods on the generated
interfaces. As an example, I've got a method I want to call that has a
parameter call reserved, that mu... more >>
efficiency of declaring local variables
Posted by Oliver Corona at 10/25/2003 10:50:54 AM
I am wondering if anyone has any insights on the performance benefit (or
detriment) of declaring local variables instead of referencing members.
Is allocating memory for a new variable more efficient than repeatedly
referencing the member in a loop?
Maybe using a string isn't the best exam... more >>
Pointers and managed code
Posted by Craig Kenisston at 10/25/2003 10:12:31 AM
Which are the disadvantage of use pointers in the code ?
In general.
I know it turns your code into unsafe code, because even
you have to flag it ... but does it still 100% managed
code, right ?
or it doesn't ?
Which are the potential problems I would have ?
Do I lose portability ?
... more >>
Changing Order of DataGrid Columns
Posted by nm at 10/25/2003 9:14:16 AM
How can I change the order of DataGrid columns?
I have a Master-Detail relationship and the columns in the datagrid look
like they are lined up in alphabetical order which is not what I want.
... more >>
Question about MS word programming
Posted by ryerras NO[at]SPAM yahoo.com at 10/25/2003 7:46:26 AM
Hey Guys,
I am trying to develop an application, where people can open and edit
word documents and RichTextFiles. I am using RichTextBox for
editing.., but I am unable to figure out how to open Word Documents. I
figured I need to add some COM library by searching through some
forums.. But I wa... more >>
XmlNode.SelectSingleNode exception
Posted by Jesper at 10/25/2003 6:21:09 AM
Hi,
I've read somewhere that try/catch shoudn't be used as an
alternative to if clauses (maybe it was in C++ regi).
However, when using XmlNode.SelectSingleNode(XPath
expression) to get a node, it throws an exception instead
of returning null if the node doesn't excist. I'm a bit
tentat... more >>
FileStream
Posted by [Gho] at 10/25/2003 5:46:43 AM
Hi
IO open a file steream for reading , but i want this file
to be changed by other application .
I trying the following line code to open it for reading
only :
FileStream Headerfp = new FileStream
(path,FileMode.Open,System.IO.FileAccess.Read);
but now i can't write to this file from ... more >>
Multiple sounds in c# using .NET Compact Framework
Posted by Rob Collins at 10/25/2003 5:24:14 AM
I have been trying for 3 weeks now to make multiple sounds
at once using C# targetted to a pocket PC using visual
studio 2003. I have been blocked at every turn - mostly
because of the mismatch between the managed code model of
c# and the underlying CE API and its c++ flavour.
All I want ... more >>
SQL Connection problems
Posted by Eric at 10/25/2003 5:01:16 AM
I have an app that uses SQL with access. I've been fine through the whole thing until I tried using the UPDATE command. When it gets to ExecuteNonQuery() it tells me that there is no open connection. A few lines before it though I can access the database. I went through the query builder and it ... more >>
MSI (Not the make)
Posted by Jesper at 10/25/2003 4:20:00 AM
- but the program.
Hi,
I have written a program that needs to be distributed to
a larger number of computers in the company where I work.
For each distribution I need to check for the precence
of .net, and if not I need to install the fxdotnet.exe
thing. Next I need to create some k... more >>
C# events need generic "Unsubscribe" method
Posted by Jon Davis at 10/25/2003 2:14:06 AM
The garbage handler in the .NET framework is handy. When objects fall out of
scope, they are automatically destroyed, and the programmer doesn't have to
worry about deallocating the memory space for those objects. In fact, all
the programmer has to worry about is the total sum of objects loaded i... more >>
C# Network... Need Suggestions.
Posted by mEEEEE at 10/25/2003 1:40:09 AM
I want to transfer n number of binary files from a server
to a client one by one.
I am using TcpListener and TcpClient.
Any suggestions?
mE... more >>
separate array into sub-arrays
Posted by Yanhao Zhu at 10/25/2003 1:23:32 AM
Hi, all,
If I have an array like
int[] m = new int[] { 0, 1, 2, 3 },
is there a way I can separate the array into two, like
int[] m01 = somefunction?(m,0,2) // m01 will hold 1st and 2nd items
in array m
int[] m23 = somefunction?(m,2,2) // m23 will hold srd and 4th ite... more >>
How can I do this without Regex ?
Posted by Tim Conner at 10/25/2003 12:19:56 AM
Is there a way to write a faster function ?
public static bool IsNumber( char Value )
{
if (Regex.IsMatch( Value.ToString(), @"^[0-9]+$" ))
{
return true;
}
else return false;
}
I think, if I have to repat this some thousands time, it
could beco... more >>
how can you determine what language an exe was created in?
Posted by thatisvaliant at 10/25/2003 12:19:34 AM
is it possible to determine what language an exe was created in? for
example, i am interested in know what language onenote.exe and infopath.exe
are written in.
... more >>
|