 |
|
 |
Hey, I was checking out you're codes then started up on a little program of my own.
How would I, instead of the sheep moving acrost the screen, make a picture show up in the buttom right corner and allow me to click/hold and move it anywhere and it will drop back down to the status bar and walk back to the bottom right corner?
I know it's possible, i just don't know if it's possible in C#.
I'm not very good at coding. I've only been looking and learning for the last few days off of here.
If anyone can help it be appreciated.
-- modified at 21:01 Wednesday 3rd October, 2007
Also, how would i add in a initialize program code?
What i mean by that is; A code that when i click the button it will open the correct program i list to it.
For Example: The button says 'Enternet' I'd like when i click it, it will open Enternet Explorer for me.
|
|
|
|
 |
|
 |
Hi Nick,
C# Beginner Nick wrote: I know it's possible, i just don't know if it's possible in C#.
Everything is possible in C# except magic!
C# Beginner Nick wrote: If anyone can help it be appreciated.
Unfortunatately, you'll have to write your code alone, however, we can offer some tips to be considered..
You have to read about the following:
1. Drag and drop
2. NotifyIcon
3. ImageList
4. Threads and timers
5. Read my article again
C# Beginner Nick wrote: Also, how would i add in a initialize program code?
Are you talking about constructors??
C# Beginner Nick wrote: For Example: The button says 'Enternet' I'd like when i click it, it will open Enternet Explorer for me.
Process?
Cheers,
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
 |
|
 |
anyone has any idea about how to change the source files after uploading them here in the cp?? say i made modifications to the code and i want to change the previously uploaded files but the only thing im allowed to do is to upload more!!
thanx
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
 |
|
|
 |
|
 |
hmm.. thats why they say:
not to show the slaughter scene in advance, to the animal thats brought for slaughter
or to show up any knife or blade.
|
|
|
|
 |
|
 |
yes, that's why i always cover their eyes, but the butchers keep laughing at me!!
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
 |
|
 |
Code project allows .exe in an article submision. They just want you to zip your exe to make it smaller so it doesnt take as long to download and reduces the overhead on there server.
Pablo
Sometimes I think there's no reason to get out of bed . . . then I feel wet, and I realize there is.
|
|
|
|
 |
|
 |
how can you do that
i tried but i couldnt!!
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
 |
|
 |
What? The same way you zipped the source files...
|
|
|
|
 |
|
 |
There was probably just an error when you tried to upload it that time. Trust me, it works, I have an exe in all of my articles.
Pablo
Sometimes I think there's no reason to get out of bed . . . then I feel wet, and I realize there is.
|
|
|
|
 |
|
 |
i trust you, but for now it's not working, once you start uploading it will cease and tell you this extension is not allowed "listing the allowed exts"
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
 |
|
 |
Im a little confused on what your trying to do...your current demo contains the exe now, and you posted this message after you posted the exe. Am I missing something?
Pablo
Sometimes I think there's no reason to get out of bed . . . then I feel wet, and I realize there is.
|
|
|
|
 |
|
 |
Polymorpher wrote: your current demo contains the exe
it's not about "containing" a .exe in a zip package, i wanted it to be .exe!! cuz it's a .exe file, try to rename it from .zip to .exe and double click on it, yes you guyz are able to open it in winzip and the reason is because it's a self-extractor exe!!
Desktop_Sheep_demo.zip
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
 |
|
 |
I have convert your code to vb.net and create new application exactly as you write. it works nice. but at running time it shows whole form and when i press Win+D key it will minimize. in your application it works. How is any property to set on forms. if so pl help me.
In my code this line gives me error so i have comment this line. i am using vb.net2003.
Application.SetCompatibleTextRenderingDefault(False)
Thnaks,
Don't Expect A Good Day! Make One...!
|
|
|
|
 |
|
 |
set the transparency key to say "red" and have the same "red" as your background color and set the border style to none
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
 |
|
 |
Sorry, ale na takovouto píčovinu používat NET....ve win32 tohle napíše každý zručný programátor za méně než půl hodiny, a nesežere to X mega paměti jako NET aplikace
|
|
|
|
 |
|
 |
English please??
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
 |
|
 |
I'm guessing you programmed the sheep to walk on the task bar.
I have extended by task bar for 2 rows and now the sheep no longer walks on the task bar.
Also when you dock the task bar on some other edge like left, the sheep will flying rather than walk.
« Superman »
|
|
|
|
 |
|
 |
hi « Superman »!!
im sorry but i just dont get it, what exactly are you trying to tell me?? if your reporting a bug, then i already know this if you read "points of interest", i just dont know how to manage this and im asking you people to share your experience regarding this point.
thanx for your feed back
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
 |
|
 |
He is saying he can resize the taskbar bigger and the sheep will end up behind it, so you can't see it.
You want to get the bounds of the DESKTOP, not the screen, because this will subtract the size of any docked windows (such as the taskbar). I forget exactly how to do this at the moment.
[Edit: Oh, I read the comments below, someone told you it's PrimaryScreen.WorkingArea]
|
|
|
|
 |
|
 |
The_Mega_ZZTer wrote: [Edit: Oh, I read the comments below, someone told you it's PrimaryScreen.WorkingArea]
believe me, it's not working!!
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
 |
|
 |
It works when I do it:
screenW = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width;
screenH = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height;
The only problem with this is that if you change WorkingArea (by resizing the taskbar) the sheep won't ever move to the "new" bottom of the screen. This can be fixed by recomputing screenW and screenH every time the sheep moves off the screen.
|
|
|
|
 |
|
 |
thanx, i'll give it a shot, im already doing it this way, except im not getting the new bounderies each time it starts over.
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
 |
|
|
 |
|
 |
thank u for your article
and which eid do you mean?
I Wish the Life Had CTRL-Z
|
|
|
|
 |