Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to block website in Networkplace Pin
EliottA28-Oct-09 3:09
EliottA28-Oct-09 3:09 
GeneralRe: how to block website in Networkplace Pin
musefan28-Oct-09 3:50
musefan28-Oct-09 3:50 
QuestionDisplaying data records from database using any data presentation contol. Pin
santosh04228-Oct-09 0:36
santosh04228-Oct-09 0:36 
QuestionCannot upload chinese named file into Ftp server. Pin
Richard Htin27-Oct-09 23:51
Richard Htin27-Oct-09 23:51 
AnswerMessage Closed Pin
28-Oct-09 0:15
stancrm28-Oct-09 0:15 
AnswerRe: Cannot upload chinese named file into Ftp server. Pin
Richard Htin28-Oct-09 0:29
Richard Htin28-Oct-09 0:29 
QuestionHow to create something like unions in C#? Pin
CelestialCoder27-Oct-09 23:40
CelestialCoder27-Oct-09 23:40 
AnswerRe: How to create something like unions in C#? Pin
Christian Graus27-Oct-09 23:48
protectorChristian Graus27-Oct-09 23:48 
You can create a struct in C# and specify how much space each variable takes up. I forget the syntax, but I know you can.

Just found this with google:


using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Explicit)]
struct ByteArray {
[FieldOffset(0)]
public byte Byte1;
[FieldOffset(1)]
public byte Byte2;
[FieldOffset(2)]
public byte Byte3;
[FieldOffset(3)]
public byte Byte4;
[FieldOffset(4)]
public byte Byte5;
[FieldOffset(5)]
public byte Byte6;
[FieldOffset(6)]
public byte Byte7;
[FieldOffset(7)]
public byte Byte8;
[FieldOffset(0)]
public int Int1;
[FieldOffset(4)]
public int Int2;
}

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.

Questiontimers in windows service Pin
Chesnokov Yuriy27-Oct-09 23:26
professionalChesnokov Yuriy27-Oct-09 23:26 
AnswerRe: timers in windows service Pin
Covean27-Oct-09 23:38
Covean27-Oct-09 23:38 
AnswerRe: timers in windows service Pin
Chesnokov Yuriy27-Oct-09 23:49
professionalChesnokov Yuriy27-Oct-09 23:49 
GeneralRe: timers in windows service Pin
Sunil G 328-Oct-09 0:45
Sunil G 328-Oct-09 0:45 
AnswerRe: timers in windows service Pin
PIEBALDconsult28-Oct-09 11:39
mvePIEBALDconsult28-Oct-09 11:39 
Questionaccess outlook application Pin
nirmalsat27-Oct-09 23:18
nirmalsat27-Oct-09 23:18 
AnswerRe: access outlook application Pin
Christian Graus27-Oct-09 23:20
protectorChristian Graus27-Oct-09 23:20 
Questionhow to make a row bold in Excel using C# Pin
Bharti Vermani27-Oct-09 23:04
Bharti Vermani27-Oct-09 23:04 
AnswerRe: how to make a row bold in Excel using C# Pin
Christian Graus27-Oct-09 23:08
protectorChristian Graus27-Oct-09 23:08 
AnswerRe: how to make a row bold in Excel using C# Pin
Bharti Vermani27-Oct-09 23:20
Bharti Vermani27-Oct-09 23:20 
QuestionFormat string for fixed length real value in scientific representation? Pin
Mats Eurén27-Oct-09 22:42
Mats Eurén27-Oct-09 22:42 
AnswerRe: Format string for fixed length real value in scientific representation? Pin
Christian Graus27-Oct-09 23:03
protectorChristian Graus27-Oct-09 23:03 
GeneralRe: Format string for fixed length real value in scientific representation? Pin
Mats Eurén27-Oct-09 23:11
Mats Eurén27-Oct-09 23:11 
QuestionDeploying C# projects into single exe file Pin
hosseinghazanfary27-Oct-09 22:09
hosseinghazanfary27-Oct-09 22:09 
AnswerRe: Deploying C# projects into single exe file Pin
Christian Graus27-Oct-09 22:20
protectorChristian Graus27-Oct-09 22:20 
AnswerRe: Deploying C# projects into single exe file Pin
Calla27-Oct-09 22:28
Calla27-Oct-09 22:28 
AnswerRe: Deploying C# projects into single exe file Pin
vtchris-peterson28-Oct-09 5:39
vtchris-peterson28-Oct-09 5:39 

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.