Answer Questions
Virlene Cheng anonymous methods and serialization
I am developing a server-side framework in C# that handles rapidly changing data (i.e. > 50k updates per second) and I need to offer a .NET Remoting interface into which client apps can query, in real-time, state across hundreds of thousands of objects. I want to let the client-side app developer have as much freedom as possible to develop the query. From my basic understanding of C# 2.0, it seems like anonymous methods could possibly be ...Show All
20thCenturyBoy Strange prolem with Culture settings
Hi, We are writing the .net application that should always work in en-US culture, regardless of the control panel settings. I was able to force the GUI culture to be en-US by the following code Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-CA", true); Thread.CurrentThread.CurrentCulture = new CultureInfo("en-CA", true); After that the DateTimePicker components are always displayed in en-US cultu ...Show All
Cringing Dragon File Parsing
Hi, i have a text file that contains the following: AA12MAY2005M0khurram FYM1Texas FYM2Vegas Now i want to read this file like this: Start reading from the start: If an 'A' is read, read next character if there is another 'A' then save the position of the first 'A' From the position of the first 'A' save characters from position 3 to 4 as day save characters from location 5 to 8 as month save characters from location 9 to 12 as year save c ...Show All
cdznr Can't run an application from a service.
I don't know if i do something wrong or what. But i can't run an application from a service, tried to create a new process and then run it from there and that didn't work. If anyone knows what the problem seems to be, please contact me and tell me what i should do. Any help would be appreciated. //Mario Would you mind sharing the code that you use to attempt to run the application And possibly any error messag ...Show All
crock Mouse leave event, on child controls
I have a usercontrol with a label and a picturebox on it, on the usercontrol itself there is a mouseleave event which change the background color of the usercontrol. My question is, how do i either make the child controls react to this or ignore it - as it is now the mouseleave will be triggered when the mouse enters forinstance the label :-( Regards In the Load event of your usercontol you iterate over all co ...Show All
3rato Can't run an application from a service.
I don't know if i do something wrong or what. But i can't run an application from a service, tried to create a new process and then run it from there and that didn't work. If anyone knows what the problem seems to be, please contact me and tell me what i should do. Any help would be appreciated. //Mario Service applications in general do not interact with the desktop and therefor do not interact well with ...Show All
g-gallaway dataTableReader object in C#
I am working on an app that needs to gather information from a database. Instead of displaying the information in a table it must stay hidden therefore I am using the dataTableReader object to gather information out of the datatable object. I have been having a little trouble using the table reader. My main problem is that I am using a while(tableReader.Read()) loop but the table reader never returns a false value. When it gets to the end of th ...Show All
threebit Enumerator or foreach - which one is better
I have a List<int> that say, has 10000 items in it. It is faster to get the enumerator object or do a foreach on it Thanks Ralph I Guest that the fast way is to use a normal for to iterate the List List < int > list = new List < int >(); // Here we add the items to the list int length = list.Count; for ( int i = 0; i < length; i++) { //Do you code for the ...Show All
iemad new browser in C#
Hi, I just started learning how to use Visual C# and I am having trouble creating a new web browser from a button. I currently have a button that I want to click to open a new web browser window, which will go to my homepage. I can't find anything on how to open a new window. The closest I have is webBrowser.NewWindow, but it doesn't seem to do anything. Any help is appreciated. Thanks edit: wait wait, there's more! I also have a combobox and I ...Show All
quangphuong Atomic operations
Hi, I need to know if, in a multithread scenario, it is safe to change the value of a primitive variable (int or object reference, for instance) while another thread is reading it. What I need to avoid is that the reading thread fetch a partially written version of the primitive variable. Thanks in advance, Guglielmo In my experience you can get away with it most of the time. But to be on ...Show All
Magknip How can I show the remaining chars in a limited textbox ?
Hi I wrote a simple Messaging application. I write the message to send into a textbox which I limited to 160 chars. Now I want a textlabel below the messagebox which shows me the remaining chars So for example I've written 50 letters into the textbox, the textlabel should show 110. Whats the best solution to solve this Many thanks zipfeli in the textbox text change event int i=160-textBox1.Text.Lent ...Show All
Tejas_Kishanwala Calculating direction from 1 point in a 3d space to another
I am looking for a way to calculate the direction from one point in a 3d space (xyz) to another point, so I can use that data in Mesh.Intersect(Vector3 rayPos, Vector3 rayDir). The direction parameters are in radians. Yep, it's like that for for that command, but I also need those calculations anyway for Matrix.RotationYawPitchRoll(float yaw, float pitch, float roll) First, fix the bug in your code. ;) (You're miss ...Show All
Ryan Rahlf How to Play a video (eg: .mwv) file on Pocket PC ?
Hi, I would like to play video files on the Pocket PC. How to do this Any ideas/code snippets plz Thanks, ramakrishna. Hi Swamy ...!!! Its really Great...!!! Its absolutely working fine for my expectations for PC. But i'm using the Windows CE.Net. So the function ( mciSendString ) which you 've used in the winmm.dll is not supported in the Pocket PC. So plz find me an alternative or give me a way ...Show All
agbeko class library obfuscation problem
hi, after i obfuscated a class library that i have written, i found when i tried to use it, that the classes and its members doesn't exist. i added the obfuscated dll file to my refrences, then typed "using MyClassLibrary" , but VS 2005 doesn't feel it at all, MyClassLibrary doesn't appear in the drop down list that drops while typing in VS 2005, even when i try to write it manualy and press the . "dot" , no drop down l ...Show All
fastdev Windows Start Button
How can mimik the windows start button without component please thank you Fahd Could you be more specific What features of the Windows Start button do you want to mimick looks great! how can I keep the button held thank you guys for your help!! In .NET 2.0 its called ContextMenuStrip and in .NET 1.1 its called ContextMenu. Basically just drag & drop a ...Show All
