You might do something like this: List<Button> buttons = new List<Button>(); buttons.Add(new Button(...)); ... To access the buttons you might do: foreach(Button b in buttons) { ... } or use any functions List<> provides :)
Pyro Joe wrote:
Hilf mir!
Gerne! ;) regards
This article doesn't work. I think something between vs '03 and vs '05 has changed. It wants me to create a ButtonArray, which does not exist. Here is what they have in the example: // Declare a new ButtonArray object. ButtonArray MyControlArray; MyControlArray = new ButtonArray(this); // Call the AddNewButton method of MyControlArray. MyControlArray.AddNewButton(); Well seeing how the ButtonArray thing doesn't exist, I can't really do anything with this. How do I go about creating control collections in visual studio 2005?
foreach(object oLB in listBox1.Items) Because a listbox can define the value member of any object to display, it contains objects. Use something more specific assuming that you know what's in there. Christian Graus - Microsoft MVP - C++
Pyro Joe wrote: yeah, I have a datagrid control on a form. How do I do a simple binarysearch on the table so I can select the row that results were found in You will need a custom search procedure that will loop through the items in the bindingmanager of the datagrid. Each index in the item list of the bindingmanager equals one row in the datagrid. You can select rows in the datagrid using the Select(rowIndex) method Pyro Joe wrote: also, is there a way I can make rows invisible so they still exist, but aren't visible? thanks so much. Use the dataview component. It's perfectly suitable in the situation. It can hide rows using a rowfilter. Pyro Joe wrote: and found the square to be represented by & # x 0 ; minus the spaces. I can also paste this sequence here without spaces and it will show the odd symbol: � There is something wrong with library you are using or there's something wrong with the interface communicating with the library. Have you asked the creator of the library if this is some kind of bug? Because I think the library is pumping out id3 data that isn't really part of the id3 data. WM.
What about weapons of mass-construction?
Hi Buddy, I am also looking for this kind of information. So if you found any help please tell me.Thanx |Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com
Write a method like this: public void findFiles(string where, bool recurse, params string[] what){ /*...*/ } so you can invoke without arrays: findFiles("c:\\", true, "*.mp3", "*.avi"); findFiles("d:\\", false, "*.mp3"); and so on. hope this helps
Using C#, there's FileInfo class that can be instanciated. It gives all the informaion of a file, including size and date created, ect. For the download resume, there is a code at http://www.csharphelp.com/archives/archive9.html[^] that would give some insight of how to do it. ==== Lei Ming 2004 ===== ====================
You could also replace all this code with a simple call to:
Application.DoEvents();
This will let the UI respond to WM_PAINT messages and update the screen. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
actually, there are two more arguements I just found out about. One that you can tell it to search ALL the subdirectories. but I still thank you for your time in answering my question.
Dialogs? Have you tried left-clicking the "safely remove hardware" icon in the system tray, which will popup a menu, and pick the device to unload? It should be that simple. -- Joel Lucsy
There are many Regex Editors around for .NET just google, I cant remember the names now. xacc-ide 0.0.14 now with C#, MSIL, C, XML, ASP.NET, MyXaml and HLSL coloring - Screenshots
see the problem is, that I need to escape the contents of the variable, not the variable itself. so escaping it would place the variable into the text, rather than its contents. also, as earlier, the " symbol would stop the escape before the correct " symbol is reached. this would mess things all up.
leppie wrote: Shouldnt you rather be opening them? It has been a while since I dug around in the Windows Registry, but IIRC, the CreateSubKey will create a new sub key or open an existing one - kind of like a 2-for-1 deal in the supermarket. :rolleyes:
Do you want to know more? WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums