|
Actually List<t> does copy all its elements when it needs to grow.
Go to System.Collections.Generic.List<t>.set_Capacity(int value) in for example Red Gate's .NET Reflector..
|
|
|
|
|
Right. I keep forgetting that. Back to the home-made linked lists then.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
modified on Sunday, June 12, 2011 9:13 AM
|
|
|
|
|
i am developing a windows mobile C# application, how to save application settings? The user should be able to update these settings, but the settings want to be retrieved next time application starts. Do i need to use registry key? or xml config? any other good way to achevie this??
|
|
|
|
|
Try and save the data to a path such as:
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
You can serialize your data in xml/binary format.
I prefer not to write to the registry, that is dirty.
Natza Mitzi
|
|
|
|
|
i will be gratefull, if u can giv me some sample codes to refer to...
|
|
|
|
|
|
Dear All, I am looking to change the date format of my computer same as changing it from control panel using c#.
any info please?
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
http://msdn.microsoft.com/en-us/library/zdtaw1bw.aspx[^]
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
the article does not change the date setting as control panel.the article only changes date format to string in run time. what i want is to change the date format as i am changing from control panel.
this means i want to change computer date format from c# application and it should affect control panel too.
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
There is 2 ways to change your system date time in .Net
1st by changing the culture of the running thread
CultureInfo culture = (CultureInfo)CultureInfo.CurrentCulture.Clone();
culture.DateTimeFormat.ShortDatePattern = "dd-MMM-yyyy";
culture.DateTimeFormat.LongTimePattern = "";
Thread.CurrentThread.CurrentCulture = culture;
2nd change the computer format
Structure SYSTEMTIME
Public wYear As Short
Public wMonth As Short
Public wDayOfWeek As Short
Public wDay As Short
Public wHour As Short
Public wMinute As Short
Public wSecond As Short
Public wMilliseconds As Short
End Structure
‘’’import the user32.dll (import the System.Runtime.InteropServices namespace):
'<DllImport("kernel32.dll", setLastError:=True)>
public shared function SetSystemTime(byref theDateTime as SYSTEMTIME) as Boolean
End Function
Dim newDateTime as SystemTime()newDateTime.wDay = valueHereif SetSystemTime(newDateTme) then 'cool, we set it successfullyend if
modified on Wednesday, November 18, 2009 5:32 AM
|
|
|
|
|
HI,
I have customer class. i want to create the wrapper class fot this?
how to create wrapmper class for the customer?
What is wrapper class?
|
|
|
|
|
|
Why would you want to add something, if you don't even know what the thing you want to add, actually is ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi guys,
I am trying to make my setup project which is installing my program, install also the db schema I am using. I am using these technologies; vs2008 (c#) and sql server 2005.
I have already built a setup project and is installing the project, but without the db schema. Anyone can help me how to accomplish this please?
Thanks
dejmjin
|
|
|
|
|
You have to add a custom action to your installer.
Have a look here[^].
Calin
|
|
|
|
|
Thanks Calin...I will try this solutions. Seems good for my problem
Thanks again!
|
|
|
|
|
Hello,
I convert a pdf file to picture using Imagemagick and ghostscript,but the quality was blur, please help me to resolve this grat problem, thank you verry mutch.
|
|
|
|
|
well, better ask this in their forum...
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
hi all
I have a BHO program which tracks visitors on websites
what is the best way to collect the data and send it to my database ? (cookies, AJAX, XML, other )
|
|
|
|
|
The question you have asked is a never ending argument of which is the best analytics solutions. Cookies, server logs, your own custom mechanism etc. etc. You need to do the research on what exactly best suites your need among the techniques. I use Google analytics. Someone could counter argue about its approach, but the fact is, it suits my needs. Hope I made sense.
(I have replied to your post because you seem to be posting this question every now and then)
|
|
|
|
|
Hello!
Do you know if it's possible to add to our solution ('solution explorer') whole directory with subdirectories that include necessary classes?
|
|
|
|
|
You can add folders(and subfolders) to the Solution and also to the Project node. You should group your classes in the Project folder(sub folders)instead of the Solutions folder. Adding classes to the solution node won't make sense, as it would not be part of any assembly. I use the solutions folders to seperate out my code and test projects.
To add a folder, just right click on the node (Solution or Project) and in the "Add" menu there should be a New folder option.
|
|
|
|
|
Dear All,
i am using these three controls.
1- List Box
2- List View
3- Checked List
i want to show two columns like name column and id column which control is best and which property i must change to get result.
and when i do bind these three controls then their is errors. Please tell me which control is best for my task and how these will bind with dataset.
Thanks
|
|
|
|
|
I would go with datagridview. You can set its datasource as the table having these two columns.
Time is the best teacher; unfortunately it kills all of its students.
जय हिंद
|
|
|
|
|
I am Fraulin doing my B.E (computer science)final year.. right now im doing "dental biometrics" project. If any1 can help me out in developing this project i will be very thankfull...
DETAILS:
1) comparison of antemortem and postmortem DENTAL radiograph
2) IMAGE SEGMENTATION
3) TEETH EXTRACTION
4) SCORING VALUE BASED ON PERFECT MATCH
ABSTRACT:
The goal: identify people based on their dental records, mainly as radiograph images.
Given a dental record usually as a postmortem (PM) radiograph we need to search the database of ante mortem (AM) radiographs to determine the identity of the person associated with the PM image.
We use a semi-automatic method to extract shapes of the teeth from the AM and PM radiographs and find the affine transform that best fits the shapes in the PM image to those in the AM images.
A ranking of matching scores is generated based on the distance between the AM and PM tooth shapes.
Initial experimental results on a small database of radiographs indicate that matching dental images based on tooth shapes and their relative positions is a feasible method for human identification
|
|
|
|