Answer Questions
Richard_11463 Check whether string contains uppercase letters
I want to create a password validation method so i want to check whether sring contains at least 1 uppercase letter... how do i do this public void ChangePassword(string UserID, string oldPassword, string newPassword) { if ( IsValidPassword(UserID, oldPassword) ) &nbs ...Show All
Vayse Thread | Invoke Issue
I am stumped on this. Here is my scenerio. >> = creates >: = event kicked off Class A >> Class B >> Class C Class A >> Class D When Class C creates a graphic object , alert Class A to tell Class D to reset all its data. Class C >: Class B >: Class A Class A has this code: private void Feature_DataChanged( object sender, EventArgs e) { ImageHandler image = ( ImageHandler ) ...Show All
Kirk Haselden finally block...
Hello, I'm confused with finally block...Let me explain it: what is the difference with --------------------------------------------------- try { /// throw an exception } catch ( Exception ex) { // do something } //rest of the program ------------------------------------------------------- and try { /// throw an exception } catch ( Exception ex) { // do something } finally{ //rest of the ...Show All
dukerattlehead Could you tell what diferent there are in several VS.Net 2005 edition?
Could you tell what diferent there are in several VS.Net 2005 edition What is the limit of Visual Web Developer 2005 Express Beta2 I hope to learn ASP.Net, you know many documents is onyl fro ASP.net 1.1, but now ASP.net 20. beta is available, are there a huge different between ASP.net 1.1 and ASP.net 2.0 Do I need to learn ASP.net 2.0 directly or I learn ASP.NET 1.1 fisrt, then learn ASP.NET 2.0 later. I'm afrai ...Show All
GauriMK How to get hard disk serials?
i used this code to get hard disk serials: private void getSeriaHardDisk() { string lsSerial=""; ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_Phy ...Show All
GCG How to destroy an object in C#?
I created an object using "new" method from a class. After some operation, I need to explicitly destroy this object. In vb the code is simply "object=nothing". But in C#, i don't know how to do that. Thks. BigCannon bc = new BigCannon(); bc.target(object); bc.fire(); Get it! Thank you very much! You can dereference an object using obj=null; in C# ...Show All
dekej List of TreeView controls in a panel
Hello all, I wanted to get some implementation suggestions on an idea I'm trying to code. I Want to display a form with a panel containing a series of treeview controls. The panel will be scrollable and updated dynamically with additional treeview controls. I want to have the treeview controls appear completely collapsed in a list with only the parent node text being visible. However, I want to be able to expand the treeview and have the o ...Show All
John Marsing !!! IF MICROSOFT HEAR US!!!
I just saw another thread with "Can i make a app that doesnt use the .NET. The framework is too big 23 MB".. SO... Can Microsoft create a .Net Framework just for c# not for asp or j# or visual basic providing only the neccesary dlls Please!!!! ya it would be... for people like us That have internet.. but what if the user doesnt have Internet connection Yeah, I agree, I sure as hell wish they would have. I love Microsoft, ...Show All
kbe C#.net or VB.net
I am beginner for .net programmer. Just want to know which one is better on marketing VB.net or C#.net I heard big companies more like c#.ner than vb.net thanks. Yeah, I agree. Everyone assumed that C# was C++ like, I'd say it's more Java like. in .NET world, C# has more followers than VB.NET, but classic VB does have its own cult. Check out the jobs advertised in your area and then decide which will be b ...Show All
MarketFare Message passing... telling the form the control is in to do something
Hi, I have an application that has a user created control, the data in this control is used to populate color boxes in a seperate user control contained within the same form. How can i call a function of the form that my two controls are in without having a form object in each of the controls Thanks for any help, -Dave The best thing it to give the User Controls a Event, something like a ColorCha ...Show All
Vikas Maderna Reading the registry...
Hi there, I know how to get gernal information out of the registry, but I'm having trouble getting the main-memory. It's located in : HKEY_LOCAL_MACHINE\HARDWARE\RESOURCEMAP\System Resources\Physical Memory The field name is : .Translated The field type is : REG_RESOURCE_LIST I tried : RegistryKey rk = Registry . LocalMachine ; rk = rk . OpenSubKey ( "HARDWARE\RESOURCEMAP\System Resources\Physical Memory" , false ); Console ...Show All
Fduch adding Favorites Functionality from IE to a Form??
What needs to be done to add "Favorites" Functionality to a Form like in Internet Explorer I'm not sure what needs to be done to get that kind of Functionality in my Project.. Thxs for the Help in Advance.. I have added a Web Browser To my Form it will store Web Links just like in internet Explorer... What i'm working on is a Smart Client but revolving around Media Based Content,So i'm look ...Show All
zaphod gargleblaster Components parameters
Hi everyone, In here; (object sender,System.EventArgs e) I do not understand anything from the parameters of C#'s components. What is the logic of using these paramater for all components in C# Would you please explain them to me Thanks, Mert mert-1 wrote: Hmm, I think I began to keep the idea but I wonder that when do a progammer use these paramater When you fool around with your code quite often, it can be hel ...Show All
Sizzles How to use COM Interop in C#
I have a requirement to use a dll written in Visual C++ 6.0 in my C# application. In order to establish the link between my application and the dll, I have written a ATL COM Component in Visual C++.NET [visual studio .NET version 8]. This COM component is referenced in my C# application. The COM component statically links with the 6.0 dll. I am facing problems in passing data from C# to the dll through the COM component. Descriptio ...Show All
rogerkuu Deleting IE Cache
I was trying to delete the Temporary Internet Files with this code: #region IECache private void IECache() { string pasta = Environment.GetFolderPath(Environment.SpecialFolder.InternetCache); DirectoryInfo di = new DirectoryInfo(pasta); FileInfo[] fi = di.GetFiles(); foreach (FileInfo fiTemp in fi) fiTemp.Delete(); } #endregion IECache but it doesen't delete anything from the temporary folder. ...Show All
