|
As MSDN states: "This Windows timer is designed for a single-threaded environment where UI threads are used to perform processing. It requires that the user code have a UI message pump available and always operate from the same thread, or marshal the call onto another thread."
Use one of the other two Timer types. Here you find a short overview on timers.
www.troschuetz.de
|
|
|
|
|
Hi,
I am looking for a way to write Excel spreadsheets in a c# program without having Excel installed on the computer. Presently, the Excel sheets i create are in XML, but versions of Excel under 2002 don't support XML.
So, i am looking for articles or documentation that shows how i could do that
<pr>
Thanks!
|
|
|
|
|
Is the investment in time really worth the effort?
You better be sure before you tackle this... Google - "Excel File Format"[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Is there a way to go about identifing all running applications that have windows or dialog boxes open? I'm wanting to write myself a small application that can find all the open application windows & dialog boxes on my PC and move them to a specfic monitor when required.
|
|
|
|
|
try:
System.Diagnostics.Process[] myprocs = System.Diagnostics.Process.GetProcesses();
there's an overload where u can specify a machine name.
hope that's what you ment;)
there are no facts, only interpretations
|
|
|
|
|
Cheers, that looks exactly what I was looking for!
|
|
|
|
|
There are several native functions like EnumWindows or EnumChildWindows that could be used. Take a look here to get an overview. More information on how to use the native functions in C# are provided by pinvoke.net.
www.troschuetz.de
|
|
|
|
|
i don't understand something.
the list view in windows application c# supports column reorder....but i cannot find a way to see which column is the first one.
can anyone help?...it is very odd...why did microsoft implement the column reordering in list view but didn't provide a way to read which column is first?...(the label of the column for example???)
thank you in advance.
|
|
|
|
|
|
Hi every one,
I am a webdeveloper with old concepts like ASP, now i would like to migrate my self with ASP.Net, for that i am concentrating on C#.
I need C# complier. so any one can help me in this, i need some links where i can download C# compiler for free.
thanks a lot in advance
nagarajuepuri
nagarajuepuri
|
|
|
|
|
|
The C# compiler is included in the .Net Framework - the name of the compiler executable is csc.exe (for C Sharp Compiler).
|
|
|
|
|
created a setup project for my comapny (windows based application) using .NET Setup and Deployment project (Setup Project). I want to change the registry enviroment variables for the current user, which I easily add in their registry editor. When I install the setup in fresh computer, its instals ok and shows the updated environment variables (Right click on my computer -> properties -> Advanced -> Environment variables) but they did not work. If i open the dos window (cmd.exe), and run "set", its did not display the updated environment. Even reboot didn't fix it. I have to manully edit those value in order to take effect, which is not acceptable at user point.
It seems like very basic feature to me, when you deploy the application, you want to change the environemnt variables. Is this a knows bug or I am missing something.
Please help me..
Shail Srivastav
shailsrivastav@hotmail.com
blog
|
|
|
|
|
I have to concatenate an unknown number of byte arrays, into a large byte array.
Do you know how can i accomplish this, optimally?
"though nothing
will keep us together
we can beat them
for ever and ever"
rechi
|
|
|
|
|
Bogdan Rechi wrote:
optimally?
performance-wise?
I guess get pointers to arrays' bases and use them (the array sizes too) with the memcpy function, accessible from C++ (i think it's in memory.h ).
Simplicity?
Create a big array and copy inputs into it with the Array.Copy(Array, int, Array, int, int) method
there are no facts, only interpretations
|
|
|
|
|
Use a memory stream:
byte[] arr1 = new byte[] {1,2,3,4};
byte[] arr2 = new byte[] {9,8,7,6};
byte[] arrFin;
using (MemoryStream ms = new MemoryStream())
{
ms.Write(arr1, 0, arr1.Length);
ms.Write(arr2, 0, arr2.Length);
arrFin = ms.ToArray();
}
Grim (aka Toby) MCDBA, MCSD, MCP+SB
SELECT * FROM user WHERE clue IS NOT NULL
GO
(0 row(s) affected)
|
|
|
|
|
Grimolfr wrote:
ms.ToArray()
I used GetBuffer and it returned an array larger then the actual number of bytes inside (it grows by doubling the current size).
Thank you!
"though nothing
will keep us together
we can beat them
for ever and ever"
rechi
|
|
|
|
|
I hvae a webmethod in my webservice, when I debug it, a xml format file is benn make. I want to out put the xml file on my webmethod, For example, At last line my webmethod add a some code.Because when I debug the webmethod, it can work normally. But when I call it at my webapplication, it has a error that There is an error in XML document (421, 39). I think that this is error what data xml have some special characters.
|
|
|
|
|
Have you looked into creating a SoapExtension for debugging purposes? Can be helpful.
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
Hi everyone,
Could you please tell me what the best and error-prone way to sign and verify XML files exists? Which CSP provider exists on all 2K and XP machines? What is the optimal key-length so that it works with all localized Windows versions?
The only constraint I provide is the ability to sign with the private key and to check with the public key.
Thanks in advance.
Regards,
Serge (Logic Software, Easy Projects .NET site)
|
|
|
|
|
Serge Lobko-Lobanovsky wrote: best and error-prone way
|
|
|
|
|
Your smile shows you have no practical experience in this subject and do not understand that there are problems with both 1.0 and 1.1 crypto API implementation. So I am really sorry for the traffic you've wasted when posting your smiley.
Novichek?
Regards,
Serge (Logic Software, Easy Projects .NET site)
|
|
|
|
|
Yo, I wasn't answering your question. I was just making a joke out of "error-prone". By definition error-prone means "capable of making an error". I'm sure that's not what you are looking for.
|
|
|
|
|
By default Katakana charactor (in Japanese) takes two bytes, but it can also be displayed using one byte(that reduces charactor width). Is there any standard way to convert two byte Katakana charactors in to one byte charactor in a given string that may have Kanji and Katakana in it.
Please guide.
|
|
|
|
|
No there isn't. You'll have to use some customized compression technique on the strings. But, when you wanted to do ANYTHING with them, like display them or manipulate the strings in any way, you'd have to decompress what your using.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|