Click here to Skip to main content
15,891,529 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to retrieve local settings Pin
Stevo Z27-Jul-07 1:22
Stevo Z27-Jul-07 1:22 
QuestionDatagrid row selection Pin
Nisar Inamdar27-Jul-07 0:53
Nisar Inamdar27-Jul-07 0:53 
QuestionDataGridViewCell Pin
sangramkp27-Jul-07 0:36
sangramkp27-Jul-07 0:36 
AnswerRe: DataGridViewCell Pin
Chetan Patel27-Jul-07 1:07
Chetan Patel27-Jul-07 1:07 
QuestionHow to prioritize the UI thread as a process (.exe) eats up the resources Pin
Rafferty Uy27-Jul-07 0:26
Rafferty Uy27-Jul-07 0:26 
AnswerRe: How to prioritize the UI thread as a process (.exe) eats up the resources Pin
Martin#27-Jul-07 0:36
Martin#27-Jul-07 0:36 
AnswerRe: How to prioritize the UI thread as a process (.exe) eats up the resources Pin
Mike Dimmick27-Jul-07 2:22
Mike Dimmick27-Jul-07 2:22 
QuestionHow to convert Struct to array Pin
kobi10i1027-Jul-07 0:13
kobi10i1027-Jul-07 0:13 
Hi ,

How can I convert struct like this to array byte

public struct Message
{
public byte id;
public int value1;
public int value2;
public byte chkSum;
}


Not in this way :

public void converter()
{
Message message;
message.id = 1;
message.value1 = int.MaxValue ;
message.value2 = int.MaxValue ;
message.chkSum = (byte)(message.id +
message.value1 +
message.value2) ;

byte [] dataToSend = new byte [10];
dataToSend[0] = message.id ;
byte [] dataToInsert = BitConverter.GetBytes (message.value1 );
Array.Copy(dataToInsert, 0, dataToSend, 1, dataToInsert.Length);
dataToInsert = BitConverter.GetBytes(message.value1);
Array.Copy(dataToInsert, 0, dataToSend, 5, dataToInsert.Length);
dataToSend[9] = message.chkSum ;
}

thank you

AnswerRe: How to convert Struct to array Pin
Christian Graus27-Jul-07 0:28
protectorChristian Graus27-Jul-07 0:28 
AnswerRe: How to convert Struct to array Pin
Guffa27-Jul-07 2:36
Guffa27-Jul-07 2:36 
AnswerRe: How to convert Struct to array Pin
leppie27-Jul-07 3:16
leppie27-Jul-07 3:16 
AnswerRe: How to convert Struct to array Pin
CiNN27-Jul-07 5:39
CiNN27-Jul-07 5:39 
QuestionHow to give attechment with mailto in c# Pin
Dhaval Bhattji26-Jul-07 23:58
Dhaval Bhattji26-Jul-07 23:58 
AnswerRe: How to give attechment with mailto in c# Pin
Christian Graus27-Jul-07 0:30
protectorChristian Graus27-Jul-07 0:30 
QuestionProblem in Deployment of Excel Data Reading WebPart developed in C# Pin
khan SharePoint Developer26-Jul-07 23:45
khan SharePoint Developer26-Jul-07 23:45 
QuestionDiscover a Device in C# Pin
Amjath Rahman26-Jul-07 23:43
Amjath Rahman26-Jul-07 23:43 
AnswerRe: Discover a Device in C# Pin
Martin#26-Jul-07 23:54
Martin#26-Jul-07 23:54 
GeneralRe: Discover a Device in C# Pin
Amjath Rahman29-Jul-07 14:51
Amjath Rahman29-Jul-07 14:51 
Questionprinting a complete datagrid having paging and sorting Pin
samparadise26-Jul-07 23:36
samparadise26-Jul-07 23:36 
Questiondatagrid save Pin
csharpgal26-Jul-07 23:16
csharpgal26-Jul-07 23:16 
AnswerRe: datagrid save Pin
Christian Graus27-Jul-07 0:26
protectorChristian Graus27-Jul-07 0:26 
QuestionRe: datagrid save Pin
csharpgal27-Jul-07 1:41
csharpgal27-Jul-07 1:41 
QuestionControl inside listbox C# .Net Pin
drweb8626-Jul-07 22:53
drweb8626-Jul-07 22:53 
AnswerRe: Control inside listbox C# .Net Pin
Christian Graus26-Jul-07 23:08
protectorChristian Graus26-Jul-07 23:08 
GeneralRe: Control inside listbox C# .Net Pin
drweb8626-Jul-07 23:32
drweb8626-Jul-07 23:32 

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.