Tank you but still there is a problem!
I don't access label name because it made dynamically and before that i cant access to this label.
Even I know label name the compiler don't allow me to remove in that way.
Sorry, but I do not understand what you mean. If you are iterating through a collection of controls then you do not need their name. As you look at each control in the collection you get its type to check if it is a label. Then you read its content to see if it is one of the candidates for deletion.
I read them but they code are in c# and I don't know equivalent of this part in c++ :
" C.GetType() == typeof(System.Windows.Forms.TextBox) "
c.GetType exist in c++ but "typeof(System.Windows.Forms.TextBox)" no,do you know what is it in c++?
(I'm sorry that I ask a lot question.)
I'm looking into perf tuning in our application and one area we've identified when converting many strings between String^ and a native array of UTF-8 chars. Currently, I use code similar to this:
array<Byte>^ byteArray = System::Text::Encoding::UTF8->GetBytes(str);
pin_ptr<Byte> p = &byteArray;
I then proceed to memcpy from p to my own storage block.
Has anyone compared Encoding::UTF8->GetBytes() to pinning a string^ and using WideCharToMultiByte(CP_UTF8, ...)?
I suspect it will be faster to use WideCharToMultiByte even if I call twice (once to get byte count, once to convert) and will investigate today but I thought there may be a war story or two out there.
Hi Iam using the below codes tosave the report as PDF in c#...Is it possible toconvert it in C++/Cli
byte Bytes = Reportviewer1.LocalReport.Render(format:"PDF",deviceInfo:"");
using (FileStream stream = new FileStream("C:\MyFolder", FileMode.Create))
stream.Write(Bytes, 0, Bytes.Length);