|
Wouldn't a FormattedValue be a string? Not a GUID?
|
|
|
|
|
Not to worry, I have fixed it.
I Converted the Guid to a String and then Passed the string to the property, worked like a charm.
Thank you!
Illegal Operation
|
|
|
|
|
Taking a value, making it a string, then parsing it back to the value it was is wasteful and considered to be poor coding practice.
|
|
|
|
|
Does anyone know how to copy a transparent image out of a C# application into the clipboard, and then paste it into Photoshop? When I try this the transparency (alpha) is lost. Here's as far as I got, but it doesn't work (transparency is still lost):
IDataObject dataObject = new DataObject();
dataObject.SetData(bMap);
MemoryStream ms = new MemoryStream();
bMap.Save(ms, ImageFormat.Png);
dataObject.SetData("PNG", false, ms);
Clipboard.SetDataObject(dataObject, true);
|
|
|
|
|
See if this[^] helps.
Or maybe this[^] one. You'll have to read through the replies, to find one that works for you, I hope!
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Thank you very much for the links! I had been working on this problem all day and had came across them. The code snippet I posted was actually based on the second thread. The code snippet adds a PNG to the clipboard which allows transparent images to be posted to Excel. Unfortunately Photoshop, as well as most programs, don't seem to look for PNGs on the clipboard so it didn't help specifically with Photoshop.
|
|
|
|
|
Oh well.
Hope you find a solution.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I want to know which one is bets to use with Windows Form? Crystal Reports or RDLC? and why plz?
|
|
|
|
|
|
hey , i am new to c# , with a bit of experience and i am wondering how i would go about making a back up program, such as syncing one folder with another.... For example; copying new data in folder 1 to folder 2 ... how would i go about making this ? and if you could direct me to a useful tutorial or tell me some of the code i would be very happy thanks !!!
|
|
|
|
|
No one will really give you such code, because it is readily available by using Google, or reading a book for beginnings. This is basic functions that are taught at a very early level, when you said a bit of experience I assume you where overstating, to say the least.
Please Google for introductory articles on C# and .Net, make use of MSDN (as the examples posted are extremely helpful to beginners and professionals alike) and become accustomed to researching first, trying second and then asking for help, but on specific areas where you get stuck. Not an entire project.
|
|
|
|
|
sorry, i did search , just didn't know what to look for , hence why i was asking for advice and support ... thanks anyway
|
|
|
|
|
Regardless, your initial post still asked for code, which is generally frowned upon around here. You will see people here willing to help you a great deal if your question revolves around a specific bug and you've sincerely tried to accomplish something, anything other then coming here first.
Good luck with your work.
|
|
|
|
|
Well obviously i am new around here and didn't know what to put so i generally asked for code , regradless or not of peoples feelings to the topic of asking for source code , the term code could of meant that you can give me an example or you can tell me what type of code is required for me to research to reach my goal, i am very sorry , i have learnt my lesson to not use the term "code" in general circumstances , thank you
|
|
|
|
|
weirdsteve wrote: just didn't know what to look for
Let me help[^]
only two letters away from being an asset
|
|
|
|
|
Thank you very much for your help Mark Nischalke ! at least there are some kind people on here who will just even quote or tell me what i am suppose to search Thank you ...
|
|
|
|
|
weirdsteve wrote: at least there are some kind people on here who will just even quote or tell me what i am suppose to search
The title of your thread is "C# back up program"
Google for your own title and you would get
Backup Utility in C#[^]
as the second hit (the first is your thread)
So.. you're basically learning how to use Google. Good for you.
|
|
|
|
|
erm thanks for that ..... all you people are not nice are you :S okay sorry , and i know google is quite good isn't it ? i mean you can search anything , i did actually try that result obviously and i couldn't open the .zip file on visual basic 2008 as it wasn't compatible , hence why i thought i could come here for a bit of help as i thought you were kind people and would lend a hand instead of giving a person a hard time .... but yeah google is good as you can search a word in the text box WOW !
|
|
|
|
|
weirdsteve wrote: i did actually try that result obviously and i couldn't open the .zip file on visual basic 2008 as it wasn't compatible
Then you're also in the wrong forum, batting 100% aren't we today?
|
|
|
|
|
battling ? who said i was ? i am just saying my opinion on the subject ... and no i am in the right forum .. and can't help it for visual basic c# express 2008 faults which stop me from learning ... if u are battling ... may i suggest you stop as i am just saying my opinion and only asked for a bit of help on a forum i don't know but read the terms of use and how to question ...... But may i suggest you look at how to answer a question which is
HERE![^]
and i can seriously say that the question was not in the wrong forum, not inappropriate, in perfect English but could of been poorly structured for you to understand .. so read carefully. ..
|
|
|
|
|
Batting, not battling, you must learn to read my posts, it's an expression about baseball that is combined with sarcasm to illustrate the amount of mistakes you've made in a short period of time.
Here[^] is a guide about asking a question.
|
|
|
|
|
And sarcasm , like everyone knows, doesn't work on text typed on a forum or document with nothing to suggest it is in fact how u are saying it , all i needed was nice simple help.. which would be better with a simple answer, such as .... " weirdsteve the thing you need to research on google is "c# file copying" which will direct you to the right source for your problem"
|
|
|
|
|
I would agree...
...except the phrase is ONLY used in sarcasm and has no other meaning.
|
|
|
|
|
if you say so , but if you weren't going to be helpful , then u could of just carried on ....
|
|
|
|
|
You're using C#, or VB ? I'm confused. Either way, the best way to learn, is not to look at other source code, not at first. you would do better to work through the examples in a C# book, if you're starting out. From there, you'll understand enough to read up on things like the System.IO namespace and file watchers, which is basically what you need for the task at hand ( watch a folder, when a file is created or changed, copy it to the backup folder with System.IO.File.Copy )
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|