|
Fair advice, but the compiler does convert the concatenation using + to string.Concat calls, so it really doesn't create any extra string objects.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
True, and im of the "let the compiler optimize your code" camp for sure.
However the advice given is true from so many other levels - readability, good practice, simply understanding the framework you're working in.
Letting the compiler optimize code is fine, but if the code starts off sloppy then dont expect the optimized code to be much better!
|
|
|
|
|
|
IIRC you can only emit that in the Page_load handler
xacc-ide 0.0.99-preview7 now with C#, C, C++, IL, XML, Nemerle, IronPython, Perl, Caml, SML, Ruby, Flex, Yacc, Java, Javascript, Lua, Prolog and Boo highlighting support!
|
|
|
|
|
Hello there,
anyone can lock a control in design time using the Locked property in the properties window, setting it to true .
But is there a way to do that programmatically?
|
|
|
|
|
the Locked property simply stops the control being moved/resized at design time - it has no effect at runtime so quite why you would want to set this using code im not sure.
If you want to stop a control being used at runtime, you are after the Enabled property
|
|
|
|
|
Hello,
I need to use a Java Webservice which uses HTML/1.1 with transfer encoding: chunked. I already found postings that say that .NET is able to read chunked SOAP responses, but I haven´t found an arcticle about reading chunked SOAP messages.
Can anybody give me a hint how to process chunked SOAP XML response with C#, or has a link to an article about that?
|
|
|
|
|
Hai All,
Can I access the delphi compiled dll in .net.
I tried to use it by adding the reference but I am getting the error that it is not a valid com component or valid assembly.
I am getting information about the functions written in the dll in the dependency walker.
Can I accesst the dll functions through DllImport attribute.
Please help me
varmag
|
|
|
|
|
If you know the complete signature of the function (i.e. parameter definitions and types) you can use P/Invoke and the DllImport attribute.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hai Greeeg,
Thank You for your quick response.
I will check it.
Once again thanks for your response.
varmag
|
|
|
|
|
Hai Greeg,
Thanks for your hint.
Its working fine.
Thanking you
varmag
|
|
|
|
|
Hi all,
does anyone know a .NET PDF-Viewer control except Acrobat Reader(COM) (not necessarily for free) ?
Thanks in advance
Frank
-- modified at 5:55 Thursday 3rd November, 2005
|
|
|
|
|
Use the search from the main site, there are a couple of articles about PDF and C#
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi,
there are a lot of PDF creator apps but only one (commertial) PDF-(Viewer) converter. I didn't find a couple of articles of viewers what you have mentioned.
Do you have a link for me ?
regards
Frank
|
|
|
|
|
Don't know of a.NET one, but we've been using one from Glyph and Cog at http://www.glyphandcog.com/, or as its known in the open source world, XPdf. You could P/Invoke to it and it should work fine.
--
Joel Lucsy
|
|
|
|
|
Anyone know a free compiler that does Web stuff, i usually use SharpDevelop, but, there aint no web services / apps, part, and it would be REAL useful if i had something that did.
-- modified at 7:00 Thursday 3rd November, 2005
|
|
|
|
|
Hi all!
I don't know if anyone can reproduce this - sometimes (unpredictably as it seems to me) Image.GetWidth() throws a System.ArgumentException.
best regards
björn
|
|
|
|
|
That usually happens when you are trying to access properties on an Image instance that has already been disposed. Because the underlying unmanaged resource has been released, GetWidth throws exceptions.
You can try placing breakpoints on the lines where Dispose is called and checking if there are any accesses after Dispose.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
oh, yes, that helped, thanx.
I disposed the image of a PictureBox in another thread and (just two lines later) setting a new image.
That explains why it happened so scarcely.
|
|
|
|
|
hi
i have a datagridview in which i have a a datagridviewcomboboxcolumn.
The problem is i need to populate 2 values from 2 datasources in the same dropdown .
for example this populates only 2 to 10 in the combobox i need to customise it for a pair of values
how to do it ??
ArrayList arlTilsagnType = new ArrayList();
InitializeComponent();
for (int i = 2; i < 10; i++)
{
arlTilsagnType.Add(Convert.ToString(i));
}
dataGridViewComboBoxColumn1.DataSource = arlTilsagnType;
Anirban Pramanik
|
|
|
|
|
I have application settings (Configurations) which can be modified by the user at runtime. The settings are stored in a file or in a database.
Where do I locate this file? E.g. the installation folder C:\Program Files\MyExampleProgram\Settings is write-protected for a normal user.
The C# program is installed on Windows Systems post Win98SE.
|
|
|
|
|
Can't you put it in the application installation directory? In fact, the standard App.Config file gets placed in the same directory as the executable, with the extension executablename.exe.config.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hi
Put the config-file in the application data path in the Home-directory of the User on NT-based OS (C:\documents and settings\%UserName%\Application Data\).
André
'A programmer ist just a tool which converts caffeine into code'
|
|
|
|
|
Hello Thanks for the reply!
Can I read the Home-directory folder out of the system settings? Or how should I handle multi language installations (french, german, ...) which do not name the folder 'documents and settings' but 'dokumente und einstellungen' for instance?
Greetings
|
|
|
|
|