- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
- Interests
- Surfing, Programming
17 Posted Topics
Re: I'm not an accountant myself, although I'm a programmer and both my parents are accountants, my father owning his own firm. I am yet to code any software that is related to any accounting processes but in the past me and dad have both spoken about ideas for software that … | |
I've been working on compression and decompression between Java and C#, using deflate and inflate. Everything else I tried produced varying results which were never able to be compressed/decompressed flawlessly between Java and C#. I tested out using DeflateStream (C#) to compress data, and InflaterInputStream (Java) to decompress the data, … | |
Re: To get the current time in formats you want, just use the following: [CODE] DateTime timeRightNow = DateTime.Now; string format1 = timeRightNow.ToString("dd/MM/yy"); string format2 = timeRightNow.ToString("MM/dd/yy"); Console.WriteLine(format1); Console.WriteLine(format2); [/CODE] The output will be this: [CODE] 01/11/10 11/11/10 [/CODE] Note: this is based on your local date being 1st November, 2010. | |
Re: No question is a stupid question ;] I think what you want to try is: [CODE] ... public void siblingIcon_Click(object sender, EventArgs e) { Form1 sibling = new Form1(); sibling.Show(); } [/CODE] Let me know how that goes. | |
Re: Check out these links: [URL="http://www.johnkoerner.com/index.php?/archives/43-Creating-a-Plugin-Architecture-in-C.html"]http://www.johnkoerner.com/index.php?/archives/43-Creating-a-Plugin-Architecture-in-C.html[/URL] [URL="http://www.scratchprojects.com/2006/03/building_a_plugin_architecture_p01.php"]http://www.scratchprojects.com/2006/03/building_a_plugin_architecture_p01.php[/URL] [URL="http://www.codeproject.com/KB/cs/pluginsincsharp.aspx"]http://www.codeproject.com/KB/cs/pluginsincsharp.aspx[/URL] [URL="http://www.codeproject.com/KB/cs/ExtensionManagerLibrary.aspx"]http://www.codeproject.com/KB/cs/ExtensionManagerLibrary.aspx[/URL] [URL="http://www.c-sharpcorner.com/uploadfile/rmcochran/plug_in_architecture09092007111353am/plug_in_architecture.aspx"]http://www.c-sharpcorner.com/uploadfile/rmcochran/plug_in_architecture09092007111353am/plug_in_architecture.aspx[/URL] | |
I'm currently working on a project, where my client is requesting to have an Alexa Toolbar-like feature, kind of like mimicking the features that the Alexa Toolbar has when running on firefox/internet explorer/chrome. So far, the only successful way to implement this has been installing Google Chrome Portable along with … | |
Re: Generally you could just do: [CODE] List<object> anything = new List<object>(); [/CODE] The issue is you'd need to know what the values are, so that you could cast them as specific types when you need to: [CODE] string name = (string)anything[0]; [/CODE] Hope that helps. | |
Re: Oracle should accept you using: [CODE] string mysql = "select 'cusip', 'price structure' from tableA"; [/CODE] | |
Re: When I was at the Hello World stage of coding C# I had no idea of how to create a class for each object, so just in case you struggle wiht the concept that agrothe has talked about above, I've written you a basic layout for the class you could … | |
Re: All the help I can offer is that C# is powerful for network communication, threading and easy to use graphical user interfaces all together, but more than anything I'd just like to wish you luck, sounds like a great idea! Best of luck. | |
Re: You can set the variable for passing it into the first method, then use the ref keyword in the parameter field of the method to reference the parameter as the original variable, rather than creating a new copy. Here's an example: [CODE] string hh = "Bob"; Hello(hh); string x = … | |
Re: I don't quite understand what you're saying, but if you want to make the program wait a few seconds, use the Thread.Sleep method: [CODE] System.Threading.Thread.Sleep(5000); // waits 5 seconds [/CODE] | |
Re: You can get a list of files in a directory by using the function Directory.GetFiles(); Here is an example that reads all the data from each file and stores it in the variable 'data'. [CODE] string directory = @"C:\"; foreach (string file in Directory.GetFiles(directory)) { string data = ""; using … | |
Re: Please place your code inside code brackets so we can read the code properly. The best way to do what you're trying to do is with a 'using' statement: [CODE] public class SterlingDebug : ResponseTemplate { private StreamWriter writer; private int i = 0; public override void GotTick(Tick tick) { … | |
Re: Here is a tutorial that I found helpfull for creating a custom button a while back. [URL="http://ondotnet.com/pub/a/dotnet/2002/03/18/customcontrols.html"]http://ondotnet.com/pub/a/dotnet/2002/03/18/customcontrols.html[/URL] | |
Re: To automate it, you could create a new file at a specified location, then write the converted data to the new file. [CODE] if (!File.Exists(@"C:\convertedFile.mp3")) { File.Create(@"C:\convertedFile.mp3"); } else { // File already exists, you have the option to delete this file and create the new converted file. (Uncomment next … | |
Re: To enable right clicking on a Windows Form Control, you need to create a ContextMenuStrip then set that menu as the controls specific context menu. Here's some quick pictures to help out: [URL="http://tinypic.com/r/10cp9cm/7"]ConextMenuStrip in toolbar - http://tinypic.com/r/10cp9cm/7[/URL] [URL="http://tinypic.com/r/6xz3w6/7"]Setting the context menu in the listboxes properties area - http://tinypic.com/r/6xz3w6/7[/URL] |
The End.