all groups > c# > may 2005 > threads for friday may 20
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
date format
Posted by Claudia Fong at 5/20/2005 9:24:18 PM
Hi,
I use the following code to get the date from my db. The format is
5/21/2005, but using the code below it will display: 5/21/2005
12:00:00 AM
label3.Text = Convert.ToString(objReader["ADD_DATE"]);
Is there a way so I can get only the date 5/21/2005 instead of the whole
... more >>
Retrieve data from a db (Question)
Posted by Claudia Fong at 5/20/2005 8:38:35 PM
Hi,
I have a form where I need to display the data of a department that
stores in a access db.
When I first load the form it will call a function name loaddata which
will get the first record from the db and then display for the user:
oleDbConnection1.Open();
OleDbDataReader objReade... more >>
closing connection
Posted by Zeng at 5/20/2005 8:15:16 PM
Is there any advantage of always calling SqlConnection's Close method after
done using it vs. just let it go out of scope open and hope the garbage
collection will take care of it?
thanks!
... more >>
Developing frameworks: Requirements?
Posted by Brett at 5/20/2005 7:51:28 PM
Are developers that are involved in creating frameworks for categories of
business' and as industry standards usually some of the highest quality
developers writing software? If not, who has such a status?
Also, what requirements might a framework developer have? In other words,
how did s... more >>
VS .NET Project References
Posted by Vish at 5/20/2005 5:00:02 PM
Hi all,
I have a VS.NET (2005 BETA2) solution that has five winforms projects.
Here are the details.
Project-A (Main, startup project), references Project-B (class lib project)
Project-B (Class lib project), references Project-C (Class lib project)
Project-C (Class lib project), references... more >>
Visual Studio Tools for the Microsoft Office System
Posted by microsoft.news.com at 5/20/2005 3:17:59 PM
where can I find Visual Studio Tools for the Microsoft Office System to
install? I have all the PIA's, interops, etc. but it appears i still don't
have all the tools installed. I don't see Microsoft Office 2003 projects as
an option when i open .NET studio. i found the uninstall directions but... more >>
Test a string for Hex or Oct
Posted by MAF at 5/20/2005 1:47:15 PM
How can I test a given string to see if the string is a hex number or an oct
number?
... more >>
vc 2005 beta question
Posted by mysteron at 5/20/2005 1:13:59 PM
i have vc 2003 installed on my dev machine and was wondering if I can
install 2005 beta 2 on the same machine and have both working perfectly and
not interfering with each other?
TIA
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
GC and Linked List
Posted by Maksim at 5/20/2005 1:07:02 PM
I have a link list; if I want to Clear the list do I have to set every node
in the list to null or I can simply set the Head/Tail nodes to null?
If I set Head/Tail to null, will the GC free any resources used by the nodes
between Head and Tail?... more >>
DataSet.AcceptChanges?
Posted by Christopher Weaver at 5/20/2005 11:35:18 AM
I can't get this method to work as I expect it to. If I edit a row within a
DataSet, then invoke the DA's Update, the changes to the current row are
lost. If I move off the modified row then invoke Update the changes are
written to the back end. I assumed that AcceptChanges would cause any ... more >>
How to check for string as alpha or numeric??
Posted by trint at 5/20/2005 11:26:45 AM
How can I check this to see if it is a string representation of a
number, or if it is actually just text?
Convert.Int32(AlphaNumeric); returns the error for wrong format if it's
alpha. I just want to know if it is letters or numbers in the string.
string AlphaNumeric = "US";
Thanks,
Trint... more >>
Creating a help system
Posted by Steve Teeples at 5/20/2005 11:25:33 AM
Can someone point me to a document that clearly identifies the steps of
creating a good help system for an application? I have a test tool that I'd
like to add help to so that others will know how to use it.
--
Steve... more >>
Difference between WebClient and HttpWebRequest/Response??
Posted by Jason Manfield at 5/20/2005 11:20:56 AM
What is the difference (pros and cons) between retrieving data from the web
using System.Web.WebClient and using HttpWebRequest and Response to get the
data? The WebClient download methods seem to neatly encapsulate the multiple
steps (request.Create; request.GetResponse; response.GetResponseS... more >>
The order of closing transactions and connections?
Posted by Frank Rizzo at 5/20/2005 10:43:18 AM
When I commit a transaction, what should be the order of closing
resources? Transaction first, and then the Connection? Or vice versa?
Or doesn't matter? Currently I have this. Is this correct?
public void CommitTransaction()
{
CheckTransactionState(true);
try
{
_t... more >>
Auto restart application after unhandled exception in c# CF
Posted by Lieven Boving via .NET 247 at 5/20/2005 9:19:48 AM
(Type your message here)
--------------------------------
From: Lieven Boving
I develop a application within c# on the compact framework (not version 2.0!).
How can I restart my application in C# after unhandled exception.
I can not uses the process class because this is not supported in ... more >>
XPathNodeIterator get outerXml?
Posted by KJ at 5/20/2005 8:31:03 AM
It is true that there is no way to get the outerXml of
XPathNodeIterator.Current? Please say it isn't so.
... more >>
know if first letter is a letter or a number?
Posted by trint at 5/20/2005 7:33:51 AM
I need to know if this string, which will always vary is a letter or a
number value AND if it is a letter, to only get the number, which is
obviously 7000:
string prodID = "us7000";
is Parse, the best way to get this?
Thanks,
Trinity
... more >>
How can I append one more record while populating DropDownList using Database.
Posted by to_rgoyal NO[at]SPAM yahoo.com at 5/20/2005 7:07:49 AM
Hi All,
I am creating one web base application using ASP.net and C#. I am
populating dropdown lists of my web
pages using database. I am using this code:
con = new SqlConnection(connectionString);
SqlCommand getresult = new SqlCommand("select distinct(owner) from
issue_log",con);
con.Op... more >>
Stress testing an application?
Posted by Robert Hooker at 5/20/2005 7:03:50 AM
I have a fiarly high powered machine for development. This is a bit of curse
at times though, since I am sometimes not exposed to the bottlenecks for
performance that a lower spec machine might be exposed too.
My question: Is there a way I can tell the .NET to only ever use half of my
avail... more >>
What are the Best .NET Periodicals
Posted by orekinbck NO[at]SPAM yahoo.com.au at 5/20/2005 6:47:07 AM
Hi There
What are the best newsletters/sites/magazines .. etc for keeping up to
speed with C# and .NET ?
TIA
Bill
... more >>
Close Win Form
Posted by George Ivanov at 5/20/2005 5:39:21 AM
hi,
I want to close C# Win Form application for Pocket PC, only by pressing
[X]. On the device pressing [X] closes the window, but the application
is still active.
How can I catch the click event for [X] button and close the
application?
*** Sent via Developersdex http://www.developersdex.... more >>
how change focus on button
Posted by Marco at 5/20/2005 5:27:46 AM
How can I disable the rect that is display when I click on the button
or press tab button?Can I replace this with a bitmap?
... more >>
Displaying bool as a Checkbox in a DataGrid
Posted by jdipalmajr NO[at]SPAM comcast.net at 5/20/2005 5:18:59 AM
I have a table which is being displayed in a DataGrid. One of the
columns is a boolean. When I began my development, I wasn't using
styles to control column formats. When I used the default styles, the
boolean displayed as a checkbox (checked if true and unchecked if
false). Now that I am us... more >>
Anchor links in Control
Posted by Barry at 5/20/2005 4:00:44 AM
Hi
I am Developing a C# control for use in ASP.NET Web Application, it is
has some HtmlAnchor links on it, i want to avoid the underscore which comes
in all links, how can i do it it the Control's code not on the Web page
where it is displayed
TIA
Barry
... more >>
Regex : regular expression problem
Posted by Jac at 5/20/2005 2:55:11 AM
Hey,
I have following string :
blabla {\*\bkmkstart test1}{\*\bkmkend test1} line1 {\*\bkmkstart
test2}{\*\bkmkend test2}
I want to change the string to the following with regex.
blabla &test1& line1 &test2&
I do the following :
strTemplate = Regex.Replace(strTemplate,@"{\\[*]\\bkmks... more >>
How to pass a const struct by reference
Posted by Alexander Kolev at 5/20/2005 2:21:02 AM
I have a huge struct with many members.I don't want to copy
this struct to the stack, that's why i pass it by reference to
a function. But also i want the function to be unable to modify it.
Something like that in C++:
bool func( const Str& myStr )
{
....
}
... more >>
Heaven or hell?
Posted by GreatB at 5/20/2005 12:25:14 AM
Bill Gates died in a car accident.
He found himself in Purgatory being sized up by God .
.. "Well, Bill, I'm really confused on this call. I'm
not sure whether to send you to Heaven or Hell. After
all, you enormously helped society by putting a
computer in almost every home in the world and y... more >>
How can I sort a HashTable by a specified column?
Posted by Oberon at 5/20/2005 12:12:35 AM
My HashTable (Global.Games) is a static collection of objects of type
Game. A Game object has 8 fields (exposed as properties). The key to
the HashTable is also one of these fields (GameID, of type int).
When I try to create a SortedList from the HashTable with the
following:
SortedList sor... more >>
Need an example of using the base class CommonDialog
Posted by Patrick Blackman at 5/20/2005 12:03:59 AM
I want to create my own custom common dialog derived from the base
class"CommonDialog" to display my custom form any ideas how to accomplish
this with an example.
Thanks
Patrick
... more >>
GC, Windows or Design problem?
Posted by Tamir Khason at 5/20/2005 12:00:00 AM
I have VERY BIG object (>2G) serialized and I'm loading it into some object.
In client's site I have P4 3G/512Mb computer where the application running.
In the computer the page file is 3G. But while loading the object from disk
on ~400-500Mb PF usage the CPU conter comed to 0 and memory remai... more >>
Color as Param
Posted by Daniel Groh at 5/20/2005 12:00:00 AM
public LabelMsg(System.Web.UI.WebControls.Label lblMsg, string strMensagem,
Color.???)
{
lblMsg.Text = strMensagem;
lblMsg.ForeColor = clrLabel.???
}
I need to give the color as a param, wich type should i use ?
... more >>
One of those trick questions
Posted by Michael C at 5/20/2005 12:00:00 AM
without running it what will this code do. It compiles correctly.
private void X()
{
int i = 0;
{
i++;
MessageBox.Show(i.ToString());
} while(i < 10);
MessageBox.Show("Done");
}
... more >>
Getting Doamin of the User presently Logged in.
Posted by Saradhi at 5/20/2005 12:00:00 AM
Hi All,
Can any one tell me the way to check whether a given user name is a member
of domain users or not. I do not know the domain name as well. I should
retreive from the logged in user, in which user account my appliation is
running. If the system is not a part of domain controller then ... more >>
Upgrading from 2003 to 2005
Posted by Spurry Moses at 5/20/2005 12:00:00 AM
I know it's in Beta 2, but I can't report any good experiences with
upgrading a project form 2003 to 2005.
I tried to upgrade a 2003 project to C# Express 2005. My application has
hardly anything, as I'd just started on it. It contains just a main form,
and about box and a few class file... more >>
Problems with .NET beta 2 and StackOverflowException
Posted by Steen Tøttrup at 5/20/2005 12:00:00 AM
I don't know if there is another newsgroup where I should ask this=20
question..??
I have this .NET web application that I've build using .NET 1.1. Now=20
I've moved it to .NET 2.0 beta 2, and suddently I'm getting all sort of=20
strange behaviour!!
I'm using a HttpHandler (not .aspx file... more >>
Create objetc dynamically
Posted by Bruno Remeyse at 5/20/2005 12:00:00 AM
Hi,
I need help for the following problem :
At the start of my application, i found the items of the configuration in
the register. This items represent tools connected to the system at this
moment.
I have a class named "Machine_Tools" for drive the tools by an RS232 series
communication.... more >>
string array conversion
Posted by Jimmy at 5/20/2005 12:00:00 AM
Hi
I want to write a program to reverse a string.For example :string
stobereversed ="hello how are you"
becomes :"you are how hello". What is the fastest and most elegant code for
this?
thanks
Jim
... more >>
What's wrong with my ODBC connection string?
Posted by Charles shao at 5/20/2005 12:00:00 AM
Hi dear friends:
I have a DB and I want to access it through ODBC.
I can create a DataGrid in disigner and it works well.
But I failed when trying to open connection manually.
Are there anything wrong with my connection string?(if something left?)
Thanks
Charles Shao
=====... more >>
Enterprise Library - Cryptography
Posted by Oscar Thornell at 5/20/2005 12:00:00 AM
Hi,
I am trying to use the Entlib Cryptography block in an application.
I have two classes (Encrypt/Decrypt) that incorporates code from the
Quickstart exampele provided with entlib.
When trying to decrypt an encrypted string I get the following error:
'System.Security.Cryptography.Crypt... more >>
How to set a specific time of the day to a date in DateTime?
Posted by A.Neves at 5/20/2005 12:00:00 AM
Hi,
I have a DateTime in an Access database where I store one Date dd-mm-yyyy
and a specific time HH:mm of the day for that date. How can I change the
time without chaging the date and vice versa in a sepecific DateTime object.
I need this because in a grid they are in separate columns but ... more >>
(Not) Another C# vs VB Article
Posted by Arjang at 5/20/2005 12:00:00 AM
http://www.codeproject.com/useritems/CSharpVersusVB.asp
... more >>
Redrawing ListView
Posted by Jonathan Taylor at 5/20/2005 12:00:00 AM
I basically update the listview items, but how can i then refresh the
listview ??
I've tried Update(), Redraw() and Invalidate(). None of these work. The
new data displays fine if I close the form and then reopen it, but I need it
to update when i call a method, after I've added new data ... more >>
Events heirdom
Posted by Mateusz [PEYN] Adamus at 5/20/2005 12:00:00 AM
Hi
I have 2 forms, like this:
Form2 : Form1
On Form1 I have a button1_Click event.
On Form2 no event is set.
When I Click button1 on Form2 the onClick event is fired two times. I
figured that its because Form2 is made out of Form1, so program actually
has two events, one on Fo... more >>
Thread completed state.
Posted by objectref at 5/20/2005 12:00:00 AM
Hi,
is there a way to spawn some threads (not from the thread pool) and knowing
when each of these therads has completed its' job ?
I have thought to put them on a hash and requery their IsAlive or
ThreadState status
but is it another way to do so ?
thanks in advance,
objectref
... more >>
System.Net.Socket.Receive(...) bug?
Posted by Saso Zagoranski at 5/20/2005 12:00:00 AM
Hi!
I have simple client/server game that uses sockets to transfer different
messages.
The server and the client are running on the same machine.
These are the steps:
1. start the server (I use a TcpListener on port 8080) and wait for messages
byte[] buffer = new byte[40... more >>
Path to WebService
Posted by Mateusz [PEYN] Adamus at 5/20/2005 12:00:00 AM
Hi
I was wondering if there is a way to dynamicly specify the path to the
WebService?
For example: I'm writing a soft which will use a WebService. But
WebService could be provided on one of few servers. I'd like to add a
feature to my software for setting the addr of the WebService's ser... more >>
An array of Controls on Main Form
Posted by Spurry Moses at 5/20/2005 12:00:00 AM
Hi,
I want to create an array of combo boxes on my form.
The only problem is that I don't want to place 3 seperate combo boxes on
the form if I can avoid it. I'd just like to create an array and
dynamically create them. For example, like the code (that uses Radio
Buttons) below.
Ca... more >>
|