all groups > c# > may 2006 > threads for monday may 29
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
Finding Age from DOB
Posted by conckrish NO[at]SPAM gmail.com at 5/29/2006 11:52:53 PM
Hi all,
Can anyone tell me how to find out the exact AGE from Date of
Birth ( DateTime) in C#?? I have tried with
DateTime.Now.Subtract(dob).But I coudlnt get the exact age.. Is there
any property available for this??? Plz help me....
Thanx,
James..
... more >>
Modify an element in a xml file
Posted by Alberto at 5/29/2006 11:27:33 PM
How can I modify the value of an element in a xml file?
Thank you
... more >>
How to add Button in DataGrid
Posted by Calros Lo at 5/29/2006 10:05:02 PM
Dear All:
I want to add a Button in every head of record in DataGrid , I try to search
about function
in MSDN , but the MS look like not support the function , anybody can tell
me how to or tell me about the information in some website
Thanks.
... more >>
How do you create a Install project in C# Express?
Posted by Bryce K. Nielsen at 5/29/2006 9:49:21 PM
I've been using C# Express and couldn't find anywhere to create an
installation project, like I could in VS2003. Is this possible with the
"express" version of VS?
-BKN
... more >>
Why doesn't work this asigment?
Posted by Alberto at 5/29/2006 9:21:58 PM
pictureBox1.Location.X = pnl.Size.Width - 50;
Thank you.
... more >>
Generics a few questions
Posted by Jarod at 5/29/2006 9:13:58 PM
Hey
I have function like this:
GivenType GetData<GivenType>(...)
{
// I need to check if GivenType is System.String
the only way I found to work was:
if(typeof(GivenType) == Type.GetType("System.String")
// but here I want to do sth like this :
return (GivenType) ... more >>
Comparing elegantly when there may be a type mismatch
Posted by Michael A. Covington at 5/29/2006 9:07:47 PM
I'm handing the sort event of a DataGridView, because if I don't handle it,
there's an exception whenever I try to sort a column whose elements are not
all the same type.
I'd like to write a routine which:
- Tries to sort each pair of elements using the comparer that is appropriate
to th... more >>
Inconsistence! .NET 2.0 Generics and Exceptions
Posted by Vladimir Shiryaev at 5/29/2006 9:07:32 PM
Hello!
Exception handling in generics seems to be a bit inconsistent to me.
Imagine, I have "MyOwnException" class derived from "ApplicationException".
I also have two classes "ThrowInConstructor" and "ThrowInFoo". First one
throws "MyOwnException" in constructor, second one in "Foo()" me... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Dynamically Reference object name
Posted by TheLostLeaf at 5/29/2006 9:03:24 PM
I am trying to dynamically create the object name..... but i can't get
it to work...
>From This (works)
------------------------------------------------------------------
label1.Text = newDeck[0].ToString();
label2.Text = newDeck[1].ToString();
label3.Text =... more >>
Change / set ObjectDataSource paramater at runtime?
Posted by planetthoughtful at 5/29/2006 8:19:34 PM
Hi All,
I have an ASP.NET page that displays a GridView control based on an
ObjectDataSource control.
I'm wondering if it's possible to base the ObjectDataSource in question
on a parameter query, with the ability to set the parameter value at
run time (in the Page_Load event, perhaps?)?
... more >>
It seems to be the most basic questions that I don't see answered.....
Posted by ljh at 5/29/2006 7:30:03 PM
Perhaps I am somewhat dense.....but, I still need to know.....
What do you need to do in order to ship a SQL server Express or Developer
edition database with your Visual Studio .Net 2005 application?
Does SQL Server Express need to be installed on the target machines? Or,
can the database ... more >>
app.config
Posted by Alberto at 5/29/2006 7:08:36 PM
How can I read and modify information in the xml file app.config?
Thank you very much.
... more >>
Ident
Posted by Roberto Oakenfold at 5/29/2006 4:55:52 PM
I'm trying to to write an ident server, which yesterday worked fine, but
today its not. When I run it and connect to port 113 and try and send data
as soon as I press a button it dumps the connection, and wont let me send
the whole request, ie (1 , 2). Sometimes it'll send back
System.Byte[] ... more >>
What wrong with this code ?
Posted by Polaris at 5/29/2006 3:29:24 PM
Hi Experts:
The program creates Panels and inicilize them. When I run the code below,
the program crashes (at the line commented below). Any help is appriciated.
Thanks in Advance!
Polaris
private void createPanels (int nPanelCount)
{
Panel [] parray = new Panel [nPanelCount];
... more >>
Another inheritance question
Posted by tired_of_spaghetti NO[at]SPAM yahoo.com at 5/29/2006 1:43:22 PM
I'm curious as to the need for the new keyword in an inherited method
redefinition, so -
Suppose I have a class hierachy that looks like
public class Base
{
public virtual void myMethod()
{...
}
}
public class Derived : Base
{
public void myMethod()
{...
}
}
... more >>
webform password protected page
Posted by fred at 5/29/2006 12:42:15 PM
Hi all,
I am new for using C# to develop web app.
I made a web project which was password protected by using form mode
authentication.
in my login page ,I added one button of "add a user" which linked the
page to add a user to database. I confronted one problem.
now whenever a user click "add... more >>
How can I validate my xml?
Posted by Jonny at 5/29/2006 12:34:36 PM
Hi,
I'm trying to validate my xml against a xsd but I can't get it to work.
Originally, I wanted to validate an xml string but since I didn't get that
to work I tried to validate an xml file instead. Didn't work either.
Actuallty, the xml gets loaded but there are no events raised that says m... more >>
Tutorial Needed...
Posted by Anibal at 5/29/2006 11:32:06 AM
Hi,
I need a tutorial (URL) that explains the use of SqlCommand to execute
Stored Procedures that return values in SQL Server 2000; also the meaning
and use of the diferent types of parameter (Output, Input, Return Value).
Thank you very mutch.
... more >>
Server Side custom exception
Posted by escristian NO[at]SPAM hotmail.com at 5/29/2006 11:27:17 AM
I created a Custom Exception that inherits from ApplicationException.
This is declared in an assembly that is on the server side.
I made this class serializable and overloaded all the necessary
constructors for the serialization to work. The problem is that rigth
now I'm forced to have the ass... more >>
Adding an icon to the application taskbar
Posted by Baal80 at 5/29/2006 10:31:02 AM
Hello everybody,
I'd like to add an icon to my application's titlebar (to the left of the
minimize icon). And no, it will not be the icon to minimize application to
tray ;)
Nevertheless, I don't have a clue where to start (I'm kinda new to this).
Any hints/suggestions will be GREATLY app... more >>
Question about inheritance
Posted by tired_of_spaghetti NO[at]SPAM yahoo.com at 5/29/2006 10:04:45 AM
As I understand it, the virtual keyword is necessary and also in a
derived class you must use the override keyword so what if :
1) you don't use the override keyword ?
2) Suppose you have a class hieracy that looks like
public class Base
{
public virtual void myMethod()
{...
... more >>
combo datasource
Posted by Alejandro González at 5/29/2006 9:06:37 AM
Hi
I have a combobox binded to a Datatable
something like
combo.DataSource = dt.DefaultView;
combo.DisplayMember = "descField";
combo.ValueMember = "valueField";
it works fine.
Now if I update the datatable I want the combo to reflect those changes.
I'm trying to rebind the combo doi... more >>
Problem implementing a message loop
Posted by Dave at 5/29/2006 8:14:02 AM
I am trying to write an event-driven application with no main window that
runs "forever". It waits on a named event and then displays a window
depending on data pased in a memory-mapped file. I started with a standard
console application and it all works fine, except that it does not terminate... more >>
DateTime Calculations
Posted by Mike at 5/29/2006 7:09:14 AM
I have an ASP.NET form(using C#) with several text boxes and when the user
places a date in the first textbox and clicks a button, I would like to
populate the remaining textboxes with various dates subtracted from the date
in the first textbox - any suggestions? I do know that the datetime c... more >>
How to handle Ctrl-C event on a multi-threaded console application?
Posted by Basel at 5/29/2006 5:08:09 AM
Hi All
I'm using SetConsoleCtrlHandler to handle Ctrl-C event. But I have a
problem using it in multi-threaded applications (it doesn't invoke
handler function).
What is the correct way to handle Ctrl-C event in a multi-threaded
application??
Basel
... more >>
Search for ip camera
Posted by Cé at 5/29/2006 4:39:02 AM
Hello,
I would like to add a function to my application that would search an ip
range for network cameras, however I'm not sure how to go about it. I could
try pinging every ip but then I wouldn't know if it were an ip camera or an
other device, another option would be to try and look up a ... more >>
OpenFileDialog throws "Illegal characters in path"
Posted by Shilpa at 5/29/2006 3:20:54 AM
Hi,
I have a OpenFileDialog on my windows form whose filter is *.*.
I want the users to be able to further filter the files by giving *.doc
or *.zip etc in the "file name" field of the dialog (Just like it
happens in the open file dialog of MS Word)
Currently, if the user enters a wild card c... more >>
audio visualization
Posted by jack at 5/29/2006 3:09:31 AM
Hi all,
I want to create visualization effect in c# how can i do this
Please help me with any of the refference please.
Thanks for replyine me..
... more >>
Interop, Late Binding and Array of longs
Posted by Sam at 5/29/2006 2:47:30 AM
Hello All,
I have this VB 6 code :
'******************************************************************
' Purpose :
' Initialize an array with available metric for the selected
component
'
' Parameters :
' lArray : array to fill
'
'*******************************************... more >>
Question on implementing IDisposable
Posted by phl at 5/29/2006 2:30:45 AM
hi,
My question is:
1. To avoid possible memory leaks, when you use this pattern, after you
have dealth with the unmanaged resources and before you take your
object off the finalize queue, how are you sure that your managed
object resources are completely freed up of resources it's might be... more >>
TransactionScope in framework 2.0
Posted by Mukesh at 5/29/2006 1:59:27 AM
Hi,
I am new to 2.0 framework. I am trying to use TransactionScope in the
following code. I took four lables. Started TransactionScope scope.
After setting values to three labels I throw an exception. I expexted
all label value would remain as method Complete() of TransactionScope
scope ... more >>
How to...
Posted by Jacek Jurkowski at 5/29/2006 12:00:00 AM
.... make COM exposed object to have
both constructors COM visible not only
the first one?
... more >>
How to stop a blocked worker thread?
Posted by Ole at 5/29/2006 12:00:00 AM
CF2.0
VS2005
C#
How to stop a worker thread that is e.g. listening for data on a port when
the application is closed?
Thanks,
Ole
... more >>
Confusing Asynchronous Threadpool
Posted by Maya Sam at 5/29/2006 12:00:00 AM
Hi all,
I have the following code I created to do multiple websites data crawling
using Asynchronous Thread calling it works fine however I'm confused when it
comes to make the calling thread stops or sleep until all other threads
within the threadpool have all finished their jobs.
what ... more >>
Convert Twips to pixel
Posted by perspolis at 5/29/2006 12:00:00 AM
Hi all
I have some points in twips measurement.how can I convert them to pixel
measurement ?
thanks
... more >>
override C# OnPaint method of parent Form class in VS2005
Posted by cok at 5/29/2006 12:00:00 AM
Hi, all
I have a question about VS 2005 IDE, I donn't know if
It is place to post my question,sorry
I have a class inherit form System.Windows.Forms.Form,
I want to override OnPaint method , In Project Class View,
I right click MyForm, but there is no Item about
"Override method" in the co... more >>
Creating SQL Database Programmatically
Posted by Ian Semmel at 5/29/2006 12:00:00 AM
I can create a database by executing sql commands from files and create the
database and tables ok, but after I have closed the connection, I cannoy access
the database with anything - VS, SQL Server Management Studio etc without
rebooting the computer. It says it 'is in use by another program... more >>
Drawing text without an offset
Posted by John B at 5/29/2006 12:00:00 AM
I need to create a label with the last character drawn in red.
My idea was to create a label and override OnPaint.
So far so good.
I then measure the character range for the last character.
All good.
Then when I call drawstring and pass the rectangle I get via
Region.GetBounds(Graphics) it dr... more >>
How to ...
Posted by Jacek Jurkowski at 5/29/2006 12:00:00 AM
.... make COM exposed object to have
both constructors COM visible not only
the first one?
... more >>
Class Types
Posted by Jazer at 5/29/2006 12:00:00 AM
What are the diffrences in usability among Class, Component Class and Code
File?
... more >>
|