all groups > c# > july 2003 > threads for friday july 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
Process does not terminate
Posted by san at 7/25/2003 11:01:25 PM
Hi,
I have a C# windows application App.exe that uses a UI
component from another dll that components.dll. Everything
works fine except that when I close the window of App.exe
the process does not terminate (I can see App.exe is the
task manager). Also, I tried to see if control was
ret... more >>
Windows Address Book
Posted by Ignacio DomÃnguez at 7/25/2003 10:17:33 PM
Hi. Is there a way of accessing the address book, similar to what Outlook
Express does, using C#?
Thanks
Ignacio Domínguez
... more >>
RichTextBox problem - lost background
Posted by Yuelin at 7/25/2003 7:34:52 PM
Hi,
thanks Noah for your advice.
I wrote following to read a rich text file into a RichTextBox control:
this.m_textBox.LoadFile(openFileDialog1.FileName,
RichTextBoxStreamType.RichText);
I created a RTF file in Word, and gave the background yellow. But when open
the file
in the RichTe... more >>
invalid user / password on installing the windows services.
Posted by Sam at 7/25/2003 7:12:37 PM
Hi everyone,
I create a windows service and its installer in VS Net.
but when I try to install it on command line, "installutil myservice.exe" ,I
kept receiving the error message:
System.ComponentModel.Win32Exception: The account name is invalid
or does not exist, or the password is invali... more >>
CaseInsensitiveComparer weirdness
Posted by Paul E Collins at 7/25/2003 6:41:23 PM
Shouldn't the CaseInsensitiveComparer sort case-insensitively?
The following code prints out 'AZaz', which indicates a case-sensitive sort.
What do I need to do to perform a case-insensitive sort ('AaZz')?
char[] chars = new char[] { 'A', 'z', 'a', 'Z' };
string sorted = "";
Array.Sort(ch... more >>
axWebBrowser
Posted by antoine Veret at 7/25/2003 6:23:43 PM
Hi, is there changes on axWebBrowser with framework 1.1 ?
events doesn't fire for this object.
and an other question; how release memory for axWebBrowser object ?
when i create those objects, iexplorer.exe grow up and do not reduce in size
when i call the dispose method of my object.
--
Z... more >>
temporarily suspend datagrid databinding
Posted by Stephan Steiner at 7/25/2003 5:43:25 PM
Hi
I'm using several DataTables in my program which are updated periodically.
At the same I have those tables bound to DataGrids in my GUI. So far I've
been doing all the processing in the same program and the speed of the
processing prevented any issues when it comes to updating the GUI eleme... more >>
Stack Frame Object Instances?
Posted by mark NO[at]SPAM corporatedigital.com at 7/25/2003 5:23:02 PM
Can you retrieve a calling object's instance from the stack via
reflection? So far I've only been able to traverse the stack and get
to a Type of the calling routine (using StackFrame.GetMethod and then
interogating that MethodBase object). What I'm trying to do is to
interrogate a property on... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Simple class problem
Posted by Gerben van Loon at 7/25/2003 5:21:15 PM
Hello,
I'm quite new to Csharp and like to know how I can call a function from an
upper class.
Following example might explain my problem a bit better:
public class MyClass
{
public void DoSomeThing()
{
//does something
}
public class MySecondClass
... more >>
Session timeout
Posted by Alvin Bruney at 7/25/2003 4:39:10 PM
I'd like to prompt the user that their session is about to time out and give
them the option to keep the session alive. Any ideas?
By the time the session end event fires, the session is already ended so
putting up a javascript box won't make sense since there is no session.
I thought of cli... more >>
Read in RTF into a RichTextBox control and save it to a RTF file
Posted by Yuelin at 7/25/2003 4:28:00 PM
Hi there
How can I read a RTF file into a RichTextBox control without the original
format being lost? And how can I
save the text entered in a RichTextBox into a RTF file without the original
format being lost? It seems I can't use
System.IO.StreamReader. Is there any thing I can use to do th... more >>
Runtime Type instantiation question
Posted by Ben Fidge at 7/25/2003 4:27:27 PM
In C# how would I create an instance of a given type at runtime without
knowing the exact class at designtime?
For example, if I had a factory class that instantiated objects derived from
a common base class, how could I pass the "type" of class I want as a
parameter to the creation method and... more >>
.NET RunTime 1.1
Posted by mkag at 7/25/2003 4:04:40 PM
Hi,
I am getting following error during the installtion of DotNet Runtime 1.1 on
Win2K Server with Service Pack 3
Internal Error 2755. 1631.
c:\Docume~1....\IXP000.tmp\netfx.msi
any idea?
... more >>
C# Pixel Size.
Posted by David Coleman at 7/25/2003 3:26:18 PM
When I move my C# development app from desktop PC to laptop (Both run XP
Pro)(both set 1024x768) and load it into VS.NET the position and size of
controls changes and some user controls on the laptop IDE become
mis-aligned. (I can almost live with this bug. Occurs only on the first
TabPage of a ... more >>
MD5 Large Files
Posted by chis2k at 7/25/2003 3:03:38 PM
I need help figuring out how to get the MD5 hash of large files.
I cannot go about the traditional way of reading the entire file into a byte
array, because then the huge file is placed in memory, and bye bye system
resources! I know there might be way using streams, but I am unsure how to
imple... more >>
serialization XML problem
Posted by andrewcw at 7/25/2003 2:51:46 PM
There is an error in XML document (1, 2).
I used XML spy to create the XML and XSD. When I asked to
have the XML validated it said it was OK.
I used the .net SDK to generate the class. I have done
this before but this time I have no idea why I am getting
the error. Any ideas ?? THANKS !
... more >>
implicit cast for enums
Posted by Martin Bischoff at 7/25/2003 2:43:58 PM
Hi,
is it possible to define an implicit user-defined type conversion
operator for enums?
I'd like to convert my enum to an int without an explicit cast, e.g.
something like this:
------
public enum MyEnum : int
{
One = 1, Two, Three
}
....
MyEnum e = MyEnum.Two;
int i = (... more >>
Problems writing a pound (sterling) sign to a file
Posted by Colby at 7/25/2003 2:43:29 PM
Using the following code I am trying to write to a text file. I keep
getting "£"
All I want is "£"
Any Ideas?
using System;
using System.IO;
using System.Text;
public class TextToFile
{
private const string FILE_NAME = "MyFile.txt";
public static void Main(String[]... more >>
#region....
Posted by Jim at 7/25/2003 2:35:06 PM
Are #region a bad thing or are they good?
As far as I see it #region's are a bad thing as they let lazy programmmers
have large and bloated methods divided into regions that then appear as
small methods, they also show bad analsys and design when used in this
way......
Thoughts?
Cheers... more >>
MSCOMM.OCX
Posted by Chris at 7/25/2003 2:24:05 PM
Hi,
I'm trying to write a driver to communicate with other devices on a com
port. However, as many of you probably know, the .net framework has no
native support for it. The solutions that I've found on the net involve the
usage of the MSComm.ocx activeX control an associated licensing. Is ... more >>
BitConverter and back again?
Posted by Gabe Jahn at 7/25/2003 2:13:39 PM
Basically I've used the BitConverter to convert a byte[]
into a string. Now how do I convert it back to a byte[]?
Hopefully without creating my own algorithm to accomplish
this?
Thanks...... more >>
PropertyGrid Reset Typeconverters
Posted by Dave Girvitz at 7/25/2003 1:49:16 PM
I have a PropertyGrid (Windows Forms App) based component that uses
TypeConverters to generate ranges of acceptable values for properties. The
idea was that I could download the key/value pairs from a database and
manipulate the TypeConverters dynamically. The property grid then displays
the p... more >>
Help me understand "StackOverflowException"
Posted by Jesee at 7/25/2003 1:19:07 PM
I am reading Jeffrey Richter's book "Applied Microsoft .NET Framework
programming",i came across "Exception handing". Page 405 says
"If the stack overflow occurs within the CLR itself,your application code
won't be able to catch the StackOverflowException exception and none of your
finally block... more >>
Checking state of object field at runtime?
Posted by intrepid_dw NO[at]SPAM hotmail.com at 7/25/2003 1:02:18 PM
All:
I've been working with some Reflection code to interrogate some
runtime object information, and was wondering the following...
Is there any call that can be made to determine whether a value type
(int, float, etc) of an object was initialized *only*, not set
programmatically?
I know... more >>
Looking for a .NET Linked List or Double Ended Queue
Posted by Brian Reed at 7/25/2003 12:31:30 PM
I have a need for a queue like data structure that allows me to push onto
the front of the structure and remove from the back end. The
System.Collections.Queue will only let you push on the back and remove from
the front. Is there an existing collection or object in the .NET Framework
that I c... more >>
Panel BorderStyle Raised
Posted by Luc Benninger at 7/25/2003 12:27:28 PM
Hi,
I want a panel control on a form appear as raised. But the BorderStyle
property just let me choose Fixed3D which adds a sunken 3D border around the
panel. How can I get a raised one?
Many thanks, Luc
... more >>
C# Md5 vs MD5sum
Posted by chis2k at 7/25/2003 12:07:18 PM
I am trying to figure out how to get the MD5 sum of a file that is like the
result from the MD5sum.exe program that is readily available on the
internet. I tried the following but it gives me something completely
different.... Any ideas?
MD5sum.exe output = c37a2719bd83ba766b29d8f83cee6258
My... more >>
Go directly to collection item?
Posted by Gerald Lightsey at 7/25/2003 12:00:24 PM
I am doing some work that involves automating MS MapPoint 2002. The
object model is documented in the context of Visual Basic 6.0. A
typical example follows.
'Output first result of find search
Set objFindResults = objApp.ActiveMap.FindAddressResults("One Microsoft
Way", "Redmond", , "W... more >>
MSChart control and C#
Posted by FatefulCaptain NO[at]SPAM hotmail.com at 7/25/2003 11:19:36 AM
Hi,
I have a question regarding using the MSChart control in Visual C#
Standard 2003. I understand that you can add it to the Toolbox and use
it like any other control-- the problem I'm having is that the control
isn't on my system at all, so I can't add a reference to it.
mschrt20.ocx isn't ... more >>
Which data grid to use
Posted by R Agam at 7/25/2003 10:54:13 AM
Hi,
For windows app which data grid is better to use, the one from
(System.Web.UI.WebControls) or from (System.Windows.Forms)?
Thanks,
Ronen
... more >>
Does anyone have experience with code access security?
Posted by jeremy_deats NO[at]SPAM hotmail.com at 7/25/2003 10:44:35 AM
I've looked through the MSDN documentation on code access security and
can not seem to find an answer to my question.
I have a class XYZCorpWebPage that uses System.Web.UI.Page as it's
base class. I want to make it so that the web server will throw an
exception/deny runtime rights to any WebFo... more >>
How to use Framework1.1 in visual studio.net?
Posted by ekey at 7/25/2003 10:29:40 AM
Hi:
How to use Framework1.1 in visual studio.net? Now I use Framework1.0 in
visual studio.net , i want to use framework1.1
THS
Ekey
... more >>
Server Date
Posted by Micheal at 7/25/2003 10:20:20 AM
ASP.NET using C# - How do I get the current server date (e.g. 2003)?
Thanks in advance
... more >>
typeof or System.Type.GetType
Posted by Baccarin at 7/25/2003 9:44:12 AM
Hello C# gurus,
I would like your opinion. Who is quicker to obtain a
System.Type(): typeof() or System.Type.GetType()?
Regards,
Baccarin.... more >>
XML documentation
Posted by Lloyd Dupont at 7/25/2003 8:57:42 AM
I have generated my XML documentation.
now what ?
because the XML file is not quite human friendly....
I tryed NDoc but it bugged using my XML files....
and I also tryed to look for 'XML translator (C#)' on MSDN & Google..
no luck ;-(
any tips ? ideas ? or links ?
(yeah, I know, I could... more >>
Convert Struct to byte[]
Posted by TJO at 7/25/2003 8:42:23 AM
Hello,
What is the easiest way to convert a struct containing string members to a
byte[]?
THanks
... more >>
Converting date formats
Posted by Adam at 7/25/2003 8:27:24 AM
Hi,
What is the easiest way to create a DateTime object from
a string of the format:
1998-06-22T13:00
(i.e. 22nd June 1998, 1pm)
I've tried splitting the string up, but this seems rather
complicated. Is there a simpler way to do this?
Regards,
Adam.... more >>
Digitally signed Office Add-In C#
Posted by Peter Wyss at 7/25/2003 8:20:39 AM
Hello,
Does anyone have any Information, Turtorials, FAQ's or Websites about
Digitally signed Office Add-Ins written in C#?
Thanks for the help,
Peter Wyss
... more >>
WebBrowser
Posted by Leonardo Spina at 7/25/2003 8:03:20 AM
Does it exist a class which allows to view downloaded html files, like the
old WebBrowser control did?
Thanx!
... more >>
String.Format with Dates
Posted by john sutor at 7/25/2003 8:03:11 AM
I tries using this format to return "08/19/1958", but I got back just what I
input which was 08/19/58. Any hints
string st4=String.Format("{0:MM/dd/yyyy}", 08/19/58);
... more >>
DataGrid rowchanging
Posted by shravan_gone NO[at]SPAM semanticspace.com at 7/25/2003 6:52:05 AM
Hi ,
I want to catch the row changing of a grid before it is changed and
raise an event and based on event I should supress the change or allow
it. Though I am doing it by changing the row and reverting back now, I
would like to catch it before the row is actually changed due to a
variety of ... more >>
Re-enable my toolbar button again...
Posted by The_Coolest_Dolphin at 7/25/2003 6:24:00 AM
Hi C# wizards,
I would like to ask you the following question:
I'm working on a program with a mainform (a mdiParent called frmMain) and a
childform (called frmNieuwk).
I use the library from CommandBar that gives me the new Luna look from
Micros$oft, so that gives me a toolbar + menu... more >>
OOP data storage vs. SQL calls
Posted by Victor Fees at 7/25/2003 6:11:16 AM
I have a general question for which I would like to get some general input
from the online community.
I'm building an asp.net web application that will make extensive use of a
SQL Server 2K database. One of the relationships in this database is many
Tasks to a 1 Project. I can see two bas... more >>
A question about passing an object by reference
Posted by Abe Frohnman at 7/25/2003 6:05:12 AM
Hello all,
I'm passing a reference to a class into the constructor of a form, like
so: public MyForm(int count, ref Area myArea) {...}
How can I use myArea outside the constructor? Should I create another
Area and assign myArea to it (ie: Area foo = myArea;) or is there a
better way?
... more >>
SMS Text Message from PC To Mobile Phone in C#
Posted by James at 7/25/2003 5:21:53 AM
Is there a way to send SMS Text messages from a PC to a Mobile phone in C#?
Can you elaborate as to what components i will need?
See my final year project is to built a C# Program that will send a sms text
message from a pc to a mobile phone; something like icq.
James
... more >>
date format question
Posted by Mike P at 7/25/2003 3:38:08 AM
How do I manage to get my date in the format Monday, 23rd July 2003? I
am currently using the code below to get Monday, 23 July 2003, but I
can't figure out how to get the day followed by st, rd, th etc.
datetime.Text = DateTime.Now.ToString("dddd, dd MMMM yyyy")
Any assistance would be ... more >>
Write data in XML file
Posted by Fabrizio at 7/25/2003 3:35:49 AM
HI,
I would like to save some user configuration info on XML
file, but I also need to "hide" the password so that
nobody can read that info. Do i need an ecryption routine
or can I convert the password in some other format?
Thanks,
Fabrizio... more >>
Corrupt attachments using MailMessage.Attachments.Add()
Posted by Trond A. S. Andersen at 7/25/2003 3:32:52 AM
Hi all,
I'm working on a project in which i need to send mail
attachments in the form of Excel documents from a .NET C#
application.
I've written a class which creates the Excel document
using the automation features provided by the
Excel.Application component. The Excel workbooks/docume... more >>
Different behaviour passing array to COM object from WebService and standalone C#
Posted by marco NO[at]SPAM marcoganz.com at 7/25/2003 2:01:47 AM
Hello there,
We're new to C# and have noticed a strange behaviour which we don't
yet understand.
We wrote a COM DLL (in VC++ 6.0) which performs some calculation based
on some double arrays passed as input parameters to the DLL through
the SetParams method defined as follows:
interface I... more >>
Add delegate to CollectionChanged
Posted by Alessandro Rossi at 7/25/2003 12:39:56 AM
I've developed a user control, and i want to use this
control in forms that has others controls linked to a
dataset (TextBox). I want to add a delegate to the
CollectionChanged event of the currencymanager of the
others linked control. My problem is: When i put the
usercontrol in the form ... more >>
|