all groups > c# > june 2004 > threads for tuesday june 15
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
dotnet running in Unix
Posted by shinma at 6/15/2004 11:41:17 PM
Have anyone tried to code C# in a Unix box running solaris ??
Does it working fine ? or any issue you've found ?
... more >>
postings here using real name lead to abuse by spammers : slightly ot ?
Posted by Bill Woodruff at 6/15/2004 11:30:46 PM
I have, in the past, felt it a point of honor in posting on the public MS server groups, like this one, to use my real name, and my
real e-mail address, but lately e-mail messages by the hundreds are being sent out by spammers with fake headers so they look like
they come from my domain name. Some... more >>
[Q] Unicode characters as Button text
Posted by stuie_norris NO[at]SPAM yahoo.com.au at 6/15/2004 10:48:51 PM
Hi All,
I am new to csharp and Visual Studio and trying to learn.
I would like to have a button with an up arrow as it "label" instead of text?
Is this possible using the normal button in System.Windows.Forms.Button?
I wish to use Unicode 21E7 from the Arrows Range 2190-21FF.
How do ... more >>
Convert Delphi record structure to C Sharp
Posted by Mel WEaver at 6/15/2004 9:14:20 PM
Hello,
I have the following delphi structure for a binary file. I'm looking
for idea how to read this file.
Mel
type
TMenuDataStruct = packed record
exename : string[150];
caption : string[25];
userid : string[20];
password : string[20];
sparam : string[... more >>
Hashtables and Structs not updating poperly
Posted by Greg Oetker via .NET 247 at 6/15/2004 8:31:14 PM
I have an issue where I have some structs and do to the slow=
searching for a match of a unsorted Array I need to use=
Hashtables=2E The issue comes into play when I want to modify the=
contents of the struct once a Hashtable has been created=2E
Sample Code:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=... more >>
Build Number Retrieval
Posted by Terry at 6/15/2004 8:25:50 PM
New to C# and the VS IDE so apologies to the old sweats for such a basic
question.
Is there a why to program the retrieval of the build number? I am
looking to add this to an xml file every time I compile.
This also needs to be supported on the Compact Framework.
... more >>
C# books covering the XML part
Posted by Jeff at 6/15/2004 8:24:21 PM
Hi all!
I am looking for a good C# book, that covers the XML part deeply.
I've got these C# books:
- Developing and implementing Windows-based Applications with Visual C#
and Visual Studio .Net
(by Amit Kalani)
- Programming C# (by Jesse Liberty, O'Reilly)
excelent bo... more >>
tab order on a user control
Posted by Bob Cummings at 6/15/2004 8:02:42 PM
Greetings
I have googled this to no avail, maybe someone here can help. I have a
user control that has several radio buttons and text boxes. I place 5
of these user controls on a windows form. I have set the tab order on
the user control and then I set the tab order on the windows form. ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Interface vs. Virtual methods
Posted by Just D at 6/15/2004 7:57:35 PM
All,
What are advantages and disadvantages of these two different approaches?
1 . I create a base class with a few virtual methods, then I derive my
classes from this class, override these methods and use this class.
2. I work with interfaces.
What is faster in .NET? I supposed that de... more >>
Class X Creates Collection of Instances of Class Y. Y's need info from X
Posted by Jim Frazer at 6/15/2004 6:51:40 PM
Hi,
I'm new to C#, but experienced in C++. I'm converting an ActiveX object to
C#. There is a single instance of a "primary" class which creates two
collections of other "secondary" classes. Each of these other classes needs
to access the information in the primary class - items like a mute... more >>
MonthCalendar.DateChanged
Posted by Robert Misiak at 6/15/2004 6:27:32 PM
When using a MonthCalendar.DateChanged eventhandler, is there a way a clean
way to figure out if the date was changed by the user (as opposed to it
being changed programmatically)?
Thanks,
Robert
... more >>
What is the difference between Hashtable and NameValueCollection? Thanks.
Posted by davidw at 6/15/2004 6:05:50 PM
I always use NameValueCollection. But I read an article says the only
differece between Hashtable and NameValueCollection is that
NameValueCollection could accept more than one value with same key? I am not
quite understand this. And I think NameValueCollection's Set is a nice
method. If I use H... more >>
How to get the content of url
Posted by Bill Yin at 6/15/2004 5:29:15 PM
I give you the url.
how can you return the url's result?
... more >>
Sockets, Ports & NAT in C# -- [shaniqua:hover]
Posted by Shaniqua Jones at 6/15/2004 5:25:10 PM
I've designed a C# application consisting of two EXEs: a client and
server. The server runs on my Win2000 Server box, and the client runs on my
customers' machines -- typically XP. The client app connects to the server,
makes a request, and awaits a response. The server sends back the respons... more >>
friend constructor
Posted by Franz at 6/15/2004 4:34:36 PM
Class Foo has a private constructor. How can I give the right to Class Bar
to use that private constructor?
For example, the constructor of System.Windows.Forms.TreeNodeCollection is
private. How can the TreeView create an instance of TreeNodeCollection?
... more >>
Desierialize MFC CArchive in C#
Posted by Kazinski at 6/15/2004 4:26:34 PM
I have some MFC object serialized through CArchive on file.
I want to deserialize this in a C# application (or rather web service).
Since I have no control over the production of the file, it cannot be
serialized as XML.
Did anyone manage to deserialize an CArchive object in C#?
----== ... more >>
web service system.directoryservices call access denied
Posted by Jason Gleason at 6/15/2004 4:17:45 PM
I am using the following method in a web service that utilizes the
system.directoryservices namespace:
[WebMethod]
public ArrayList GetAllAppPools(){
System.DirectoryServices.DirectoryEntry apppools = new
DirectoryEntry("IIS://webserver/W3SVC/AppPools");
ArrayList appPoolNames = new ArrayList(... more >>
Delegates and Events confusion
Posted by Rhy Mednick at 6/15/2004 4:05:41 PM
I have a class (let's call it ClassA) that I've written which has events.
In another class (let's call it ClassB) I create a collection of ClassA
objects. In a third class (ClassC) I create a reference to some of the
ClassA objects created in ClassB. In ClassC I hook into the ClassA events
... more >>
string comparison
Posted by Bas Hamer at 6/15/2004 4:00:02 PM
I'm writing a command line utility that will be able to have grep like functionality on an obfuscated file. Most of the things I’ve been able to figure out up till now, but the regexp part is still a problem.
I need to take a regexp as an argument from the command line and test if to a string.
... more >>
Debug Win32 DLL from C# Client
Posted by Bill Jones at 6/15/2004 3:54:01 PM
I'm trying to setup a test jig where I can call an exported standard
Win32 dll from a C# exe. The program I am writing for requires a
standard Win32 dll but I want to initially test/debug the dll from a
C# client, if possible.
How can I set up Visual Studio (7.1) so that I can step the debugg... more >>
WinForm and Tab Question
Posted by Vai2000 at 6/15/2004 3:40:42 PM
Hi All, I have a Tab Control on a windows form. Each of the Tabs collection
have a Datagrid in it.
When I switch a tab, is there a way I can retrieve contents of the Datagrid
which the Tab has focus on?
Right now I am explicitly using dg1 and dg2 and when a certain Form menu is
clicked I explic... more >>
C# Preprocessor
Posted by jmformoso NO[at]SPAM hotmail.com at 6/15/2004 2:45:04 PM
Hi, is there any way to determine if a class is in one project or
another with the preprocessor?
I have the class shared in sourcesafe, so it belongs to 2 projects. I
need to know before compiling where the class is so I won't compile
code that I wont need in one of the two.
#define is no g... more >>
select/highlight multiple rows listitems.
Posted by mike at 6/15/2004 2:42:28 PM
How do i do the following:
lbCountries.SelectedValue = "826";
lbCountries.SelectedValue = "840";
Basically i've set the selectmode to multiple and want to select multiple
values of the listbox on databind.
the problem is this only selects the last row "840" -- i would imagine this
woul... more >>
Regular Expression
Posted by kuya789 NO[at]SPAM yahoo.com at 6/15/2004 2:37:23 PM
how can i write a function that returns true when it sees
"textbox1.value" (without quotes) only and returns false when it sees
func(textbox1.value, var) or anything else.
Thanks,
Aaron
example text
----------------------------
some line
func(textbox1.value, var)
some line
some line
t... more >>
exchange of object reference that is used along with "using" keyword
Posted by Philipp Sumi at 6/15/2004 2:29:34 PM
Hello all
I have a thread that performs some simple I/O within a loop that runs on
a separate thread. I used the using keyword to ensure the writer's disposal:
using (writer)
{
while (myCondition)
{
if (buffer.Count >= this.bufferThreshold)
{
//... more >>
"Constructor not found" exception using Activator.CreateInstance. Is InvokeMember a better choice?
Posted by hazz at 6/15/2004 2:11:07 PM
this is a repost with more concise code (well, for me) and better questions
(I hope....) .
given the following two classes, my intent is to use either
Activator.CreateInstance or InvokeMember pass a token into the instantiated
class DBPassword and return a string;
******************************... more >>
Excel WorkBook.OpenText returns VOID!!!
Posted by jhermdoggydog NO[at]SPAM yahoo.com at 6/15/2004 2:11:02 PM
Hi all,
As you may have guess, I'm working with the Excel object in C#. I am
trying to open a comma-delimited (.csv) file in Excel so I can easily
transfer the data to another Excel WorkBook.
I have read many examples online which all reference the
WorkBook.OpenText method -- for example:
... more >>
{simple?} concatenating byte arrays
Posted by War Eagle at 6/15/2004 1:37:02 PM
I have two byte arrays and a char (the letter S) I was to concatenate to one byte array. Here is what code I have.
I basically want to send this in a one buffer (byte array?) through a socket.
SWXXXXXXXXXYYYYZZZZZZZZZZZZZZZZZZZZZ
Where S is the command for SEND and should just be the charac... more >>
Importing C Function
Posted by Dan at 6/15/2004 1:26:01 PM
I am attempting to use a function written in C and complied to a C dll in my C# project. The function I am attempting to call returns an integer value and takes, as an input parameter, a value of type IACLIENT. In the header file for this function IACLIENT is defined as follows:
typedef void NEAR... more >>
TargetInvocationException InnerException:StackOverflowException on Activator.CreateInstance(t);??
Posted by 2G at 6/15/2004 11:23:14 AM
Hi,
I'm having some problems creating an instance of the dataset I compile in
memory and I don't know why.
I what to do this to Invoke WriteXmlSchema or GetSchemaSerializable so I
could save the xsd of my dataset.
The compiling seems to succeed since cr.Errors.HasErrors returns false;
Anyo... more >>
{simple} int SomeNumber to 1 byte array
Posted by War Eagle at 6/15/2004 10:49:02 AM
I have int SomeNumber (which is less than 256) which I want to convert to 1 byte array so I might send it over TCP. Can someone help me out with writing this line of code?
TIA,
War Eagle... more >>
Object lifetime
Posted by dm_dal at 6/15/2004 10:41:54 AM
Just a quick question regarding object scope and lifetime.
Given the following:
{
DataRow myRow = new DataRow();
...... do some stuff
{
myRow = new DataRow;
..... do some stuff
}
myRow = new DataRow;
..... do some stuff
}
Have I just created ... more >>
Configuration Error
Posted by kscdavefl at 6/15/2004 10:34:01 AM
I just got a new computer running XP. This app workoed p[erfectly when on the old Windows 2000 machine. I am now getting the following error:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the sp... more >>
transactions
Posted by Mark at 6/15/2004 10:27:27 AM
Assume you've created a connection to SQL Server using the SqlConnection
class. You execute two stored procedures. Can you use the BeginTransaction
and RollBack method of the connection object to rollback the results of the
stored procedures if one of the two bombs?
I understand you can do t... more >>
How to pass arguments to a remote constructor
Posted by Clinton Pierce at 6/15/2004 10:21:14 AM
I've got a class that I want to access remotely. The touble is, I can't
figure out how to call the constructor of the class with arguments -- and
the arguments are necessary to initialize the class.
For example, here's my code on the client end:
static void Main(string[] args)
{
HttpC... more >>
instead of actual value get strange charachers on dispaying the XML tag via ASPX web page
Posted by at 6/15/2004 10:11:24 AM
hi,
I have got XML tag <fo:block font-weight="bold" font-size="13pt"><![CDATA[ ?
845]]></fo:block>. Problem is when
i gives xmlURL from c# to InputStreamReader in J# code with the aspx web
page as XML which contain tag.
When i try to display output on PDF, it'll get the value from the tag
<![C... more >>
Cursor Move
Posted by Bill English at 6/15/2004 9:58:01 AM
Is there an event for when the cursor moves? Not for a form, but for the whole screen?
--
I am a 14 year old C# developer, I am completely self taught, so please don't get mad if I ask a stupid question. Thanks.... more >>
C# vs VB.NET
Posted by Fie Fie Niles at 6/15/2004 9:49:02 AM
Some people said that it is better to study C# than VB Net, because they do
not think that VB.NET will exist in the future and C# has a significantly
better chance of surviving. Did you know anything about this? Thank you.
... more >>
C# 2.0 Status
Posted by Hongjun Zheng at 6/15/2004 9:41:56 AM
I learned from http://msdn.microsoft.com/vcsharp/team/language/default.aspx,
that there is C# 2.0 specification. I was wandering if 2.0 has been
implemented,
released in any production and Beta.
Any ideas? Thanks.
HJ
... more >>
404 setting in web.config
Posted by beachboy NO[at]SPAM work at 6/15/2004 9:36:07 AM
hi everyone,
i'm modifying web.config to handle 404 error and redirect to a specific
page, but it can only redirect when i requesting a .aspx page, but not
include .htm and others, my web is developed with c#, thanks you
guys...^_^
rgds,
henry... more >>
2 Questions about DataGrid
Posted by Gidi at 6/15/2004 9:32:01 AM
hello,
i have a datagrid (in C#) and i have 3 questions:
1. how can i know how many rows my dataGrid(dataSet\DataAdapter) has? is it possiable to know with asking the database or i must do it in my storedprocedure and sent it back to the application?
2. how can i make my dataGrid to display... more >>
reflection
Posted by frazer at 6/15/2004 9:22:05 AM
hi,
I have an assembly with many classes in it.
and some of the methods in those classes have this attribute StoredProcedure
before them, which takes different values . (i basically use it to store
storedprocedure names that this function calls.)
[MyCompany1.Data.StoredProcedure("spGetCustome... more >>
foreach loop confusion
Posted by Art at 6/15/2004 8:27:02 AM
Hello,
Here is a fragment of my code, which fails and I don't know why.
---------------------------------
XmlDocument doc = new XmlDocument();
doc.Load(@"C:\mydoc.xml");
foreach (XmlNode objNode in doc.SelectNodes("author"))
{
System.WriteLine(objNode.Value.ToString());
}
-------------... more >>
{simple} Extracting Substrings from textbox
Posted by War Eagle at 6/15/2004 7:58:01 AM
I've been looking at .substring and .trim methods and I still have a question about extracting substrings from a textbox. Basically the textbox contains the full path to a file ... for example C:\testfile.txt or ... C:\download\temp\dlls\testfile.dll
I want to be able to extract the file name f... more >>
Using DataSet in the memory cache???
Posted by Thomaz at 6/15/2004 7:42:46 AM
I would like to know a way to use the DataSet in a memory
cache into a C# application.
I only found examples in ASP.NET applications that they
are not accepted in the C # application.
I am needing to improve the performance of my application
and would like to know as to store in cache th... more >>
Host Name or Computer Name
Posted by Avin Patel at 6/15/2004 7:33:02 AM
Hi,
Who can I get hostname of local machine?
I have found following, but I am not sure all Windows OS(XP/2000/NT/98..) will have the "COMPUTERNAME" environment variable.
System.Environment.GetEnvironmentVariable("COMPUTERNAME");
Is there any better & more reliable way to get hostname/compu... more >>
C# Time zone
Posted by Avi at 6/15/2004 6:33:01 AM
I have a problem to get the different time zone's name for example
I need the name of time zone UTC + 4:30 ("Kabul")
The TimeZone.CurrentTimeZone get my current time zone name
and I couldn't see how to get a different time zone name
please hlp this is very important.
Avi... more >>
Collections, bases classes and inheritance
Posted by Helios at 6/15/2004 6:27:01 AM
Hello,
I've got a c++ background and i'm wondering what's the best approach to this problem.
I've got a base class Animal with a set of minimal properties for an animal. From animal i've
derived a Dog and a Cat class which are extended with specific properties of it's species. Now i want
... more >>
using Split
Posted by Mike P at 6/15/2004 5:38:33 AM
I am using Split to split get a number of items from a multi line text
box. But I need to be able to get the number of elements within the
text box (e.g. if the text box has 2,4,8 in it, I want to be able to
count that this text box has 3 elements entered into it). My code is
below :
for ... more >>
Constructor problems
Posted by suresh NO[at]SPAM dynu-dot-com.no-spam.invalid at 6/15/2004 5:01:55 AM
Hi all,
I'm trying to inherit the SimpleWorkerRequest class.
my code is like this..
public class Request : SimpleWorkerRequest
{
public Request(): base(String.Empty,String.Empty,null)
{
}
}
(Here the constructor is argumentles..but i tried with some different
parameters also)... more >>
Remove from ListBox
Posted by mostafa atalla at 6/15/2004 3:01:01 AM
How can I remove some selected items from the listBox in the run time ??
... more >>
Simulating a magnetic swipe
Posted by Richard Beacroft at 6/15/2004 2:57:34 AM
Does anyone know how to simulate a magnetic swipe.
i.e. send key strokes (those outside the alphanumeric
range)?... more >>
Help with Regex and trying to mimic the VB "like" comparison
Posted by webmaster NO[at]SPAM vbusers.com at 6/15/2004 2:55:08 AM
I am trying to write a function which provides my users with a file
filter. The filter used to work just using the VB "Like" comparision,
but I can't find the equivilant in C#. I looked at RegEx.IsMatch but
it behaves quite differently. Is there a way I can mimic the DOS
filtering of filenames (... more >>
Form Loaded very slow
Posted by Gidi at 6/15/2004 2:55:01 AM
hello, i have few windows forms in my application and those whom connected to my sql dataBase are loading very very slow, what can be the problem?
at the Form_load event i'm clearing my dataset and filling the dataAdapter with this dataSet.
one of the forms has radio box that each one gets dat... more >>
Backup database
Posted by Mohammed Abdel-Razzak at 6/15/2004 2:36:01 AM
Dear sirs
I`m using MS-SQL server to make my database\and connect to
it using C#
is there any way that I can make a backup to my database
using C#
thanks
Mohammed... more >>
error at line OleDbDataAdapter1.Fill(DsAuthors1)
Posted by Ian OBrien via .NET 247 at 6/15/2004 2:24:58 AM
Hi,
Im following the visual Basic Walkthrough 'Simple Data Access in a Windows Form'
in Visual Studio.net which throws an error at the line OleDbDataAdapter1.Fill(DsAuthors1)
ERROR:
An unhandled exception of type 'System.Data.OleDb.OleDbException'
occurred in system.data.dll
any suggestio... more >>
|