all groups > c# > may 2005 > threads for monday may 23
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
Email Attachment
Posted by Malik Asif Joyia at 5/23/2005 10:54:26 PM
How can i send a email with attachment. i have a file read in a stream
and without writing it to disk i want to send it as an attachement ,
how can i achieve this task,
Thanks
... more >>
What is the scope of a 'static' variable?
Posted by Gery D. Dorazio at 5/23/2005 8:45:04 PM
Gurus,
If a static variable is defined in a class what is the scope of the variable
resolved to for it to remain 'static'? For instance, lets say I create a
class library assembly that is strongly name which contains the class where
the static variable is defined. This library can be refere... more >>
Trim problem
Posted by sengkok at 5/23/2005 8:06:08 PM
I have develop a smart card device reading and writing program, but I am
facing a problem that when I read the value from the smart card, I get "A19\0
\0\0\0", (actually I have store the value A19 into the card from sector 17 to
sector 24, 8 bytes long), I try to use Trim () function to cut th... more >>
numbers of rows
Posted by Claudia Fong at 5/23/2005 7:43:14 PM
Hi,
I'm using a DataReader to connect to a db and retrieve data from the db.
I just wondering how can I know the numbers of rows contain in my DB for
the sql statement I used? For example, if the sql statement is like
this:
SELECT *
FROM DEPT;
I try objReader.(but I didn't find any r... more >>
cannot get any app settings after renaming app.config
Posted by cloudx at 5/23/2005 7:42:01 PM
Hi there, it is driving me crazy. Aftering renaming app.config the following
code I always get null on myApp. It works if I keep the name app.config. Why?
string myApp = ConfigurationSettings.AppSettings["AppName"];
Thanks!... more >>
Ask about MSMQ
Posted by dangquochung at 5/23/2005 7:40:01 PM
How can i put my public message queues in my own folder under Message Queuing
folder rather than in the predefined Public Queues?... more >>
Asp.net and Mail merge
Posted by Phil Barber at 5/23/2005 7:05:33 PM
I have started a project that requires a mail merge type action from a web
page.
I have a template form that needs data merged into specific fields from an
SQL server then turned in into a PDF file.
I have read several MS articles that imply that Word Mail merges should not
be done from th... more >>
Good Tutorials
Posted by me at 5/23/2005 6:20:43 PM
Hello,
I am wondering if there is a specific site/page that would show how to scan
input from a textfield and look for and convert certian characters in too
special html code.
TIA
Aaron
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Using Enterprise Library DAAB with Strongly Typed DataSet
Posted by David at 5/23/2005 4:06:07 PM
I have been developing applications with Java for quite a while but I am new
to .NET development. I am trying to learn the ".NET way" of creating Strongly
Typed Objects from a database. The Enterprise Library seems pretty close to
what I am used to in Java but I am not sure how to create stron... more >>
How do I override a class's properties?
Posted by M Shafaat at 5/23/2005 3:15:32 PM
Hi!
I want to make a base class with some base properties and then derive
different other classes from that in which I want to override the base
properties to get specialized behaviour unique for each derived class as
follows:
MyBaseClass {PropertyA…}
MyDerivedClassA: MyBaseClass {Prope... more >>
fuzzy match
Posted by michael.f.morrison NO[at]SPAM colostate.edu at 5/23/2005 3:09:51 PM
Hi all,
Does anyone now if there is a way to do a fuzzy string compare in c#?
For example, comparing 'cat' to 'cats' would return something like a
90% match ratio. I was told that this type of fuctionality exists in
Perl but I can't find anything about it in c#.
Thanks
Mike
... more >>
tab size in a text box
Posted by PLEE at 5/23/2005 3:09:43 PM
Is there a easy way to set the tab size in a multiline textbox object? For
example, I want to change the tab character to be 4 spaces.... more >>
The Nifty Dozen
Posted by Philippe Lacoude at 5/23/2005 2:15:18 PM
In case someone is interested in getting free .NET tools, I wrote a
small paper listing significant open source contributions to the .NET
software development community.
If you have not downloaded and tried these tools, you are probably
stranded on a desert island, away from civilization.
I... more >>
Assembly on shared drive just doesn't work???
Posted by Brett at 5/23/2005 1:34:30 PM
I have an assembly on a shared LAN drive. On my developer machine, I give
that assembly full trust from the .NET wizard. It works fine. I go to a
user machine on the LAN, map to the shared drive, give full trust on that
machine but the assembly doesn't fully work. No errors. The assembly ... more >>
System.Type.GetType("System.Xml.XmlElement") returns an undefined value
Posted by Tim Nelson at 5/23/2005 1:16:29 PM
when System.Type.GetType("System.Boolean") works.
Is there some way to get this type at runtime?
Thanks,... more >>
How to iterate through a DataTable in C#
Posted by Tom at 5/23/2005 1:08:05 PM
I have an InMemory DataTable that I used as a datasource for my grid.
I need to know how to interate through it.
The onlione books say there exist a property called item on the DataRow but
my C# intellisense doesn't show this.
Here is the code so far.
foreach(DataRow dr in dt.Rows)
... more >>
Encoding SQL Server strings?
Posted by Brett at 5/23/2005 12:45:16 PM
I need to encode varchar() types from SQL Server to ISO 8859 (western
europe). What is the best way to do this?
As an example, there are 100 rows with 10 columns each. All string types.
Thanks,
Brett
... more >>
Rich text edit auto scroll
Posted by Ed A at 5/23/2005 12:32:21 PM
Hi all:
I'm using a Rich Edit Text box to display debug info for my app, I can't
seem to make the control scroll down to the bottom autmatically whenever I
append a new text string (AppendText()). Could someone point me in the right
direction.
Thanks
Ed;;... more >>
Event Processing
Posted by wschlichtman at 5/23/2005 12:24:30 PM
I am attempting to handle an event when the Text changes in a
ToolStripComboBox. I'm just not quite there yet, and hope you can help.
Here's what I have:
namespace Flash
{
class MyComboBox : ToolStripComboBox
{
private MyComboBox()
{
// Code to initialize drop... more >>
Connecting an ASP web page to SQL Server
Posted by matt.raffel NO[at]SPAM mindspring.com at 5/23/2005 12:10:20 PM
Im running XP Pro with SQL Server 2000 SP3 installed on my local
machine.
I've created a webpage that has a sqlConnection, sqlDataApdapter, a
dataset, and a datagrid. I've gone though all the "wizard setup".
But the data in my table doesnt show up in the datagrid when I run the
page.
Its... more >>
WebService: How to close a connection after a completed request
Posted by Manoj Kumar at 5/23/2005 10:31:27 AM
I have a web service that gets data from clients. It appears that each
time a client connects to the webservice, a new connection/session is
created on the server side (IIS 5.1). After 10 calls to the webservice,
I start getting errors when connecting (too many connections). The
client program h... more >>
hyperlink and richtextbox
Posted by Steve Teeples at 5/23/2005 10:10:56 AM
I've created a RTF file using Microsoft Word. Within that file are internal
hyperlinks to sections of the document. I'd like to use it as a help file.
When I place the file into a RichTextBox control within a form the hyperlinks
no longer work. Is there some way to allow these links to con... more >>
save file to bin directory
Posted by microsoft.news.com at 5/23/2005 10:05:53 AM
I have a console app that creates a file and I want to save it to the bin
directory of the project. How can I have the file save there as default?
My code looks like this:
fileName.SaveAs("testfile.txt");
it's going to document settings -- my documents and saving it there. I need
to s... more >>
Cause a Textbox to lose focus
Posted by chris NO[at]SPAM ckerrison.freeserve.co.uk at 5/23/2005 9:26:46 AM
Does anybody know how I can programmatically cause a textbox to lose
focus and automatically jump to the next appropriate control.
I have a custom textbox usercontrol whereby the requirement is to
enable the user to jump around between controls by hitting the enter
key instead of tab key or mo... more >>
Exception in a constructor
Posted by JSheble at 5/23/2005 9:04:35 AM
If an exception occurs or is thrown in my constructor, what does the
constructor actually return? A null?
... more >>
Excel Example
Posted by Jim Heavey at 5/23/2005 7:20:03 AM
Hello, I am trying to follow along with Microsoft example of the different
ways to create an excel file
(http://support.microsoft.com/default.aspx?scid=kb;en-us;306023#12). The
article tells me to create a reference to the "Net" component "ADODB". I see
no name like this. I thought that t... more >>
Coming from Powerbuilder
Posted by LC at 5/23/2005 7:18:25 AM
I am beginning to learn C#. net after being in Powerbuilder for over 10
years.
For those C# gurus who know Powerbuilder I have a couple of questions:
Does a datawindow relate to a datagrid or is there something better?
I have heard of something called 'WinForm'. Does that relate?
Do you ... more >>
Get local computers Workgroup name
Posted by zav at 5/23/2005 3:45:11 AM
Hi all.
Getting stright to the point Im trying to get and set my computers workgroup
name but im having litle luck, i've tryed:
Environment.UserDomainName
Environment.MachineName
but they only retreive the local machine name.
Can anyone point me in the right direction.
Thanks.
P.... more >>
Hashtable faster than SQL ?!!
Posted by Steven Wolf at 5/23/2005 3:01:02 AM
Hi guys,
can a hashtable be faster than a sql server??
i made my own O/R mapping with an "entity cache" (caching all mapped
objects). So, when i get some data from my sql server, i map that data to an
entity-object and i leave a copy of it in the entity cache.
the entity cache is a simple... more >>
access a textbox value from another form
Posted by Claudia Fong at 5/23/2005 2:33:14 AM
Hi,
I have 2 forms. Form1 has a button which calls form2, but I need to know
the value of the form1.textBox1.text.
When I show form2, I try to use the code bellow:
textBox1.Text = formst.textBox1.Text;
but this generates error -->
WindowsApplication1.frmdisplaystock.textBox1' is in... more >>
text color
Posted by Soumya Roy Choudhury via .NET 247 at 5/23/2005 1:20:01 AM
(Type your message here)
--------------------------------
From: Soumya Roy Choudhury
I have five column in a datagrid.I want to change the text color of all cell in first and fourth column.How do i do the same as written above?
Thanks for Relye.
Soumya
-----------------------
Posted by ... more >>
Use swf file in C# Window Form
Posted by David Perez at 5/23/2005 1:06:01 AM
Hi all,
i'm creating an application in C#, using Window Forms. I want to include
".swf" (Macromedia Flash) files, to be shown in the application. We want to
show differents flash animations depdnding on the data recieved from a file.
My question is how to add this swf files to the form, and... more >>
any idea when VS 2005 is released?
Posted by John Salerno at 5/23/2005 12:51:47 AM
Anyone know of anything more specific than the "second half" of the year?... more >>
Hide property at designtime
Posted by greg.bacchus NO[at]SPAM gmail.com at 5/23/2005 12:18:36 AM
Hi,
If I make a control, I want to be able to make it so that various
properties are not initialised by the designer.
I realise that if you put [Browsable(false)] that it won't show up in
the properties window... but for some reason the auto-generated code
insists on initialising it anyway. T... more >>
Post-back problem
Posted by Ravi at 5/23/2005 12:10:02 AM
Hi,
I have a simple .aspx page where user enters data (e.g Name address,
etc). At the end, he/she clicks Save button which Posts to the same page and
in the Save button's click event I am saving the data into Database. Now
after saving the details the same page gets rendered to the user. I... more >>
Semi OT: To Null or not to Null
Posted by John B at 5/23/2005 12:00:00 AM
Semi OT I know but I want other programmers opinions, not DBA's.
When storing class data in a database, do you use null or the default
for the type if the field is empty.
ie.
class Foo
int P1
string P2
Save()
insert into FooTable (p1 value, p2 value)
Load()
get from FooTable p1, p... more >>
How do i bind such a class to datagrid?
Posted by Julia at 5/23/2005 12:00:00 AM
class Document
{
Hashtable Properties ; //Key is the property name
}
class Media
{
Document document;
Status status
string this[string propertyName] //Return property value from the
document
{
}
}
I have a list of media and I would like to bind... more >>
Is it a valid Object Instance?...
Posted by Kerem Gümrükcü at 5/23/2005 12:00:00 AM
Hi,
how can i find out whether a object is a valid instance or not?
I have a object called objCF (base class is a Form) and i want to
find out whether this object is a valid insatnce or a null reference.
This must be accomplished in C#...
Thanks in advance...
... more >>
Debug.Writeline() not doing new line?
Posted by Brett at 5/23/2005 12:00:00 AM
I use the following to output to the console during debugging:
catch(Exception ex) {
Debug.WriteLine("Error: " + ex.Message);
}
Many of the times on the console, the above is appended on the same line.
Sometimes it goes on a new line. I don't have any thing in my code related
to tr... more >>
C# DLL and C
Posted by GTi at 5/23/2005 12:00:00 AM
I have a old C project that is to big to be converted to C# at once.
So we are tinking of doing it step by step.
Is it possible to execute a C# DLL function from C ?
It is possible to execute a C function in C# but what about the other way?
... more >>
Best Practice Advice XML
Posted by Fraser at 5/23/2005 12:00:00 AM
Hi,
I'm needing to update an xml file by inserting a new node. First I need to
load the xml into a XmlDocument from file.
In the first run, the file won't exist and I will have to create a new
XmlDocument. What is the best way to do this ?
I'm thinking just catching an exception and b... more >>
Panel drawing problems.
Posted by Leif Eirik Olsen at 5/23/2005 12:00:00 AM
Hi,
I have some code I'm using in a CompactFramework project. The code works as
expected on the CF, but when using this code on the FullFramework (FF) it
does not work the way I want. It copiles ok, but the screendrawing is not
working 100%.
What the code is supposed to do:
Draw recieved v... more >>
Call .lib file in c#
Posted by Manoj Nair at 5/23/2005 12:00:00 AM
Hi,
How can I use a .lib file made in c++ in my c# application
thanks in advance
Manoj
... more >>
Time to write web app vs windows app
Posted by Michael C at 5/23/2005 12:00:00 AM
Someone at work told me that he has estimated it is taking him 5 to 10 times
longer to write an app as a web app instead of windows app. He's been
working on it for 18 months and reckons he could write the whole thing again
as a windows app in 6 weeks. Does this sound right? Note this is for a... more >>
CSV reader
Posted by Madhusudhan.Penta at 5/23/2005 12:00:00 AM
Hi All,
Can anybody provide me with a smart CSV , Tab Delimited Reader
Thanx in Advance
... more >>
If the base class doesn't support serialization how to serialize derived class?
Posted by Julia at 5/23/2005 12:00:00 AM
Hi,
I am deriving a class from BoundColumn and I would like that the derived
class will be serialized
how can I do it?
Thanks in advance.
... more >>
Redirecting
Posted by Vivek Sharma at 5/23/2005 12:00:00 AM
Hi,
I am using database based authetication for users. Once a user is
authenticated I am redirecting the user to a different page in the same
folder. WHen I debug I keep end up going to "catch" and finally to the
cached page. It steps through the catch but does not generate any error
... more >>
|