all groups > c# > february 2008 > threads for friday february 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
Keeping settings across versions?
Posted by Sin Jeong-hun at 2/29/2008 9:14:41 PM
I used the settings class that VS.NET automatically generates to save
some app settings, simply because it is the easiest way. But the
problem is, even though the settings class wasn't changed (no fileds
are modified) each time I change my app's version slightly (like 0.1.0
to 0.1.1) all the set... more >>
how to remove closing tag of a node of xml file in asp.net and c#
Posted by tosudesh2005@gmail.com at 2/29/2008 9:01:44 PM
hi all
I write code like this to remove perticular node. but it left closing
tag in xml file. but i want remove this closing tag also.
------------------------------------------------------------
string filename = Server.MapPath("DutyStatus.xml").ToString();
XmlNodeList objnodelst;
XmlDocume... more >>
Static vs. instance method: Which one performs better?
Posted by gnewsgroup at 2/29/2008 7:35:19 PM
I am not sure if this question makes sense. But I have been wondering
if there is a performance difference between a static method and an
instance method.
I created something like this, just to give it a test.
namespace ConsoleApplication1
{
class Program
{
static void M... more >>
Weird XSLT messages
Posted by Vijai Kalyan at 2/29/2008 7:25:52 PM
I keep getting these weird error messages
FailPT0.002Smantis.exe -uFailPT0.002SFailPT0.002SFailPT0.001SExpected
data.Some unexpected data.1093This is a sample debug
messagePassPT0.001SSkippedPT0.000SBrokenPT0.000SNotImplementedPT0.000S
when trying to apply a XSLT on a XML document using the
... more >>
How to convert a Dictionary<int, double> to an array?
Posted by amir at 2/29/2008 6:48:01 PM
I am trying to convert a Dictionary into an array so that I can compare
values and compare keys individually.
I am looking for a solution like array[array] i.e array of array.
... more >>
Creating a TCP/IP Connection
Posted by BillB at 2/29/2008 3:56:30 PM
Hi,
I'm new to C# and was wondering how I can create a TCP/IP connection.
I would like to be able to create a connection to a web server on a specific
port fire of some commands to it and then once I'm finished close the
connection again.
I'm looking for something similar to how HyperTerm... more >>
language (sopken) translation
Posted by colin at 2/29/2008 3:48:19 PM
Hi,
I need to translate some text messages wich are in a file wich
is in windows .ini format,
eg:-
[Info]
Title=haunted church
[Message1]
NewMessage=do not enter
from czech to english,
there are quite a few translation websites wich do online translations,
but only 1 ive found wich c... more >>
Wierd C# DateTime Parse Error..please help
Posted by avnrao at 2/29/2008 3:01:01 PM
We have a web service that gets data in xml format. In that Xml data, we
parse few date fields that are in this format
<data datefield="12/26/2008" timefield="16:33:45" ...>
we parse it into a DateTime field using DateTime.Parse( datefield ).Add(
TimeSpan.Parse( timefield ).
For some reas... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Unwanted duplicated columns in DataView
Posted by claucometa at 2/29/2008 2:57:56 PM
I placed a DataGridView in the form and configured it to have 3
columns A, B and C (all in design mode).
After that, I did through code a DataTable also with 3 columns, A, B,
and C.
When I assign the source (dataTable) to the dataGridView instance, my
dataGridView instance has its columns d... more >>
default access modifier
Posted by Tony at 2/29/2008 2:30:58 PM
Hello!
I want to check with you if the following default accessmodifier is correct.
* Class outer level = Internal
* Class that are nested = private
* field = private
* method = private
* delegate = internal
Is this correct?
Is it any more that I have forgotten?
//Tony
... more >>
Fast byte array compare for ordering purposes
Posted by Christopher Van Kirk at 2/29/2008 1:04:18 PM
Hi all,
I have a need to order a collection of byte arrays and I'm looking for
a smart way to improve the performance. One optimization that I am
aware of for comparing byte arrays for equality purposes is to convert
the array of bytes into an array of integers and compare each integer
one at... more >>
Last row in foreach loop
Posted by tshad at 2/29/2008 1:02:25 PM
Is there a way to know if you are looking at the last record record of
foreach loop other then setting up a loop counter that you manually
increment?
foreach (Racecar racecar in RaceCarCollection)
{
...
if last row do something?
}
You can tell how many items you have in the c... more >>
ComboBox Setting both DataSource and SelectedIndex
Posted by samueltilden@gmail.com at 2/29/2008 12:34:02 PM
This problem should be simple.
I am using Visual Studio 2003, Version 1.1
I am writing a desktop application in which I am binding a DataTable
to the DataSource of a ComboBox.
// I have 50 rows (concerning states) in dataTable.Rows;
ComboBox myComboBox = new ComboBox();
myComboBox.... more >>
oledb and dbase III files
Posted by Analizer1 at 2/29/2008 12:16:32 PM
hello, ive looked for decent OleDb Groups but have not found any....
Is there a Way to configure oledb jet.4.0 to
read long filenames
dbase III, dbase IV , etc
I changed the Registry key to 01 to accept long file names , that did not
work
in my class im Renaming the File to a short name ,... more >>
Auto-completion of interfaces in VS.NET 2005
Posted by Fredo at 2/29/2008 11:58:55 AM
In VS.NET 2003, if I have a class and have it implement an interface, when I
type the interface name, it gives me the option to press tab and it will
create a #region encapsulated area with all the interface methods,
properties, etc.
This doesn't appear to work for me in VS.NET 2005. The on... more >>
Re: How do I add/delete row into/from a DataGridView
Posted by Tony at 2/29/2008 11:50:52 AM
Hello!
I do some Test now on the DataGridView so we know how to add new rows and
remove rows from the DataGridView.
Now I have added a event handler for the button named button1_Click se
below. This works but it's not the way that we want to add new rows.
We want to add new rows just by wri... more >>
How do I add/delete row into/from a DataGridView
Posted by Tony at 2/29/2008 11:15:31 AM
Hello!
I have created a class named Person defined below. I have made this class
a DataSource by clicking and selecting (Data->Add New Data Source) from the
Data option in the meny.
So now in the area named Data Source on my screen I can see Person with its
field
Age, Name and Person_number... more >>
Lazy load of properties in DLinq
Posted by Andrus at 2/29/2008 10:23:48 AM
I tried query like
var list=Db.Customers.ToList();
and noticed that all properties are retrieved immediately.
Only few properties are actually used in each unit of work.
Also properties contain large amout of data (images, attachments, text
documentes).
Retireving all properties over ... more >>
generic class
Posted by Tony at 2/29/2008 8:47:44 AM
Hello!
I just come to think about one thing and that is
the statement below.
public class Tree<T> where T : IComparable<T>
This is a correct statement and it works as expected.
But now to my question when you use generic classes like this will you
always use the construction with where T :... more >>
Missing sqlceme35.dll
Posted by zacks@construction-imaging.com at 2/29/2008 8:29:37 AM
I am trying to write an application that pulls data out of a SQL
Server CE database file, an SDF file. It works just fin on my computer
(running XP Pro). But when a co-worker tries to run it on his XP Pro
computer, he gets an error that it is unable to load a DLL, namely
sqlceme35.dll.
I am w... more >>
Singleton - One Per Thread
Posted by jehugaleahsa@gmail.com at 2/29/2008 7:55:04 AM
Hello:
Is there an easy way for to create a Singleton so that for each thread
a new instance is created?
Threads share memory, so I'm not sure how to go about this one . . .
Thanks,
Travis... more >>
.net language
Posted by davi at 2/29/2008 7:54:20 AM
http://programming-languages-tutorials.blogspot.com... more >>
Problem with VS2008 Target Framework
Posted by zacks@construction-imaging.com at 2/29/2008 7:44:22 AM
I am working on an application in VS2008. I have set the target
framework to 2.0. I distributed the app to a coworker in MSI format.
When he tried to install it, he was told that he needed to install the
3.5 framework. I am wondering, when I created the project, I didn't
even notice the dropdown... more >>
Recursive Call
Posted by slg at 2/29/2008 6:36:58 AM
Gurus, I have a Winform which has a button. When the button click function
creates a thread.
I want the thread to call the button click again . I can have only one
instance of the
thread running at a time.
I want to automate testing of my function.
Any thoughts.
TIA
private void bt... more >>
calling base constructor
Posted by ryanbreakspear@norubbishgmail.com at 2/29/2008 5:56:11 AM
Hi,
Is it possible to call a different base constructor (or just different
parameters) in the body of a constructor in C#?
Something like:
public class test
{
public test(bool value)
{
if (value)
base("True Value")
else
base("False Value")
}
}
Sorry if... more >>
Michael Howard's Spot the security bug problem.
Posted by Mugunth at 2/29/2008 5:29:23 AM
Do anyone know the answer to this problem?
Int16 req;
....
while (true) {
getRequest();
req++;
arr[req] = DateTime.Now;
}
Can you spot this code flaw?
From this link...
http://msdn2.microsoft.com/en-us/library/ms972827.aspx
-
Mugunth... more >>
When inheriting from System.Web.UI.Page or UserControl, do I have to call their contructors?
Posted by DotNetNewbie at 2/29/2008 4:46:58 AM
Hi,
When inheriting from System.Web.UI.Page (or any other class for that
matter), do I have to call the inherited classes constructors?
I've seen allot of code where people do:
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
}
Is this necessary if we do... more >>
Inheritance from MembershipUser class
Posted by Ned White at 2/29/2008 3:28:38 AM
Hi All,
i can create new instance of MembershipUser class like that;
MembershipUser userA = Membership.GetUser("someusername");
But how can i build a class which is inherited from
System.Web.Security.MembershipUser class.
as follows ;
public class B2B_User : MembershipUser
{
publi... more >>
passing objects through multiple layers
Posted by Frank Munsberg at 2/29/2008 1:20:29 AM
Hey,
I guess you all agree that layering software is a good idea but I'm at
a point where I'm not entirely sure which route to go (read: stay wtf
free).
Imagine something like a three layered application with a database,
business logic and ui layer for simplicity.
Now if I got the principl... more >>
|