all groups > c# > july 2005 > threads for saturday july 30
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
C# 2.0 Masked Text Box and Validating E-mails
Posted by orekinbck NO[at]SPAM yahoo.com.au at 7/30/2005 11:14:00 PM
Hi There
I have spent alot of time trying to get a masked text box to validate
e-mails, but with no success. Mainly because I can't figure out how to
account for the wide variety of different e-mail addresses, for
example:
billwallis@hta.com
bill.wallis@hta.com
billwallis@hta.com.au
bi... more >>
Compiling html dynamically
Posted by Kishore at 7/30/2005 10:58:03 PM
Hello,
Is it possible to generate a CHM file dynamically, from an html file or a
word document, through code. I searched on the net, but could not find any
answers.
I would like to generate a help file, for a particluar form/page on the fly.
Any help is greatly appreciated.
Thanking you ... more >>
FileSystemWatcher issue
Posted by John Lee at 7/30/2005 10:31:54 PM
Hi,
I developed a filewatcher service to monitor file creation on a network
drive - 90% time it works fine and from time to time I found out that the
newly created file on that network drive does not trigger the event - all I
have to do is to restart the service.
I kind of suspect the re... more >>
image manipulation
Posted by Telmo Costa at 7/30/2005 7:43:35 PM
Hi.
I'm trying to load an image and copy it to an array of bytes.
The image is a png 32bit format. The code I have is:
-------------------------------------------------------------
public void LoadImage(path) {
Bitmap image = new Bitmap(path);
byte[] pixels = new byte[image.Width*image.Hei... more >>
A Bug in Math.IEERemainder?
Posted by Sunny S at 7/30/2005 7:08:49 PM
Hi,
When calculating a remainder, R, as a result of X / Y, you wouldn't expect R
to be greater than Y, right? Wrong!
Math.IEEERemainder( double.MaxValue, 1000.0 ) returns 1.99584030953472E+292.
I understand why and how this happens, but the point is that returning a
value that is... more >>
Arrays and OutOfMemoryException
Posted by Fernando Casero at 7/30/2005 6:49:30 PM
Hi, I'm programming on Visual C# Express Beta 2 and I have the following
code:
class MyClass
{
int[] a = new int[30]
int [,] b = new int[10,20]
public int SomeMethod()
}
class OtherClass
{
MyClass[] cls = null;
public void DoSomething()
{
int a =... more >>
byte array to string
Posted by realgeek NO[at]SPAM gmail.com at 7/30/2005 6:47:52 PM
I have a byte array with binary data and I want to get its contants
into a string.
tagContent = System.Text.Encoding.ASCII.GetString(str);
screws binary data.
foreach (byte b in str)
{
tagContent += (char)b;
}
is damn slow.
What's the correct way to do this?
... more >>
dot net on linux
Posted by Baghdadi at 7/30/2005 3:21:01 PM
is there any dot net frame work for linux ??
or a developement platform for .net under linux ??... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
application without the graphic inteface
Posted by Baghdadi at 7/30/2005 2:09:02 PM
how can I run an application without a graphic interface , I mean an
application that works in the background licke the msn messenger , I know
that I can hide the window form , but that makes the program very slow !!... more >>
pulling an unknown string from the middle of two knowns
Posted by hourlie at 7/30/2005 1:38:01 PM
I have a string...
abcdefghijklmnop
I know the 'abcdefg' and i know the 'jklmnop', but I dont know the >hi<.
How do I assign this >hi< to a string so that I can play with it later?
... more >>
equivalent C# for VB.NET "Session"
Posted by dale zhang at 7/30/2005 11:43:02 AM
Hi groups,
Can anyone give me the equivalent C# sharp code for this VB.ET code,
:: VB.NET ::
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) _
Handles MyBase.Load
'This event routine in the loginCheck user control fires when... more >>
Load a URL's execution result
Posted by stevag at 7/30/2005 10:38:45 AM
Hello,
I am developing an application whose main goal is to read from a dynamic
..asp Internet URL. This URL automatically produces an RSS file, which I
further want to load into my application so as to manilupate the source
and render the results into an HTML page using ASP.NET and C#.
My pr... more >>
keeping memory resources cleaned up within timer loop of Windows Service
Posted by hazz at 7/30/2005 9:22:40 AM
given
namespace WindowsService1
{
public class Service1 : System.ServiceProcess.ServiceBase.........
private void timer1_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
ArrayList myAL = new ArrayList();
CustomClass objCont = new ControllerClass;
CustomClass objInfo ... more >>
Transmitting a 'char' array thru serial port in new C# 2005 Expres
Posted by halukg at 7/30/2005 6:52:17 AM
I am trying to send a 6 byte char array from the serial port in new C# 2005
Express:
com.Write(new string(new char[] { (char)34, (char)14, (char)192, (char)51,
(char)0, (char)0 }, 0, 6));
I am receiving 34,14,63,51,0,0 from the port as I connected Tx and Rx pins
to each other by using the ... more >>
Naming Conventions for Enumerations
Posted by orekinbck NO[at]SPAM yahoo.com.au at 7/30/2005 4:45:31 AM
Hi There
What convention do you use when naming an enumeration and variables
that use the enumeration?
I like plural/singular, for example:
public class Example
{
public enum VehicleTypes { Car, Truck, Motorbike };
static VehicleTypes VehicleType = VehicleTypes.C... more >>
Compression in .NET 2.0
Posted by orekinbck NO[at]SPAM yahoo.com.au at 7/30/2005 2:59:29 AM
Hi There
Is there any easy way to use the System.Compression tools in .NET 2.0
to compress an entire directory ?
All my source code is kept in a single directory so I have written a
utility that recursively backs up the directory and compresses each
file as it goes. The utility has no GUI... more >>
|