|
Add link to exe file into Windows menu "Programs\StartUp" or
add key MyProgram = "c:\MyProgram\MyProgramm.exe" into registry path "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run"
(if you need to run program once add to path "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce")
|
|
|
|
|
hello all i need help
iam zidan from egypt
and i love programming so much and i want to learn how can i start
i hear about C# and more, i want some one help me , how can i start
and thank you all
my mobile num is ( +20104893140 )
Best Regard
A.Zidan
zidan
|
|
|
|
|
hello friend,
the best way to start learning c# is through msdn, or through online
u can easily learn it (hope u know oops very well)
chakkara
|
|
|
|
|
The best way would be to get a book. And get a C# 2.0 book!
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
I would recommend Professional C# By Wrox
|
|
|
|
|
|
here u have a great C# book for beginners
http://rapidshare.de/files/17794428/C__Programming_for_the_Absolute_Beginner.rar.html
|
|
|
|
|
Hello,
i am trying to keep updating a coloum for each ListViewItem in a ListView.
I though i could just do this by a thread that kept updating every 10 secound but i can see that it is only possible to update / change / work with the ListView from the Thread that originally created it.
Soo how can i achieve what i want ?
Should the thread which updates the ListView instead maybe call a method like Invoke(TheMethod) every 10 seconds, or how should it be done ?
Other Questions about Threads:
I seem to get into 2 usuall problems.
1. I only want 1 thread to be able to be created and working on a method. I usually solve this by declaring the Thread thread globally within the class, soo before i create the Thread i check if thread == null ( create thread ), and in the code which the thread is running i then set thread == null when it exit.
Is this okay ? or are there some smarter way to do it ? maybe some build in type / object or something ?
2. I only want 1 thread a time to run some code. Usually i solve this by declaring an Object threadLock globally within the class, soo i can just do lock(threadLock) { THE CODE HERE }.
Any better way of doing that ?
Best regards
Martin
|
|
|
|
|
Skoder wrote: Should the thread which updates the ListView instead maybe call a method like Invoke(TheMethod) every 10 seconds, or how should it be done ?
That's one way to do it. If all the thread does is refresh the listview, you could use the System.Windows.Forms.Timer[^] class instead.
Skoder wrote: 1. I only want 1 thread to be able to be created and working on a method.
You could use the IsAlive[^] property.
Skoder wrote: 2. I only want 1 thread a time to run some code. Usually i solve this by declaring an Object threadLock globally within the class, soo i can just do lock(threadLock) { THE CODE HERE }.
That looks fine.
Regards
Senthil
_____________________________
My Blog | My Articles | My Flickr | WinMacro
|
|
|
|
|
To do this, I tried serializing a .exe binary file into a text file then deserialize that text file into the second .exe binary file. But it does not work. Anybody have solution?
|
|
|
|
|
What's wrong with the copy function ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
One reason could be that it's blocking the calling thread while it's working without any progress update.
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
Try using StreamReader, StreamWriter classes in namespace System.IO.
In framework 2.0 you can use the function ReadAllBytes and WriteAllBytes in namespace File.
|
|
|
|
|
As alexey_n already suggested, you can use StreamReader/Writer.
You create a byte[] buffer and fill it with data from the source file. Then you write the buffer to the target stream.
Repeat as long as the source stream hasn't reached its end.
Btw. if you really want a replacement for Copy, do not forget to set the file properties (modification date for example) after copying the content. The FileInfo class has what you need for this task.
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
How should I read in a binary file so that I can FTP upload it?
|
|
|
|
|
how to play Flash in C# 2005(WindowsApplication)
-- modified at 21:36 Tuesday 11th April, 2006
|
|
|
|
|
There's a ton of articles on google.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
It seems your reply requires too much user effort
|
|
|
|
|
Yeah, that's what I've come to expect.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Can anyone tell me how do I add a .Net FCL Control to my C# project.
The problem that I am getting is that I have made a control in C# by selecting the project type as "Windows Control Library", In this project I am using just a Listbox and I have not made this project as a Component.
Then I make another C# project and on its toolbar I select "Choose Item" by right clicking my mouse button. On that I see a window which shows a list of .Net Framework Class Library Components and COM components, but since my project is not a Component I don't see my control in that list.
After that I tried adding the dll of my control in the references folder of my Client project, I was able to add that dll as a reference but the problem is that since my control is a visible control, I would like to see the Listbox which this control contains, whenever I use the control in my project.
I want my Control to appear on the tolbox of my client project, I was unable to do that?I was able to implement a class as a component, and use it as a control in my client, this worked perfectly fine and I saw my Class control on the toolbox of my C# client after I selected Choose
Item on the toolbox.
Please let me know what should I do regarding this issue?
|
|
|
|
|
Did you try browsing and selecting your dll after right clicking on the ToolBox and selecting Choose Item? That should work.
Regards
Senthil
_____________________________
My Blog | My Articles | My Flickr | WinMacro
|
|
|
|
|
Can anyone tell me how to create a Visible Control and add it to a C# form?
|
|
|
|
|
Do you mean adding controls in run time or design time?
Can you explain more question?
|
|
|
|
|
I need to draw line(arrow) between 2 controls in a panel,
this line outside from and income to control Bounds,when move that
control by mouse the line follow the control
--------
this line can be over the control
|
|
|
|
|
You draw lines in your paint method handler. You can get the position of the controls from the controls themselves and then draw your line, using DrawLine on the Graphics object passed into the paint event.
Moving your controls via the mouse is another issue.
Christian Graus - Microsoft MVP - C++
|
|
|
|