Click here to Skip to main content
15,890,973 members
Home / Discussions / C#
   

C#

 
AnswerRe: convert any string to 24 hexadecimal digits Pin
Richard MacCutchan16-Dec-14 8:59
mveRichard MacCutchan16-Dec-14 8:59 
AnswerRe: convert any string to 24 hexadecimal digits Pin
Kornfeld Eliyahu Peter16-Dec-14 9:55
professionalKornfeld Eliyahu Peter16-Dec-14 9:55 
GeneralRe: convert any string to 24 hexadecimal digits Pin
PIEBALDconsult16-Dec-14 10:21
mvePIEBALDconsult16-Dec-14 10:21 
GeneralRe: convert any string to 24 hexadecimal digits Pin
Jassim Rahma16-Dec-14 10:45
Jassim Rahma16-Dec-14 10:45 
GeneralRe: convert any string to 24 hexadecimal digits Pin
PIEBALDconsult16-Dec-14 11:20
mvePIEBALDconsult16-Dec-14 11:20 
Questionremove handwriting from pdf (not in list of objects) Pin
Ali Hakak16-Dec-14 5:02
Ali Hakak16-Dec-14 5:02 
AnswerRe: remove handwriting from pdf (not in list of objects) Pin
Dave Kreskowiak16-Dec-14 6:00
mveDave Kreskowiak16-Dec-14 6:00 
QuestionMake the routing network safe Pin
Member 1101334015-Dec-14 9:44
Member 1101334015-Dec-14 9:44 
The following Function gets called by a program running on several station in a workgroup. The file resides on a shared resources. I need to make this routine network safe so only one station can read and write the file at a time. The other stations should just wait until the file is not in use. I assume I must attempt open the file for read write access and lock other users out of the file. Not sure how this is done in C#

C#
/// <summary>
   /// Gets the Next COUNTER
   /// </summary>
   private static string GetNextCounter(string destpath, string address, int port, String XMLString)
   {
       if (Directory.Exists(destpath + "\\" + address.Replace(".", "-")))
       {
       }
       else
       {
           string registerRepsonse = register(destpath, address, port, XMLString);
       };
       string nextCounter = File.ReadAllText(destpath + "\\" + address.Replace(".", "-") + "\\Counter.xml");
       int nextCounterInt = Convert.ToInt32(nextCounter);
       nextCounterInt = nextCounterInt + 1;
       File.WriteAllText(destpath + "\\" + address.Replace(".", "-") + "\\Counter.xml", nextCounterInt.ToString());
       return nextCounterInt.ToString();

   }

AnswerRe: Make the routing network safe Pin
Eddy Vluggen16-Dec-14 0:28
professionalEddy Vluggen16-Dec-14 0:28 
Questiontool.Strip1.Visible = false and toolStrip2.Visible = false? Pin
Member 1041097215-Dec-14 0:34
Member 1041097215-Dec-14 0:34 
AnswerRe: tool.Strip1.Visible = false and toolStrip2.Visible = false? Pin
OriginalGriff15-Dec-14 1:02
mveOriginalGriff15-Dec-14 1:02 
AnswerRe: tool.Strip1.Visible = false and toolStrip2.Visible = false? Pin
Simon_Whale15-Dec-14 1:02
Simon_Whale15-Dec-14 1:02 
AnswerRe: tool.Strip1.Visible = false and toolStrip2.Visible = false? Pin
Eddy Vluggen15-Dec-14 3:02
professionalEddy Vluggen15-Dec-14 3:02 
GeneralRe: tool.Strip1.Visible = false and toolStrip2.Visible = false? Pin
Member 1041097215-Dec-14 5:35
Member 1041097215-Dec-14 5:35 
AnswerRe: tool.Strip1.Visible = false and toolStrip2.Visible = false? Pin
BillWoodruff15-Dec-14 3:15
professionalBillWoodruff15-Dec-14 3:15 
GeneralRe: tool.Strip1.Visible = false and toolStrip2.Visible = false? Pin
Member 1041097215-Dec-14 5:43
Member 1041097215-Dec-14 5:43 
QuestionHow to store GPS Device data in the SQL data base Pin
heyvid14-Dec-14 18:05
heyvid14-Dec-14 18:05 
AnswerRe: How to store GPS Device data in the SQL data base Pin
syed shanu14-Dec-14 20:50
professionalsyed shanu14-Dec-14 20:50 
AnswerRe: How to store GPS Device data in the SQL data base Pin
Eddy Vluggen14-Dec-14 22:32
professionalEddy Vluggen14-Dec-14 22:32 
GeneralMind Your Language Pin
heyvid15-Dec-14 1:56
heyvid15-Dec-14 1:56 
GeneralRe: Mind Your Language Pin
Eddy Vluggen15-Dec-14 3:00
professionalEddy Vluggen15-Dec-14 3:00 
AnswerRe: How to store GPS Device data in the SQL data base Pin
Simon_Whale14-Dec-14 23:46
Simon_Whale14-Dec-14 23:46 
QuestionMessage Removed Pin
14-Dec-14 5:38
owais201214-Dec-14 5:38 
QuestionGet the Processor / Bios MAC using C# Pin
Jassim Rahma14-Dec-14 4:21
Jassim Rahma14-Dec-14 4:21 
AnswerRe: Get the Processor / Bios MAC using C# Pin
OriginalGriff14-Dec-14 4:32
mveOriginalGriff14-Dec-14 4: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.