Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~5K People Reached
PC Specs
Windows 7
Favorite Tags
Member Avatar for moni94

Hi. I added a file called "sldata.txt" to my Silverlight solution (which I test in an ASP.NET site) in VS 2010. But when I try to access it using stream reader: StreamReader sr = new StreamReader("sldata.txt"); I get a SecurityException - File operation not permitted. Access to path 'chatdata.txt' is …

Member Avatar for jaspreetsingh12
0
717
Member Avatar for moni94

Hi. Let's say I have the following method: [CODE] void createNewObject() { MyClass myObject = new MyClass(); } [/CODE] If I call this method 1000 times, how many instances of MyClass will be left in my program's memory by the time all calls have been made? 1000, 1, or 0? …

Member Avatar for JamesCherrill
0
184
Member Avatar for moni94

I have the following code: [CODE] static void foo<T>(this List<T> list, T t) { ... } [/CODE] So in order to call the extension method I'll have to do this: [CODE] myList.foo<myType>(myVar); [/CODE] Is it possible to change my code so that I can call my method like this: [CODE] …

Member Avatar for Momerath
0
92
Member Avatar for moni94

Hello. How can I run a thread and get an event raised when it runs for a certain amount of time? For example: Let's say I have an encryption program. When the user presses encrypt the thread Encrypt starts. But when the thread Encrypt has been running for more than …

Member Avatar for moni94
0
110
Member Avatar for moni94

Hi. Let's say I have a method in a foreach statement, for example: [ICODE] foreach(string str in GetStrings()) ... [/ICODE] Does the method (GetStrings() in our example) get called once or once per iteration?

Member Avatar for Mitja Bonca
0
108
Member Avatar for moni94

Hi. I have this very weird problem. The function getOps in the code below always returns 0, although it should be returning the ops value which gets calculated correctly. [CODE] int ops; int getOps(int n, int m) { if(m == n) return ops; else if(m - 2 <= n) return …

Member Avatar for moni94
0
200
Member Avatar for moni94

Hi. I want to know what the naming conventions for .Net & WPF controls are. Microsoft doesn't have official guidlines on this and when I check different sources they all show different variations. Is this way OK: [CODE]Button FileOpenButton;[/CODE] Also regarding public instance fields. Is it wrong to name a …

Member Avatar for ddanbe
0
82
Member Avatar for moni94

Hi. What I want to do is to keep a control enabled (an to keep its event handlers also active), but to disable it's default action. For example, if I have a CheckBox, how do I prevent it from being checked when it's clicked, without having to disable it? (just …

Member Avatar for ddanbe
0
50
Member Avatar for moni94

Hi. Let's say I need to encrypt/decrypt 5 different files in my program (using AESManaged). Do I have to generate a new IV for each file and do I need to save the IV every time? If I always use the same IV will that reasonably lower the security of …

Member Avatar for crishjeny
0
67
Member Avatar for moni94

Hi. Let's say I need to encrypt/decrypt 5 different files in my program (using AESManaged). Do I have to generate a new IV for each file and do I need to save the IV every time? If I always use the same IV will that reasonably lower the security of …

Member Avatar for moni94
0
41
Member Avatar for mahdi68

Hi can any body tell me how can i send arabic sms with at-command in C# ? i try with this code but the message show incorrect on phone ! [CODE]serialPort1.BaseStream.Flush(); string cb = char.ConvertFromUtf32(26); System.Threading.Thread.Sleep(2000); this.serialPort1.Write("AT+CMGF=1\r"); this.serialPort1.Write("AT+CSCA=servicecenter\r\n");//Ufone Service Center this.serialPort1.Write("AT+CSCS=\"" + "HEX" + "\"\r\n"); this.serialPort1.Write("AT+CSMP=\"" + 1 + "," …

Member Avatar for Mitja Bonca
0
868
Member Avatar for moni94

Hi. I'm making a space game and I need the spaceship to shoot bullets. So in order to make this happen I need a collection which can allow the following: 1.Adding an object (so that we can shoot new bullets) 2.Looping through and modifying all the objects (so that we …

Member Avatar for Momerath
0
110
Member Avatar for moni94

Which of these encryption methods is more effective (secure) Vinegere or basic XOR encryption, if the key we use is the same size in both cases?

Member Avatar for TrustyTony
0
531
Member Avatar for moni94

Hi. I am programmer who works with c# and c++. These languages are really powerful but when it comes to controlling memory I can never do what I want to do. I want to know if there's a lower level languge (or a way to do this with c# or …

Member Avatar for Rashakil Fol
0
130
Member Avatar for moni94

Hi. I have this strange idea and I want to know if it's something. It's supposed to be a solution for hosting files/sites or running web services without a server (so that you don't have to use a costly server or have to keep your pc turned on all the …

Member Avatar for jwenting
0
110
Member Avatar for moni94

How can I make a stream appendable and readable at the same time? Because when I do this: [CODE]static FileStream fs = File.Open("keys.txt", FileMode.Append, FileAccess.ReadWrite, FileShare.None);[/CODE] I get the following error: "Append access can be requested only in write-only mode."

Member Avatar for finito
0
900
Member Avatar for jbrock31

Hi All, I am trying to help my family stop sucking at managing their available funds and have a "true" available amount so they are up to date at all times on their available funds. Is it possible to get the list of pending charges for any given user for …

Member Avatar for GAME
0
124
Member Avatar for moni94

Hi. I added a file called "sldata.txt" to my Silverlight solution (which I test in an ASP.NET site) in VS 2010. But when I try to access it using stream reader: StreamReader sr = new StreamReader("sldata.txt"); I get a SecurityException - File operation not permitted. Access to path 'chatdata.txt' is …

0
51
Member Avatar for moni94

Hi. I made a program for tcp chat but I'm really confused with which IP to use. I can send a message to myself by sending a message to a local IP such as 127.0.0.1 or 192.168.1.100. When I tried with my external IP (the one from whatsmyip.com) I get …

Member Avatar for Mattan360
0
109
Member Avatar for moni94

Hi. I made this program to capture the current screen in C#. In Visual Studio 2008, it worked perfectly, but now with VS 2010, I get the following exception: ExternalException - a generic error occured in GDI+ on the line where I save the bitmap: bmp.Save("screen.jpg"); I have looked everywhere …

Member Avatar for kvprajapati
0
109