101 Posted Topics
Hi everyone, I was wondering if daniweb had the intention of, or have even thought about- creating a subforum for Silverlight / WPF development. As a growing and popular technology(ies) I would think it would be a good idea to include these. I am constantly looking to daniweb for help … | |
Re: Serkan you can't leave :( I need the combination of you, scott, dan, ramy, adatapost, and double to answer the wide range of questions I throw out. Who's going to help me out when it comes time to set up a custom installer? Anyways, I wish you the best. l8r | |
Re: [URL="http://lmgtfy.com/?q=Mounting+an+ISO+in+C%23"]http://lmgtfy.com/?q=Mounting+an+ISO+in+C%23[/URL] | |
Re: For password encryption you can use SHA-1. It's actually hashing not encryption, but I think for your purposes it would work fine... [code=c#] public static string EncryptSHA1(string text, Encoding enc) { byte[] buffer = enc.GetBytes(text); SHA1CryptoServiceProvider cryptoTransformSHA1 = new SHA1CryptoServiceProvider(); string hash = BitConverter.ToString( cryptoTransformSHA1.ComputeHash(buffer)).Replace("-", ""); return hash; } [/code] | |
Re: [url]http://www.daniweb.com/forums/thread106408.html[/url] | |
Re: EDIT: Damn, I just realized what was in the title... 'WPF'... lol sorry | |
Re: [URL="http://msdn.microsoft.com/en-us/library/aa325113%28VS.71%29.aspx"]http://msdn.microsoft.com/en-us/library/aa325113%28VS.71%29.aspx[/URL] But you could do something like this... [code=c#] double value = 1.25; string str = Convert.ToString(value); DateTime dt = Convert.ToDateTime(str); textBox1.Text = dt.ToString(); [/code] And make a method to format the string so it displays just the time | |
Re: Hmm, sounds like it has something to do with file / folder permissions. | |
Re: You compare it the exact same way you stored it into the text file with stream writer. Use stream reader to read the contents of the file and compare or compare selected indexes before they are written. | |
Re: Then use the same code; just add in more textboxes. [code=c#] if (string.IsNullOrEmpty(textBox2.Text) || (textBox2.Text.Length < 7)) { errorProvider2.SetError(textBox2, "You must enter at least 7 characters"); hasErrors = true; } [/code] etc... | |
[size=5][b]1.- WTF![/b][/size] The most repeated sentence in code reviews… [img]http://www.makinggoodsoftware.com/wp-content/uploads/2009/09/wtfm.jpg[/img] [size=5][b]2.- It works in my machine![/b][/size] We all have used this one when blamed for some error… [size=5][b]3.- D’oh![/b][/size] - Hi Homer, have you removed the debug code from production? [img]http://www.makinggoodsoftware.com/wp-content/uploads/2009/07/homer-simpson-doh.jpg[/img] [size=5][b]4.- It will be ready tomorrow.[/b][/size] The problem with … | |
Re: [url]http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo.database.aspx[/url] | |
This is really frustrating me, I know it's something stupid that I missed. I have a combo box that loads all available fonts when the app starts up. When the user selects a font from the combo box, it should change the label to the font they selected. Here's what … | |
Re: It would probably be easiest if you just used a treeview... | |
Re: It loops because the while loop says 'Continue UNTIL the user enters -1.' But you never give the user a chance to enter -1 after the loop has begun. Try this. [code=c#] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace daniweb { class Program { static void Main(string[] args) … | |
This is an example of how to create your own custom button control with a specified visual style. It is intended for beginners and can be used at any discretion. [URL="http://rapidshare.com/files/279748515/CustomButton_Tutorial_C_.zip"]http://rapidshare.com/files/279748515/CustomButton_Tutorial_C_.zip[/URL] MD5: 663925296845ACF99AE1107FC18CA7B4 | |
Re: Hmm, I'm not getting "[]," I'm getting "{ 1234 5 6 7}" | |
Re: You can read the source of .NET assemblies using .NET Reflector. You can also use ildasm provided with the SDK but that's only if you can read IL fairly well. | |
Re: [QUOTE=sknake;992606]I believe we have a new resident Daniweb C# Drawing master :) Danny: Anything math/science related Serkan: Deployment Projects (if he answers!) Diamonddrake: Drawing & Controls Adatapost, Ramy and myself: More random Q&A than anything. I'll create a roster in the [URL="http://www.daniweb.com/forums/group1.html"].NET Developers groups[/URL] after I submit the idea to … | |
I've got a splash screen that plays a flash video upon form load. My problem is, the method to load the flash video is like this: [code=c#] this.axShockwaveFlash1.LoadMovie(0, @"C:\blahblah\blah.swf"); [/code] However, if this app is installed on somebody elses computer they would either have to move the .swf file into … | |
Hi everyone. Basically what I want to do is search for a specific *.exe file upon initialization of my application. The *.exe file that I want to search for happens to be a .NET debugging tool. When / if my application finds this file, I want it to automatically close … | |
Re: Yes, set the visible property for the image to true under the MouseOver event and set it to false under the mouseleave event. | |
Hi everyone, I'm supposed to make a form with the basic shapes (circle, ellipse, pie, arc, etc...) drawn onto a panel. For each shape one will be hollow and one will be filled ontop of eachother. I can't seem to get the positions correct. All of the images are being … | |
Hi, I thought I'd like to make a suggestion that I believe would make a helpful difference in the forums. Whenever I want to search for a topic, I have to search the entire scope of the forums. For instance, when I want help on a 'listBox' control for C#, … | |
Hi everyone, I'm working on an app that needs to log all of the events of every control and place them into a checkedlistbox. For example, if you click a button on the form, it should show the information in the checkedlistbox like 'button1 Clicked: x amount of times,' and … | |
Hi all, I'm pretty fluent with C#, but I was wondering what everyone's recommendations would be as far as an intermediate level book for C#. I pretty much have a grasp on the language, there's just some small details that I need to enhance my knowledge on: some interfaces, class … | |
Hi, Let's say I have a form with a button on it. When I press the button, a messagebox pops up saying 'Hi.' Now let's say a user has this application installed on their computer via the installation project. My question is, how can I create an 'updated' app to … | |
I saw an advertisement banner here not too long ago that was saying something about the Blackberry App development competition? Does any know about this or have a link to it? Thanks. | |
Re: It put's the values after the string into the numbers in the brackets specified. For example: [code=c#] Console.WriteLine("{0}, {1}, {3}", dogValue, catValue, birdValue); [/code] Your basically saying this: [code=c#] Console.WriteLine("{dogValue}, {catValue}, {birdValue}"); [/code] | |
Re: I think you should give Scott a gold metal and promptly send him a basket of freshly made chocolate chip cookies. That is all. | |
Hi, I haven't been able to find much info on this with C#, so I thought I'd ask here. I want to know how to create a simple app that hooks into another portable C# app and injects code into it. Basically I want it to hook onto my program … | |
Hi all. I've made a very simple app and I want it to be able to save the items from the listview into excel columns (from the listview columns). I'll include my project file since pasting all of the code for different section could be a pain... I'm using excel … | |
Re: I believe when you put in your visual studio disk to install it, you get an option to install the msdn library. Check it out. | |
I can't get this code to work... [code=c++] typedef bool (* ProcessCallback)(DWORD ProcessId, DWORD ParentProcessId, TCHAR * Path, void * ImageBase, DWORD ImageSize); bool EnumProcesses(ProcessCallback Callback); // --------- class cProcessList { public: struct sProcess { DWORD ProcessId; TCHAR Path[MAX_PATH]; }; std::vector<sProcess> List; bool operator()(DWORD ProcessId, DWORD ParentProcessId, TCHAR * Path, … | |
Hi, I really like the syntax highlighting feature daniweb has for using code tags. I was just wondering if someone would be able to give me a link for a template that does this so that I can put it on my forum board. Thanks for the help! :D | |
Re: Based on your question, I believe that this is the answer you're looking for: [url]http://img.dailymail.co.uk/i/pix/2007/06_01/hippoSPL0706_468x297.jpg[/url] | |
Re: You could try doing a simple MD5 encryption and take the resulting bytes and encrypt them again with SHA ;p | |
Hi all, I've gotten the drag and drop to work in my listviewbox with some help. I'm not trying to get a file to show in the listviewbox when somebody selects the file from the open file dialog box I've made. I've been able to successfully show the file in … | |
I've got drag and drop to work in ListView so that I can drag a folder containing mp3's and they will display. My problem is that they only show up if I drag the directory in. I can't drag a single .mp3 file in by itself and have it displayed. … | |
I've made an extremely basic program on my WinXP (x86) SP3 comp. All the program does is convert feet to meters, etc... I put it on my buddies computer that has vista (x86) installed on it, and it says 'the program has stopped working, windows is checking for a solution.' … | |
Hi all, I'm learning how to format strings. I've made the following code, but the console screen just comes up blank. [code=c#] static void Main(string[] args) { DateTime ci = DateTime.Now; //instance of datetime Console.WriteLine("{0:D}", ci); string info = "Fred Savage- SSN: 143-14-8756 Phone: (281)414-3424 Email: [email protected]"; string format = … | |
| |
Hi all, I'm supposed to take an app which can parse the info of an xml document and output it into readable info, however I have no idea where to begin... This is what I have so far: [code] private void button1_Click(object sender, EventArgs e) { XmlTextReader read = new … | |
I'm supposed to make my class cloneable for class, but I can't get it to work... Here's what I have so far: [code] public class Employeex : ICloneable { // using properties instead of the constructor public int EmployeeID { get; set; } public string Name { get; set; } … | |
Re: [code] Form2 Form2 = new Form2(); Form2.Show(); [/code] | |
Re: yes, instead of [code] txtIncomeTax = "£" + Convert.ToString(tax); [/code] I put: [code] txtIncomeTax.Text = "£" + Convert.ToString(tax); [/code] and it seemed to work fine... | |
Re: For example, if the password was "abcd123" You would use this: [code] if(this.textBox2.Text = "abcd123") { MessageBox.Show("Valid user"); } else { MessageBox.Show("Invalid user"); } [/code] Hope this helps :P | |
Re: I noticed that if both the username and password textbox are blank, they proper access :P You might want to change this by doing [code] if(this.username.Text.Length < 5) { MessageBox.Show("You must input 5 or more characters for username!", null); } else if(this.password.Text == "") { MessageBox.Show("You must input a password!", … | |
Re: You need to declare what 'text' is. As in [code] char text; [/code] |
The End.