101 Posted Topics

Member Avatar for papanyquiL

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 …

Member Avatar for jbennet
0
96
Member Avatar for serkan sendur

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

Member Avatar for jasimp
-2
372
Member Avatar for metalla_nz

[URL="http://lmgtfy.com/?q=Mounting+an+ISO+in+C%23"]http://lmgtfy.com/?q=Mounting+an+ISO+in+C%23[/URL]

Member Avatar for metalla_nz
0
473
Member Avatar for facadie

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]

Member Avatar for Geekitygeek
0
217
Member Avatar for chathuD
Member Avatar for sknake
-1
246
Member Avatar for franceee

EDIT: Damn, I just realized what was in the title... 'WPF'... lol sorry

Member Avatar for DdoubleD
0
145
Member Avatar for procomp65

[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

Member Avatar for procomp65
0
3K
Member Avatar for danielschealler
Member Avatar for facadie

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.

Member Avatar for facadie
0
2K
Member Avatar for facadie

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...

Member Avatar for facadie
0
108
Member Avatar for papanyquiL

[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 …

Member Avatar for ddanbe
0
154
Member Avatar for serkan sendur

[url]http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo.database.aspx[/url]

Member Avatar for serkan sendur
0
686
Member Avatar for papanyquiL

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 …

Member Avatar for papanyquiL
0
115
Member Avatar for tiwas
Member Avatar for tiwas
0
111
Member Avatar for jp12861

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) …

Member Avatar for papanyquiL
0
75
Member Avatar for papanyquiL

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

Member Avatar for serkan sendur
0
210
Member Avatar for serkan sendur
Member Avatar for MxDev

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.

Member Avatar for papanyquiL
0
137
Member Avatar for NargalaX

[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 …

Member Avatar for papanyquiL
0
110
Member Avatar for papanyquiL

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 …

Member Avatar for papanyquiL
0
205
Member Avatar for papanyquiL

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 …

Member Avatar for papanyquiL
0
206
Member Avatar for chathuD

Yes, set the visible property for the image to true under the MouseOver event and set it to false under the mouseleave event.

Member Avatar for chathuD
0
105
Member Avatar for papanyquiL

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 …

Member Avatar for papanyquiL
0
306
Member Avatar for papanyquiL

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#, …

Member Avatar for Dani
0
116
Member Avatar for parthmishra
Member Avatar for papanyquiL

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 …

Member Avatar for papanyquiL
0
136
Member Avatar for papanyquiL

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 …

Member Avatar for papanyquiL
0
146
Member Avatar for papanyquiL

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 …

Member Avatar for papanyquiL
0
86
Member Avatar for papanyquiL

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.

0
43
Member Avatar for san_crazy

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]

Member Avatar for papanyquiL
0
102
Member Avatar for avirag

I think you should give Scott a gold metal and promptly send him a basket of freshly made chocolate chip cookies. That is all.

Member Avatar for sknake
0
742
Member Avatar for papanyquiL

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 …

Member Avatar for DdoubleD
0
107
Member Avatar for papanyquiL

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 …

0
58
Member Avatar for agent154

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.

Member Avatar for agent154
0
127
Member Avatar for papanyquiL

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, …

Member Avatar for Ancient Dragon
0
214
Member Avatar for papanyquiL

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

Member Avatar for papanyquiL
0
144
Member Avatar for john_beginner

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]

Member Avatar for papanyquiL
-1
80
Member Avatar for swinefish

You could try doing a simple MD5 encryption and take the resulting bytes and encrypt them again with SHA ;p

Member Avatar for swinefish
0
288
Member Avatar for papanyquiL

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 …

Member Avatar for ddanbe
0
134
Member Avatar for papanyquiL

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. …

Member Avatar for papanyquiL
0
825
Member Avatar for papanyquiL

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.' …

Member Avatar for serkan sendur
0
411
Member Avatar for papanyquiL

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 = …

Member Avatar for papanyquiL
0
162
Member Avatar for Clawsy
Member Avatar for papanyquiL

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 …

Member Avatar for papanyquiL
0
149
Member Avatar for papanyquiL

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; } …

Member Avatar for papanyquiL
0
181
Member Avatar for ABabeNChrist
Member Avatar for taichi2910

yes, instead of [code] txtIncomeTax = "£" + Convert.ToString(tax); [/code] I put: [code] txtIncomeTax.Text = "£" + Convert.ToString(tax); [/code] and it seemed to work fine...

Member Avatar for lonelyrider
0
374
Member Avatar for sivak

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

Member Avatar for kvprajapati
0
63
Member Avatar for mini person

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!", …

Member Avatar for mini person
0
132
Member Avatar for Koldsoul
Member Avatar for NathanOliver
0
4K

The End.