Answer Questions
erikerik Login
hi all, I am designing a login "component" for my application. Do you know of any good examples of login implementation on the web that I can get ideas from It must NOT be windows authenticated login. I have my own dB table etc. Thanks Thanks David Thanks for your help. Is there anyway to make it more secure and prevent hackers or sql injection attacks You should always store passwords as encrypted value. Tha ...Show All
Prakash Channagiri - MSFT WDS 2.6 EID Encoding
Hi out there- I would like to find out how to decode the mapi: url -- with the new funking data embedded into the unicode string. With only a little adjustment -- it works like a charm. If you're interested in seeing an application of your search engine -- check us out at www.soonr.com -- we do remote access to your desktop via phone and web. Cheers -peter Hello ...Show All
Hugh Tester Use DllImport attribute to invoke functions in a native DLL
I need to transfer information through shared memory between 2 exe files. I've found a C++ code that pretty much do exactly what I need to do, but I don't know how to do it in C#. Is there a way to convert this code to C# or write something in C# and would be able to receieve information for the C++ code Sample C++ Code: #include <windows.h> #include <stdio.h> #include <conio.h> #define BUF_SIZE 256 TCHAR szName[] ...Show All
Brian The Gaffer PDF Print / Print Setting
Hi, Is it possible to create two buttons (btn1 and btn2) in my winform so that when I press btn1: A print dialogue appears and allows me to change the print settinng. btn2: Print the document according to the print setting I set in btn1. I have taken a look at the PrintDialog class, with PrintDialog I need to use PrintDocument. But seems with PrintDocument, I need to play with the Graphics object and now I want to print PDFs.... Any tutorials/li ...Show All
Spikeone AxSHDocVw
I am using .net 2005 which was upgraded from .net 2003 about 10 days ago. I did a Help.Check for Updates yesterday and now I cannot compile my project. I believe it did an upgrade of Office. In the references of the project I found that the reference to AxSHDocVw has been removed and Microsoft.Office.Core was inserted which does not have a reference to AxSHDocVw. Does anyone know a work around or where I can go to do research on this. I ...Show All
Dario_Munoz non - public classes
hi, I am making a dll which contains several 'public classes', just about every class refers to another classes info at some point thats why ive kept them all 'public' My problem though is when someone uses the dll, they should only be able to see one class in the dropdown (this then branches out into the other classes eg listbox.hello.ok etc) The thing is though they can see all the classes because they're all 'public classes', an ...Show All
The_Jackal Using Timers in a console application
Okay, so... I've only worked with Java so far, and never even understood multithreading in that, but anyway, now I'm REALLY lost. Yes, I looked all over for tutorials, but they were all talking about applications in windows forms which have their own threading thing going on apparently, and mine is a console application. So here's my question. I have this (using Syste.Threading.Timer): t = new Timer(callback, null, Timeout.Infinite, Timeout.Infi ...Show All
RClayH outofmemory exception
hi...i have an array like this item = [10,100,100,100,100] the indexers of the array are all int...when i run the program i get this excpetion...how can i resolve it You're trying to create 4 multidimensional arrays, each with a billion elements. The element types are Item1, Item2 etc. I don't know what those types are, but suppose they were ints. In that case, you are trying to allocate 16 billion (16 Gigaby ...Show All
Darren_Melb_Aust cdo.message
Hi, I am getting an error message "Could not access 'CDO.Message' object.". The file which is using "cdosys.dll" is there in the system32 folder and SmtpServer is assigned to the local ip address "127.0.0.1". Plz give me any suggestion regarding this error. shine hi, i am also getting a same error message..if your problem is solved then do let me know. i tried to configure my smart host. i a ...Show All
Tim Lensen Login
hi all, I am designing a login "component" for my application. Do you know of any good examples of login implementation on the web that I can get ideas from It must NOT be windows authenticated login. I have my own dB table etc. Thanks NewbieDude wrote: Thanks for your help. Is there anyway to make it more secure and prevent hackers or sql injection attacks Use paramitrimized queries. Then you never have to wo ...Show All
_Donnie-Darko_ can anyone explain polymorphism
can anyone explain polymorphism with simple example i understood the code but can u explain what this line means Ball b = new Hardball ( 2.0, 0.85 ); Polymorphism means “many shapes”. Study the following example. Note that a football, while actually a “ball” may require a different Bounce() method than a Hardball. using System; using System.Collect ...Show All
Bekas VS2005 Click Once: how to determine the publish version
Application .ProductVersion.ToString() returns the product version. Is there a similar way to determine the (Click Once) publish version --Goos van Beek Found it already here http://forums.microsoft.com/msdn/ShowPost.aspx PostID=9145 --Goos ...Show All
flyte Menu usage in C#
Hi, I am trying to add a menubar on a Forms.UserControl. How can I do that Is there any workaround for this Thanks - Giridhar. Why What's wrong You should be able to add a menu strip to a UserControl just the way you add it to a form. Which version of VS are you using You can't add a MainMenu to a UserControl. You can however, add a MenuStrip if you are using ...Show All
Olivier B. FTP -- list files in directory
I have found code that allows you to list the files in a directory for use with FTP-ing. The problem is I am not sure what "DirName" is in the code: http://www.java2s.com/Code/CSharp/File-Stream/Changesthecurrentworkingdirectoryandthenliststhefilesinthedirectory.htm Since I cannot pull the answer to DirName from the args (since I have no args) what would it DirName look like if lets say I want to check out the files on ftp://localho ...Show All
Merco Tabcontrol.tag
textBox1.Text = TabControl1.SelectedTab.Tag; That code doesnt work for some reason, could someone please tell what the working code is You can't put a object type in a string typed property. First cast or convert it: textBox1.Text = (String)TabControl1.SelectedTab.Tag; // Or textBox1.Text = TabControl1.SelectedTab.Tag as String; // Or textBox1.Text = TabControl1.SelectedTab.Tag.ToString(); .text and .tag are 2 com ...Show All
