all groups > c# > january 2004 > threads for saturday january 3
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
XmlSerialzier problem
Posted by Dirk Reske at 1/3/2004 9:55:45 PM
Hello,
I have following structs
public struct User
{
public string Username;
public string Password;
public string[] Permissions;
}
public struct Users
{
public User[] RemoteUsers;
}
when I Serialize a Users struct I get following File
<?xml version="1.0" encod... more >>
Ports
Posted by Ziya at 1/3/2004 9:50:22 PM
Does C# have any classes or methods for transfering data
through serial and parellel ports?
I know that no hardware can be accessed directly in
windows XP and other NT based OS, but I think, it may be
possible to use windows too access ports
Does any body have any information please?... more >>
ESP Problem
Posted by JR at 1/3/2004 9:02:25 PM
Hi Folks,
I'm trying to call a C# method from assembler language. Specifically, I'm
trying to persuade the Turbo68k emulator to interface with C#.
This is where the function is called in assembler:
push edx // Contains 'Data' parameter.
push ebx // Contains... more >>
Is "int" a primitive type or an object??
Posted by Matt at 1/3/2004 6:38:22 PM
I want to know if "int" is a primitive type, or an object?
For example, the following two approaches yield the same result.
> int t1 = int.Parse(TextBox2.Text); //method 1
> int t2 = System.Int32.Parse(TextBox2.Text); //method 2
And people said "int" is a C# alias for "System.Int32". If t... more >>
WebClient & graphic objects?
Posted by Phil Crosland at 1/3/2004 6:35:36 PM
I want to access online graphics for a networked application I am writing &
am having trouble using the WebClient for this. Basically I want the users
to be able to enter an URI to a file either on their local machien or on the
web which they can then use as their icon. I wasnt planning on saving... more >>
Array versus Collections
Posted by Matt at 1/3/2004 6:33:45 PM
What is the major differences between array and collection? For example,
ArrayList. When to use which? I think array is static container, but
collection is dynamic container. The drawback of array is to define the size
in declaration, but not in collection.
Please advise...
... more >>
Accessing Mapped Network Drive from Service
Posted by Niloday at 1/3/2004 6:04:22 PM
Hi All,
I am trying to access a mapped network drive from a service that I have
created.
The service needs to create/delete folders/files on a network drive. When I
tried to connect to a folder on mapped network drive (eg. N:\Storage that
corresponds to \\FS1NS\SharedDir\), I get an error ... more >>
Arraylist.ToArray(type) conversion PROBLEM
Posted by Sunny at 1/3/2004 5:17:54 PM
Hi,
I have a small function, that returns a string[], inside
the function, there is an arraylist[], being processed.
At the end of the function all the elements of the
ArrayList are copied to my returning array, using
ArrayList.ToArray(type) method.
But i am getting an error message that ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
creating data provider (IBindingList, DataTable wrapper) for DataGrid?
Posted by alex n at 1/3/2004 4:41:41 PM
hello.
i'm trying to implement IBindingList to wrap DataTable
(like DataView) with hierarchy capabilities
and bind it to DataGrid.
The problem is i don't know
yet all the stuff i need to know.
the current problem - what should i return in the
IList[int index] indexer?
definetely not DataRo... more >>
How to determine stream type?
Posted by Kaki at 1/3/2004 4:41:27 PM
Given a file, how do I know if it's ascii or unicode or binary? And how
do I know if it's rtf or html or etc? In other words, how do I find the
stream type or mime type?
(No, file extension cannot be the answer)
Thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just ... more >>
GUID
Posted by Jim Heavey at 1/3/2004 3:50:57 PM
I have a DataTable in which one of the columns is a GUID. When I go to add
a new DataRow, how do I generate a GUID? I see that there is a datatype of
Guid, but it appears to me that I must define the guid value that I am
wanting. Is there some way to generate this automatically?
After I ... more >>
Using in Namespace
Posted by Pranav Shah at 1/3/2004 3:40:34 PM
What is the differrence between using the "using" caluse outside of the
namespace definition and inside the namespace.
Example Outside:
using System;
namespace Example.Outside
{
}
Example Inside:
namespace Example.Inside
{
using System;
}
Any help is appreciated.
-rythm
... more >>
Country settings
Posted by Patrick De Ridder at 1/3/2004 2:41:33 PM
If
a program works with decimal points
the system country setting requires commas as a decimal separator
the number of decimals = 2
then
two positions are added to the numbers when displayed
my question is
how do I stop that from happening?
... more >>
Current Date Time
Posted by Jim Heavey at 1/3/2004 1:29:13 PM
2 questions...
The documentation shows a "property" call Now, which returns the current
date and time, but it is not valid for how I am using it.
If you declare a field as a DateTime, but never populate it, how can you
tell if it is null?... more >>
Binding DataGrid to DataTable with custom classes
Posted by Dalibor Kusic at 1/3/2004 1:07:01 PM
The DataTable contains, for example, only one column of lets say
Person class.
Person class has three fields, and a constructor that takes a single
string and parses it over those three fields.
Now, how do I modify the Person class (which interfaces to implement)
so I can bind my DataTable to... more >>
Null
Posted by Jim Heavey at 1/3/2004 12:59:08 PM
Hello, If you have a method which test field to see if it is a valid date
and either returns a DateTime value which either has a valid datetime or it
has null, how can you test if the value returned is null? I tried and I
get an compile error "Can not be applied to operands System.DateTime an... more >>
ADO.NEt saving null values
Posted by Ivan Sammut at 1/3/2004 12:58:50 PM
Hi,
I created an access database and I am using ado.net to access it. Now I am
trying to create an update statment but I am having some error when so
fields are empty.
Here is my statment which read a set of textboxes from a screen and tries to
save them.
string sSql;
OleDbConnection co... more >>
Timeout expired. The timeout period elapsed prior to completion of the operation
Posted by Manoj K at 1/3/2004 12:33:40 PM
Environment:-
Framework 1.1
DB: SQL Server 2000 (SQL Provider)
OS: Windows 2000
Language: VB.NET
I'm trying to do mass inserts/updates. Using Transactions.
The table hierarchy contains 3 levels (TL1, TL2, and TL3):
Here is what I'm trying to accomplish:
1) Start Begin Transaction (i... more >>
int.Parse(...) Question
Posted by Matt at 1/3/2004 12:09:26 PM
I want to convert a string to an integer, I tried the following 2 methods
and they both worked. But I dont understand in method 1: int.Parse(...),
"int" should be the primitive type, but it can operate a method Parse?
int t1 = int.Parse(TextBox2.Text); //method 1
int t2 = System.Int32.Parse(Te... more >>
C# Create Excel sheet -> Could not find installable ISAM
Posted by unkwb NO[at]SPAM web.de at 1/3/2004 11:39:04 AM
I am using C# / ADO.NET to create an Excel sheet:
This connection string works:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filename + ";" +
"Extended Properties=Excel 8.0;";
This connection string DOES NOT:
....
"Extended Properties=Excel 8.0;HDR=YES;";
=> Error: Could not find ins... more >>
Create Excel Worksheet in C# / VB
Posted by unkwb NO[at]SPAM web.de at 1/3/2004 11:29:14 AM
I create an Excel worksheet in C# (should be similar in VB)
Connection String:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filename + ";" +
"Extended Properties=Excel 8.0;";
Create string:
"CREATE TABLE S1 (Dt date, St char(40), Cr currency)"
Works fine, but the worksheet is named ... more >>
richtextbox question
Posted by Eddie at 1/3/2004 11:28:29 AM
Hi,
Is it possible to get the current cursor position and append text from that
point in a rich textbox?
Thanks in advanced.
Eddie
... more >>
Date Function
Posted by Jim Heavey at 1/3/2004 10:47:46 AM
Hello, VB has an IsDate function which determines if a text field is a
valid date. What is the equivalent in C#?
Thanks in advance for your assistance!!!!!!... more >>
ItemSend doesn't work
Posted by Mike Belshe at 1/3/2004 10:40:09 AM
I've got an outlook add-in. I'm running Outlook XP, .NET 1.1. My
Add-In is written in C#.
I'm trying to trap either the Application.ItemSend or the
MailItem.ItemSend event to put up a dialog and possibly let the user
cancel the send. I can get the events to fire, but setting the Cancel
fla... more >>
Store Classes in ArrayList
Posted by Pablo Salazar at 1/3/2004 10:20:02 AM
Hi People
Few day ago, somebody sent me this code.
ArrayList al = new ArrayList();
//Insertar datos en la lista:
al.Add("Ejemplo1");
al.Add("Ejemplo2");
It can store two string in ArrayList, my question is
ArrayList can Store Classes ?
Thanks.
... more >>
type conversion in passed parameters
Posted by Mark Oliver at 1/3/2004 8:25:36 AM
Hi, I want to put a type conversion in my class, but I don't want the
conversion to be usable in a passed parameter because it makes no sense.
class cData
{
string s;
public cData(string s)
{
this.s=s;
}
public static implicit operator cData(string s... more >>
String override question
Posted by Patrick De Ridder at 1/3/2004 2:26:27 AM
Is it possible to change this function into
a string override? So I could just say
d.ToString()
Patrick
private string reformat(double d)
{
NumberFormatInfo nfi = new CultureInfo("").NumberFormat;
nfi.NumberDecimalSeparator=".";
nfi.NumberGroupSeparator="";
return d.ToStri... more >>
Using Attributes to Handle Exceptions?
Posted by Steve - DND at 1/3/2004 12:52:20 AM
Is it possible to do something like what this chapter excerpt shows, except
for just a regular non-remoting bunch of code?
http://www.microsoft.com/mspress/books/sampchap/6172a.asp
The reason I ask, is that I have implemented everything as is from the
chapter above, but none of my attribute ... more >>
remove
Posted by kuya789 NO[at]SPAM yahoo.com at 1/3/2004 12:26:30 AM
what function do i use to remove leading and trailing space?
" ABC "
i want the string to be
"ABC"
thanks... more >>
|