Click here to Skip to main content
15,889,462 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to send email programmatically... Pin
jas0n231-Nov-08 12:06
jas0n231-Nov-08 12:06 
QuestionComPort Library Pin
DotNetCoderJunior29-Oct-08 21:08
DotNetCoderJunior29-Oct-08 21:08 
AnswerRe: ComPort Library Pin
Mbah Dhaim29-Oct-08 22:08
Mbah Dhaim29-Oct-08 22:08 
GeneralRe: ComPort Library Pin
DotNetCoderJunior29-Oct-08 22:15
DotNetCoderJunior29-Oct-08 22:15 
GeneralRe: ComPort Library Pin
Mbah Dhaim29-Oct-08 22:35
Mbah Dhaim29-Oct-08 22:35 
GeneralRe: ComPort Library Pin
DotNetCoderJunior29-Oct-08 22:49
DotNetCoderJunior29-Oct-08 22:49 
GeneralRe: ComPort Library Pin
Mbah Dhaim29-Oct-08 22:53
Mbah Dhaim29-Oct-08 22:53 
QuestionListview Column Sorting Pin
vishnukamath29-Oct-08 20:49
vishnukamath29-Oct-08 20:49 
hi,
i want to sort my windows application list view control,with out usin IComparer Class.Itried this below way.
private void Form1_Load(object sender, EventArgs e)
{
var y = from x in dcontext.CONFIG_CITies
orderby x.str_city descending
where x.bool_active == true
select new { Code = x.int_cityID, CityName = x.str_city };
int i = 0;
foreach (var lst in y)
{
listView1.Items.Add(lst.Code.ToString());
listView1.Items[i].SubItems.Add(lst.CityName);
i++;
}
int j=0;
arr = new string[y.Count()];

foreach (var asd in y)
{
arr[j] = asd.CityName+","+asd.Code;
j++;
}

}

private void listView1_ColumnClick(object sender, ColumnClickEventArgs e)
{
listView1.Columns[1].ListView.Sorting = SortOrder.Descending;
if (listView1.Columns[1].ListView.Sorting == SortOrder.Descending)
{
listView1.Items.Clear();
string[] y;
Array.Sort(arr);
string x;
int j = 0;

for (int i = 0; i < arr.Count(); i++)
{
x = arr.ElementAt(i);
y = x.Split(',');
listView1.Items.Add(y[0]);
listView1.Items[j].SubItems.Add(y[1]);
j++;
}

}
}
but it is also not working .Please help me.
AnswerRe: Listview Column Sorting Pin
AhsanS29-Oct-08 23:29
AhsanS29-Oct-08 23:29 
GeneralRe: Listview Column Sorting Pin
vishnukamath30-Oct-08 1:04
vishnukamath30-Oct-08 1:04 
GeneralRe: Listview Column Sorting Pin
Simon P Stevens30-Oct-08 2:28
Simon P Stevens30-Oct-08 2:28 
QuestionHow to create subfolder by FtpWebRequest in .net2.0? Pin
mimimimilaw29-Oct-08 20:49
mimimimilaw29-Oct-08 20:49 
AnswerRe: How to create subfolder by FtpWebRequest in .net2.0? Pin
leppie30-Oct-08 0:41
leppie30-Oct-08 0:41 
QuestionCombobox binded in a datagrid view Pin
DJ24529-Oct-08 20:29
DJ24529-Oct-08 20:29 
QuestionReplacing the text in word document with the help of Programing in C# for web application Pin
anithagaraga29-Oct-08 19:39
anithagaraga29-Oct-08 19:39 
AnswerRe: Replacing the text in word document with the help of Programing in C# for web application Pin
Sathesh Sakthivel29-Oct-08 19:56
Sathesh Sakthivel29-Oct-08 19:56 
QuestionProblem loading with dll Pin
asugix29-Oct-08 19:37
asugix29-Oct-08 19:37 
AnswerRe: Problem loading with dll Pin
leppie30-Oct-08 0:45
leppie30-Oct-08 0:45 
GeneralRe: Problem loading with dll Pin
asugix30-Oct-08 1:35
asugix30-Oct-08 1:35 
QuestionHow to pass a value in SelectNodes(string.Format)? Pin
anette_ashley29-Oct-08 18:34
anette_ashley29-Oct-08 18:34 
AnswerRe: How to pass a value in SelectNodes(string.Format)? Pin
N a v a n e e t h29-Oct-08 18:37
N a v a n e e t h29-Oct-08 18:37 
GeneralRe: How to pass a value in SelectNodes(string.Format)? Pin
anette_ashley29-Oct-08 18:46
anette_ashley29-Oct-08 18:46 
QuestionHow can I get list of all machine on LAN Pin
FishiFishi29-Oct-08 18:14
FishiFishi29-Oct-08 18:14 
AnswerRe: How can I get list of all machine on LAN Pin
N a v a n e e t h29-Oct-08 18:18
N a v a n e e t h29-Oct-08 18:18 
Questionbase method Pin
George_George29-Oct-08 15:42
George_George29-Oct-08 15:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.