|
I should have replied to the original poster, my mistake, but the info is valid
for you as well.
|
|
|
|
|
Hi Martin.
I don't have VS installed on this computer, so I haven't had the time to check, but doesn't adding and removing of elements in a collection that you're currently iterating over in a foreach, throw an exception?
Martin# wrote: Hello,
You have to iterate over the Controls Collection and compare the Name property
foreach(Control c in this.Controls)
{
if(c.Name.Equals("TextBox"+m.ToString()))
{
this.Controls.Remove(c);
break;
}
}
Best regards.
-Larantz-
|
|
|
|
|
Hello,
That would be correct if you are searching for more than one control in the collection. Than you would have to add the Controls in a temporary List, like ArrayList, and remove it later while iterationg over that temp list.
In my example I was only searching for one control and stoped the foreach with a "break".
So I think this will run just fine!
But it was correct to inform about this issue, so thanks!
All the best,
Martin
|
|
|
|
|
Hi Thanks,
Its Working fine..
Regards
Kanna..
|
|
|
|
|
You are wellcome!
All the best,
Martin
|
|
|
|
|
I want to be able to rate images with stars like in Photo Gallery and Photoshop. I can not find where the rating is stored (IPTC or EXIF or ...?) Is there anybody who has an example of setting and getting the rating?
|
|
|
|
|
Sounds fancy... do you mean you'd like to store the rating within the image??
|
|
|
|
|
yep. Do you have PhotoGallery? When I use that to give a rating (0 - 5 stars) the size of the file changes. When I use a HexEditor, I see that the header is changed, but I do not like to mess around with headers and I'm pretty sure there is a better way.
|
|
|
|
|
The values are stored in the header as you say. Some metadata added onto the picture information.
I've got an exif library that I got off the internet.
I'll see if I can find it. I belive it can write values as well as read them.
-Larantz-
-- Modified --
It's actually ExifExtractor from here on CodeProject.
http://www.codeproject.com/csharp/exifextractor.asp[^]
But as the name spells, 'Extractor', I'm not sure it can alter values.
-Larantz-
|
|
|
|
|
Well, I have (for Delphi which I'm using most of the time) an Exif-class as well as a IPTC-class which are both able of reading and writing tags. But the point is that there is (as far as I can find) no info about reading and writing ratings in both specifications.
|
|
|
|
|
I would like to display the cells (it would be 16x16 cells to display) like ListView but I only want to have the cells, not the header row nor the header column (as you can see in datagridview). If I use RichTextBox, it slows down the graphic GUI... I know the table display would be the best for me to use.
Anyone done that?
|
|
|
|
|
|
i have one gridview with 4 diff colums.
1. EmpID
2. Empname
3. DeprtName
4. Gender
It show normally grid when load.
But when we select EDIT then 1,2 colums are textbox and 3rd is combobox with dept name and 4th is radio button MALE & Female.
This problem I cant solve .....
Please replay .....
Thanks in Advance...
Manoj
|
|
|
|
|
Use template columns. Then in the ItemTemplate you have labels and in the edit template you have text boxes combobox etc. I would guess right now you are doing simple binding which doesn't give you any option to what controls you see when you edit the row.
Ben
|
|
|
|
|
Do you mean datagridview or just gridview? If gridview, then how do I get that started on my GUI? I'm trying to find documentation on this.
|
|
|
|
|
hi all
I Wount to add DataGrid To my Mobil Application With this propertis
1- columns type combobox
2- columns type CheckBox
3- Columns type Buttun To delete the row selected by click to this button in grid this button is in evry row
thanks All
Thaer (T.h)
Thaer
Thaer
|
|
|
|
|
|
Help me pleas
Not until you read "How to get an answer to your question" and post the question to the appropriate forum
only two letters away from being an asset
|
|
|
|
|
Plus... posting your question multiple times doesn't make us more willing to help you!
|
|
|
|
|
hi all
I Wount to add DataGrid To my Mobil Application With this propertis
1- columns type combobox
2- columns type CheckBox
3- Columns type Buttun To delete the row selected by click to this button in grid this button is in evry row
thanks All
Thaer (T.h)
Thaer
Thaer
|
|
|
|
|
Hi, I am hving troubles with inserting Date in my database. I have a field in my table in the databse whicih is Date/Time format. For example if I want to insert s specific date (let's say it is 19th july 2007) i need to insert 19.7.2007. Now that is not the problem. I have a string which is formated correctly. It goes as "19.7.2007". But when I insert it to database it reports error, because the dataset for that table needs a varaiable that is Date format and not a string. In visual Basic.NET i used Cdate function for converting strings in dates. What functions should I use in C#?
|
|
|
|
|
Hi, .NET has a DateTime struct that holds both date and time information.
And that is what everyone seems to be using to insert date information into a database
(unless the field is defined as a string that is).
|
|
|
|
|
DateTime.Parse, DateTime.ParseExact, DateTime.TryParse, DateTime.TryParseExact.
If you know the format, prefer (Try)ParseExact. Use the Try version if you would prefer to test whether the format matches rather than getting a FormatException exception.
|
|
|
|
|
Any Links to Beautiful Looking Controls Like Buttons, Scrollbars, Labels, etc. I've come across Aqua Buttons, Arrow Buttons, Round Buttons. I'd like a Good Looking Scrollbar and ListBox.
http://javootoo.l2fprod.com/[^]
An Excellet Site for Java's Look And Feel Classes. There has to be some for C# as well.
Thanks...
|
|
|
|
|
Hello,
Just search in the articles[^] here on CP!
All the best,
Martin
|
|
|
|