all groups > c# > may 2004 > threads for tuesday may 4
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
VS.NET Control
Posted by Scatropolis at 5/4/2004 11:47:27 PM
What control does Visual Studio .NET use for all the properties. It's on the
bottom right and is almost an editable listbox.
thanks... more >>
Delegate parameters
Posted by John Baro at 5/4/2004 11:46:18 PM
It appears most of the delegates in VSNET have a sender parameter and an
eventargs parameter. Even if the eventargs parameter is empty.
What are the benefits of following this pattern when developing my own
delegates?
i.e
instead of
public void MyDelegate(string parameter);
we have
public vo... more >>
strange thing about DateTime
Posted by Justin Shen at 5/4/2004 11:07:34 PM
i wrote following code:
DateTime t1 = new DateTime( DateTime.Today.ToFileTime() );
Console.WriteLine(t1);
and got a output of:
0404-5-3 16:00:00
instead of 2004-5-3 16:00:00
why could this happen?
--
Justin Shen <www.cnblogs.com/hush>
... more >>
Different computers - different bugs ?
Posted by et NO[at]SPAM tourclub.ca at 5/4/2004 10:27:13 PM
Hello all,
I'm stuck here (nothing new in this world).
I have a program, that runs fine on my computer (where I actually
developing C# Windows app), but appears to be buggy on another
computer.
Same Windows versions, same .NET Framework...
Is there something I am overlooking ?
Below I h... more >>
remoting
Posted by Frazer at 5/4/2004 10:05:52 PM
hi does anyone know where i can find a sample that explains remoting.
i need one that hosts the objects in IIS server . but i am using a C# app to
access the remotable objects.
in the IIS i have a small asp.net application (which has only 1 page)
<?xml version="1.0" encoding="utf-8"?>
<conf... more >>
array in a arraylist
Posted by Ricardo at 5/4/2004 10:02:44 PM
how can i acess the members of an array that i put into a arraylist, like
this:
int[] dez = new int[5];
ArrayList arList = new ArrayList();
arList.add(dez);
I want to get the dez[3] value.
[]s...
... more >>
abstracting a web service
Posted by nevin at 5/4/2004 9:25:08 PM
Hi all,
I'm looking at the Amazon web services and get them to work fine. But on any
given call I want to be able to use either the US or the EU schemas which
are in the project as two different web references.
so basically I would like to be able to abstract the objects in each web
service s... more >>
ATT: TimeZone Component released
Posted by Michael Sundermann at 5/4/2004 8:55:30 PM
TimeZone Component released
The TimeZone component is a non-visual .NET component
with a new structure SMDateTime
that extends System.DateTime with a time zone.
All members from SMDateTime work like the members
from DateTime except that they calculate relating
to the internal time zone an... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
OffTopic - Mozilla Thunderbird is not bad
Posted by Skc at 5/4/2004 8:35:07 PM
Just downloaded Thunderbird Newsgroup email/newsgroup reader. It's not
bad - looks better and has more features than Outlook Express.
Especially you can sort messages by many options. Also has option to see
only Watched messages not read. And you can see how many replies there
are to a th... more >>
Programming a RAD tool
Posted by Janus Knudsen at 5/4/2004 8:18:42 PM
Hello...
To get the best start in developing a RapidApplicationDevelopent - tool, I
would be pleased to hear from anybody with experience and/or knowledge of
the subject.
To make things short, we've worked for several years on a scripting
language, a sort of a markup language. It consists o... more >>
SQL 2000 Reporting Services
Posted by MajorTom at 5/4/2004 8:10:07 PM
Is this a good solution for the reports of a desktop application using SQL
Server ?
Is for easy deployment of any simple application ?
Please I need to decide for a report designer for windows forms applications
using VS.NET, I'm not satisfied with CristalReports.
Is this SQL 2000 RS the... more >>
where am i being called from? (web.config)
Posted by suzy at 5/4/2004 7:32:58 PM
hello,
how do i check from my c# class if it is being called from a asp.net
application or a windows application?
i have some code that reads from the web.config file for webapps, but i want
to default the values to something else if there is no web.config (ie:
windows).
any ideas? thank... more >>
COM+ Trancation vs Stored Procedure Transactions
Posted by Irfan at 5/4/2004 7:14:31 PM
There are several ways of handling Transactions in DotNet. Some of them are
1. Using COM+ Serviced Component.
2. Using ADO .Net
3. using stored procedure
What is the best way of handling Transaction in DotNet Enterprise
Application interms of performance, maintainance and scalability?
Ho... more >>
.NET Remoting
Posted by Andrew Niemann at 5/4/2004 6:56:36 PM
Hello,
Does anyone know where I can get some good tutorials on .NET Remoting?
Thanks,
Andrew Niemann... more >>
C# enum and weird The private field 'SI.BitTorrent.Peer.clientChokeStatus' is never used error
Posted by SpookyET at 5/4/2004 6:18:24 PM
I got private ChokeStatus clientChokeStatus;.
In the constructor i got clientChokeStatus = ChokeStatus.Choked; and it is
also used in a few other methods, but it keeps bitching The private field
'SI.BitTorrent.Peer.clientChokeStatus' is never used.... more >>
How to reliably launch an application?
Posted by David Rose at 5/4/2004 5:42:25 PM
Hi,
I am trying to launch pdf files (in this case). The test application takes
the path to the pdf from a TextBox when the user clicks a button. I have
written code that works on my computer, but I have doubts that my method is
universal.
Basically, in HKEY_CLASSES_ROOT, I look up the .pd... more >>
How do I create an application involving random numbers
Posted by Zeb Davis at 5/4/2004 5:21:05 PM
Hello Newsgroup
I'm new in C#, and I was wanting to create a console application involving generating 100 random
numbers between 0 and 1000. After running that method, I want to write a method to test if
the number is an even or odd number. After that I need to display in the console the small... more >>
Copying files
Posted by Mystique at 5/4/2004 5:11:38 PM
How can i copy files with an extension (for ex: .jpg) from one folder to
another ??
... more >>
ReferenceEquals
Posted by Daniel Billingsley at 5/4/2004 5:03:25 PM
In C# these are equivalent, right?
if (ReferenceEquals(objectA, objectB))
{
}
and
if (objectA == objectB)
{
}
... more >>
Paint event..
Posted by VJ at 5/4/2004 4:58:32 PM
I am looking to paint some object on my text box. How do I accomplish this,
since there is no Paint event for the TextBox
VJ
... more >>
Best way to communicate between Windows Service and GUI?
Posted by Adam Clauss at 5/4/2004 4:45:04 PM
I am currently developing an application which will primarily run as a service that starts with Windows. However, I want to also
have an 'administration' tool that can be run that controls various aspects of the service (not simply start/stop). What methods
exist to communicate between these two... more >>
Custom validation
Posted by Morten at 5/4/2004 4:09:29 PM
Hi!
I've been experimenting with server side custom validation and I can't make
it work.
I have a text box which I'd like to validate by sending the content to a web
service which will check it and return 0 or 1. I've added a custom validator
control in VS .Net 2003. The code looks like thi... more >>
memory mapped file
Posted by Jan at 5/4/2004 3:59:31 PM
Hi, I don't seem to find any c# methods for memory mapped file. Does C# have
any? Or it is using different name? Thanks.
Jan
... more >>
Passing custom exceptions server to client
Posted by Ken Allen at 5/4/2004 3:56:48 PM
I have a .net client/server application using remoting, and I cannot get the
custom exception class to pass from the server to the client. The custom
exception is derived from ApplicationException and is defined in an assembly
common to the client and server components. The custom class merely de... more >>
Test for Registry Key/Value
Posted by Yogi_Bear_79 at 5/4/2004 3:32:31 PM
How do you test to see if a Registry Key & a Value exsist?
... more >>
Incremental search database with c#
Posted by mp at 5/4/2004 3:14:03 PM
Hi,
Is posible to make incremental search of some databse (table) with c#. I am
looking for some example.
I know how to do that with Delphi, but I am new in C# .NET and I need your
help.
Is possible to search database without SQL commands?
Thanks
... more >>
Why must I rebind DataGrid to see Sort?
Posted by Bill Todd at 5/4/2004 3:08:24 PM
In a WinForms application with a DataGrid bound to a DataTable, if I
change the DefaultDataView.Sort property the order of the data in the
grid does not change.
If I change the Sort property then reassign the DataTable to the
DataGrid's DataSource the DataGrid does show the new order.
If I... more >>
Trying To Call Child Form
Posted by Steven C at 5/4/2004 2:58:21 PM
Hello:
I've seen several recent threads on this, but I'm still not clear how
to reference a *method* on one form from another. I want to add a
customer in the child form, and then update the customers grid in the
parent form.
frmCustomers is the parent, and frmAddCustomer is the child. In... more >>
Building Executable with Framework
Posted by StudioRookie at 5/4/2004 2:51:01 PM
Hi
I'm trying to get familiar with Visual Studio .NET. I've built a project in C# as an executable on an XP box. When I copy the executable to another XP box and run it it complains: mscorwks.dll could not be found. I can't install the Framework on the that machine, so the question is, can I bu... more >>
Cusom exceptions and COM+
Posted by Ollie at 5/4/2004 2:45:58 PM
I am having problems with custom exceptions in COM+, I have read the article
in MSDN (march 2004) and implemented the correct features....
The custom exception class derives of ApplicationException and also has the
[Serializeable] attribute and has a
Serialization constructor and overriden imp... more >>
picture file in XML
Posted by VJ at 5/4/2004 2:43:41 PM
I am looking for ways to store a picture file as a data element in a XML
file. Is the below the best option available, to convert a picture file to
string format..
string data = null;
Bitmap bmp = new Bitmap(@"e:Image.bmp");
using (MemoryStream mem = new MemoryStream())
{
bmp.Save(mem, Sys... more >>
Questions about refelection
Posted by Thomas at 5/4/2004 2:17:36 PM
Hello,
I'm programming a program, where I don't know which objects are needed. So I
want to use the mechanism of reflection.
I can create the objects I need by reflection, but there are some questions
I don't have a solution. Perhaps anybody can help?
First i want to write a little code d... more >>
DataView sort does not show in DataGrid
Posted by Bill Todd at 5/4/2004 2:06:24 PM
I have a DataTable in a DataSet. A DataGrid is bound to the DataTable.
When I assign a field to the DataTable.DefaultView.Sort property the
order in the DataGrid does not change.
What am I missing?
--
Bill... more >>
Error when accessing a TOmCat web service
Posted by arun_ann NO[at]SPAM hotmail-dot-com.no-spam.invalid at 5/4/2004 2:04:37 PM
Hi Guys ...
This problem has been bugging me for over 5 days now.
I am trying to access a web service running in a Tomcat Server (a
Linux box) via a C#.Net page and I get the following error:
"The underlying connection was closed: An unexpected
error occurred on a receive."
The flow is ... more >>
HTML to PDF Conversion within a Service
Posted by Curtis Justus at 5/4/2004 2:04:13 PM
Hello,
I'm looking for a library or a product that I can call to generate a PDF
document from an HTML document. The catch is that it would be running from
within the context of a .NET service. I have found a lot of products that
will work fine in an interractive desktop environment, but noth... more >>
Double ToString format string
Posted by Ed S at 5/4/2004 1:10:52 PM
I'm trying to format a double with this behavior:
1) should only show 8 characters (character count before and after
decimal added together).
2) if greater than 7 characters to the left of the decimal, should
display in scientific notation.
3) if 7 characters or less to the left of the deci... more >>
CSharp form linked to a .hlp file
Posted by I D via .NET 247 at 5/4/2004 12:59:33 PM
Hello,
I am CSharp developer working on a bigger proeject.
WHat is the best way to integrate help in a CSharp application. (I mean F1 sensitive help)
I already created with Help&Manual a .hlp file and I am looking for ways to link it to my application and to my forms.Can anyone help?
--... more >>
Read and write to ascii file at the same time?
Posted by VM at 5/4/2004 12:59:21 PM
Is it possible to open an ascii file, read the first 499 lines, overwrite
line 500 with the new string, and close the file? All the lines before and
after line 500 will be untouched.
Thanks.
... more >>
color text??
Posted by Bad_Kid at 5/4/2004 12:41:25 PM
What's the best way to change some words color while typing? (like in c#)
do I have to catch letter by letter, then after a break sign (like +,-,
,...) create a string, compare that string with "keywords" and if it is a
keyword change color of that word???
... more >>
activemdichild.closed...
Posted by Bad_Kid at 5/4/2004 12:35:53 PM
I would like to make some event in the MAIN form:
when activeMDIchild is closed (clicked X on the top right side of the
screen) to display a message like "are you sure", or "would you like to save
your work...", -> if user wants to save it - to save and then close; or else
just close that MDIchi... more >>
What's wrong with this?
Posted by JLW at 5/4/2004 11:53:57 AM
Could someone give me a hint on what I goofed up? I can't seem to get this
damned thing to work:
public static bool Brighten(Bitmap b, int nBrightness)
{
// GDI+ return format is BGR, NOT RGB.
Rectangle rect = new Rectangle(0,0,b.Width,b.Height);
BitmapData bmData =
b.LockBits(... more >>
Stack Corruption and app disappearing issue-- seh --
Posted by consumer62000 NO[at]SPAM yahoo.com at 5/4/2004 11:50:35 AM
I have a simple question.
I have following piece of code in a sample MFC application:
void CSampleAppDlg::OnButton1()
{
try
{ char e[1];
strcpy(e,"asdsadadsadsadsdsasdadsasdasdasadsadsadsadsadsaad");
}
catch(...)
{
::OutputDebugString("Error");
}
}
the application disappears ... more >>
Trapping Exception, yet system exception is still generated?
Posted by CSharpX at 5/4/2004 11:36:04 AM
I have the following code and when the exception is raised the OS displays a nasty Stop dialog box
it says an unhandled exception occured, gives 3 buttons to click details, contintue Quit... i do not want this ugly thing to display, what am i missing from the code below? am i not catching that exce... more >>
Problem with the ListBox
Posted by jayderk at 5/4/2004 11:26:01 AM
Hello All,
I am running in to a situation where the listbox is not refreshing for me.
I am using a timer to cycle every second and call the timer_elapsed() event.
in the time_elapsed event Method I have code that checks to see if a DB
table has been updated.. if so the new new data is uploaded... more >>
Help ! how to read a resource into a string
Posted by Elmue at 5/4/2004 11:14:46 AM
Hello
What I want :
Embed a HTML file into my C# program and then
read the complete HTML resource into a string.
Can anybody tell me how to do that or better where I find a working sample ?
What I already did :
I added the HTML file in Visual Studio .NET to the solution via
Add --> Add ... more >>
How Do I cast a string to a Decimal?
Posted by Harry Keck at 5/4/2004 11:06:06 AM
I would imagine that this is a pretty trivial operation, but I can not figure out how to cast a string variable to a Decimal. I tried Decimal dVariable = (Decimal)strStringVariable, but it does not compile. Help. Thanks.... more >>
Writing System.IO.Stream derived from a DIME attachment to a file
Posted by dm0527 NO[at]SPAM hotmail.com at 5/4/2004 11:05:04 AM
It seems incredulous to me that it is so difficult to write the
contents of a memory stream to a file. I'm certain that I'm missing
something simple.
I am retrieving a memory stream from a DIME attachment:
MyDimeService svc = new MyDimeService();
svc.CreateDimedImage();
if (svc.ResponseSo... more >>
Bug in IDE (designer)
Posted by PeterZ at 5/4/2004 10:28:40 AM
Hi,
Came across an anoying bug in the IDE of VS2003 (using C#, but I imagine it
would apply to VB as well).
It applies to the user control designer. For some reason I can't copy &
paste a whole bunch of controls in the user control designer. When right
clicking, the menu options are disab... more >>
Line length
Posted by Patrick de Ridder at 5/4/2004 10:17:30 AM
I read in a text file;
trim the lines;
establish the lengths of the lines.
Measured lengths bear no relationship to actual lengths;
the listBox uses a true type.
What is the cause of this?
How can this be overcome?
Thank you,
Patrick.
... more >>
Determine Assembly's .NET Framework Version
Posted by Z D at 5/4/2004 10:10:04 AM
Hello,
If I have a .NET assembly, how do I determine what version of the .NET
framework it....
1) was compiled against
2) is supposed to use
3) is compatible with?
Is there a utility that will extract this info somehow?
thanks!
-ZD
... more >>
Significance of calling the base
Posted by Frank Rizzo at 5/4/2004 10:10:00 AM
In some examples with inheriting, I see the overloaded function always
call its base. For instance, in this case where the ListView control is
being extended.
public class ListViewEx : System.Windows.Forms.ListView
{
protected override void OnColumnClick(ColumnClickEventArgs e)
... more >>
Regular Expression Matching what does NOT match
Posted by Earl Teigrob at 5/4/2004 10:09:59 AM
I am parsing some HTML and need to match certain tag attributes to change
from relative to absolute urls.
The search string I am currently using is
rex="src\\s*=\\s*\"(?<content>.+?)\"";
that matches all src attributes on the page (and it works, by the way, but
is doing extra work)
Howev... more >>
Access to client HDD from Web Application?
Posted by Toma at 5/4/2004 9:59:29 AM
Hello !
First, excuse me for my very bad English, but I'll try to explain my problem
.....
I write my first Web Application on C# and ASP.NET /till now I write only
for Windows/, and this WebApp must read and write files on the client
computer.
Can someone explain how the browser can do this ... more >>
Serviced components?
Posted by Vai2000 at 5/4/2004 9:51:05 AM
Hi all, Have few serviced components. Everytime there is some changes I have
to redeploy them. I was thinking of making those settings changes in an
external config file (xml) in that case how do I access the configurations
from COM Component (from code wise if I want to use
Configuration.Appset... more >>
localhost connection - beginner question
Posted by mp at 5/4/2004 9:32:48 AM
Hi,
I have found some ASP.NET example. I have put it into:
c:/Inetpub/wwwroot/Somefile. When I started Visual Studio 2002 I got
message: "Unable to open Web project 'Account'. The file path
'C:\Inetpub\wwwroot\UserAccount" does not correspond to the URL
'http://localhost:/Account'. The two ne... more >>
Full Screen
Posted by Christian Pické at 5/4/2004 9:26:06 AM
Hi all,
For a POS application I would like my Form to fill the whole window
(covering the Windows Start bar as well). How can I do this?
Kind regards,
Christian Pické
... more >>
How to stop users from clicking buttons more than once?
Posted by Brent at 5/4/2004 9:18:18 AM
I have a C# asp.net page that when you click a button, it writes a record
(based on entered values) to the database. I've found that if you click the
button multiple times quickly, multiple records are written. What is the
best way to deal with this? The page takes a few seconds to process after
... more >>
Add ActiveX at runtime
Posted by Development at 5/4/2004 9:05:35 AM
I want to add an ActiveX only if it exists on the system. (For licensing
reasons).
So I want to check at runtime if a certain ocx file exists and if it does I
want to use it. Is it possible?
... more >>
Remoting object - "Requested Service Not Found"
Posted by Steve Lutz at 5/4/2004 8:38:39 AM
Hi All,
I have a Windows Service that runs well. The service hosts a remote object.
The purpose of the object is so that I can "peak" into the service to see
what it's doing. I wrote a small Windows Application that connects to the
remote object and prints out status information.
Everything w... more >>
Port to C#: binding a listview?
Posted by feel at 5/4/2004 8:07:18 AM
Did anyone try this to C# from VB.net?
How to bind a listview( and other controls)?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/ht
ml/vbnet08262002.asp
Thanks.
... more >>
Video Compression Manager, Codecs, compress & decompress AVI
Posted by Herbert Wildmeister via .NET 247 at 5/4/2004 6:21:39 AM
Does anybody know a way to compress and decompress AVI video=
files in C# =2ENET using all installed video codecs? I've found=
the Video Compression Manager and a class wrapper for C++ but no=
CLS compliant equivalent=2E If anybody has a solution that does=
this in =2ENET please post it=2E S... more >>
Mvc in C#
Posted by msnews at 5/4/2004 5:29:00 AM
I'm looking for something that is a example applied MVC concept in C#.
i have already saw some example of MSDN but it's so large project that's why
i could not understand..
url is like
this...http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbd
a/html/uip.asp
i hope t... more >>
c# cannot hide acrobat reader as external program
Posted by Chus Chuscazo via .NET 247 at 5/4/2004 5:06:14 AM
Hi there!
I am building fdf files and i need to print them out=2E
The problem is that in order to print them i have to execute=
acrobat reader=2E
I am fine with it, but the problem is that i cannot hide the=
reader application, it always stays in the bottom bar=2E
The code i'm doing is the ... more >>
Space() in C#
Posted by mike parr at 5/4/2004 4:29:55 AM
What is the equivalent of Space in C#?
Space(10 - Len(Trim(txtAccessAccountsID.Text)))
Thanks,
Mike
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
How to delete a folder which has files?
Posted by Tom at 5/4/2004 2:01:12 AM
Hi
Here is the C# code
<code
string d = Server.MapPath("/"+Request.ApplicationPath+"/folder/")
if(System.IO.Directory.Exists(d)
System.IO.Directory.Delete(d)
</code
This code works fine if there is no file under folder d. How can I remove the whole folder and all files under it... more >>
Adding dynamic properties to new classes
Posted by Richard Abraham at 5/4/2004 1:21:05 AM
I have created a new class ServiceTimer based upon the .NET System.Timers.Timer class. This has a new property CollectionIntervalMinutes which I expected to be added to the 'Behavior' section of the class properties and also to be available as a 'Dynamic' property so that I could control it from th... more >>
how to active the FileSystemWatcher object????
Posted by Jet Leung at 5/4/2004 1:04:12 AM
Hi all,
I had made a program to watching files in my directory. I had used a
instance of FileSystemWatcher to do my work.And I had add some events of the
FileSystemWatcher , for example onChange, onRename and so on.
And I had made this program as a windows service.As I know, if I delete a
fil... more >>
C# doc generator
Posted by Sharon Tal at 5/4/2004 12:25:29 AM
Hi all.
I'm looking for a good, possibly free tool, that can generate
API docs from the compiler output XML.
Thanks.
... more >>
how to open an application through an assigned filetype?
Posted by Jesper. at 5/4/2004 12:16:04 AM
Know of any good tutorials to demonstrate how to assign a file extension to an applicatiand and how to open the file in the application when you doubleclick on the file in the OS
brgds Jesper.... more >>
System.Windows.Forms.DataGrid.HitTestInfo missing
Posted by Tom P at 5/4/2004 12:01:05 AM
I'm trying to use DataGrid.HitTestInfo in my OnMouseDown event but firstly I cannot see it in Intellisense, secondly when I try to use it I get strange 'COMPILE' errors when building the app
I'll be happy to provide more details if anyone has any answers
I've read some forums and someone else ha... more >>
|