|
I want to make a tool that just like "Windows Picture and Fax Viewer overview".
1. Increase or decrease the image preview size.
2. View the image in full size or as the best fit for your window.
3. Manage image files and print, save, delete, or change file details.
4. Open the image in an editing program if you wish. Note that this closes Windows Picture and Fax Viewer.
5. Rotate images right or left by 90 degrees.
Thanks a lot for help in advance!
|
|
|
|
|
This is all possible using GDI and C#:
1, 2 and 5 can be done using Graphics and the System.Drawing namespace
3 using System.IO
4 using the System.Diagnostics.Process class
Search CP for GDI and System.Drawing articles
Regards, Graham.
|
|
|
|
|
Hi
How i can make adrag and drop to any control to another one ?
please if you can send me rapidly !
Mahmmoud_eid@yahoo.com

|
|
|
|
|
|
Hello, Once I make a .NET software and I can put that message "Copyright owned by me..etc" in the HELP - ABOUT... but is it enough ? If some one decompile my code and make another version with his copyright name, what is the protection here... Should I have to register my product with some copyright protection companies etc... ?
|
|
|
|
|
Copyright can be thorny at times. Any original work which you create in most countries automatically gain copyright protection. This is the situation in the UK, where there is no need to contact authorities or pay fees to have something copyrighted (In fact there is no such procedure).
If someone was to decompile your executable and completely reimplement the algorithm then this is legally fine. Notice I mentioned "completely"; this would involve rewriting the decompiled code to avoid the similarities in syntax whilst performing the same algorithm. Now if they were to pass your original code (however they gain it) off as their own or using the decompiled code without reimplemtation this will break that copyright protection.
Copyright doesn't protect the idea or algorithm, only the implementation of that idea/algorithm. If you want to protect an idea/algorithm then patents are the only legal means. E.g. Amazon patented the one-click shopping cart. Personally though, I think patents are nasty, and hinder software development.
I'm no lawyer, so what I've said may not be totally accurate.
Regards, Graham.
-- modified at 19:11 Monday 24th April, 2006
|
|
|
|
|
Thanks Graham for your reply. I understood and i got my answer. I found dotNetProtector as a nice software for obsfucating .net assemblies but it is expensive (300 euro = almost 500$ Canadian), So I was thinking, what is the risk if I dont obsfucate my code and directly publish in CNET and my website for sale, but now I realized I should go for dotnetprotector to obsfucate, atleast making decmolie process harder unless someone is really desparate to break my codes...
Thanks again
Emran
|
|
|
|
|
Obsfuscating your code I think is the best solution. BTW, Visual Studio comes with a free community edition of a obsfuscator. I'm sure there's a link to the installer from the Start Menu.
|
|
|
|
|
Thanks for the reply.
Graham N wrote: I'm sure there's a link to the installer from the Start Menu.
I did not understand, Which Start Menu , did u mean Start page of Visual Studio Editor ? If so, then I did not see any link to that free obsfucator in that start page. If you know the link, would you please give me that.
Thanks again.
|
|
|
|
|
Ive only ever heard of one type of Start menu... its in the lower left of your screen by default and has links to your program files in it.
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
The Start Menu?! The one in the bottom left hand corner of Windows!
Start Menu -> All Programs -> Microsoft Visual Studio .NET 2003 -> Visual Studio .NET Tools -> Dotfuscator Community Edition
|
|
|
|
|
I see, ! You meant Visual Studio .NET 2003 full version, right ? But I dont have that version. I am using C# Express 2005, which is free and it doesnt come up community edition of Dotfuscator.
Anyway, Thanks for the information.
|
|
|
|
|
Hi,
how can i switch between 2 window forms? In my Form1 i have a button and if i press
it should open Form2 and close the Form1 i can open the Form2 but if i try to close the first form
it wouldn't work
probably a stupid question but i'd love to know how it works
i think i have to use some MDI functions...
|
|
|
|
|
Show me the fragment of your code and i'll help you...
|
|
|
|
|
but i don't really have the code...
i know i can make a new form with:
Form frmname = new Form();
and show it with frmname.Show();
but thats not the form i want to load...
i made a new "Windows Form" with "Add New Item" so you can see a Form2.cs in the solution explorer... and i want to switch from Form1 to Form2 if it's possible. 
|
|
|
|
|
Given your really good description (it wouldn't work) I can only guess what is happening. I think that Form1 is your startup form. If you close it the whole application will close.
There are several possibilities:
1. Hidden startup form
- Make a hidden Form which is your startup Form (that one mentioned in the Main method).
- In it's constructor/Load-event open up Form1
- Now you can safely close Form1 without terminating the application
2. Don't switch teh Form - just its contents
- If the two Forms have matching size than you could create two user controls instead and add/remove them from the startup form.
|
|
|
|
|
Well, u can hide the form1. set Form1.visible = false
---
Eat Bytes Everyday
Zakaria Bin Abdur Rouf
zakaria7@gmail.com
|
|
|
|
|
Hello all,
I am using C# 2.0, in my winApp. I am getting the HTML Data. I need this in string format. I don't want to use browser control.
how to achieve this. anybody any sounds
plz help me
regards
GV Ramana
|
|
|
|
|
How are you receiving the HTML data? If it's a stream, you can convert that to a string using some of the encoder classes in System.Text namespace.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Is Jesus the Jewish Messiah?
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
thx for reply
my application is mail reading appliclation, so mails will come
in the form of html.
this html i want to convert to normal data(string)
how to do this
regards
GV Ramana
|
|
|
|
|
The question is, how is the HTML data formatted? What type is the HTML data, in your .NET code? If it's binary, you'll need to convert it from byte[] to string using System.Text.Decoder and its derivatives.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Is Jesus the Jewish Messiah?
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
Your problem is you are interpting the "normal data" to mean "string" which if it is in the form of Html *is not* string at all. After all, this page is all Html and it has far more stuff than just "string". So what is it that you are really after? If you just want to do raw text processing you might want to look at WebRequest /WebResponse instead.
|
|
|
|
|
|
Hi,
StringParser is very good.
but there is no constant html data. html data will comes differently.
how to convet this.
regards
GV Ramana
|
|
|
|
|
I don't understand the sentence "there is no constant html data. html data will comes differently". But if you want an HTML-free version of a string that contains HTML, do this:
string strWithHtml = "...";
string strWithoutHtml = StringParser.removeHtml (strWithHtml);
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|