|
I have this RichTextBox. At some point, the RichTextBox might have a little image in it. When the image is selected, the myRichTextBox.Copy() method doesn't properly copy the image data to the clipboard. I know this because MS Paint complains when I try to paste it therein.
Can someone please show me how to get a selected image (in a RichTextBox) copied properly to the clipboard? I assume I'll have to use the Clipboard class, right? I'm not sure how...
-Daniel
Typing too fast fro my owngood
|
|
|
|
|
Hi,
Anyone know how to create a .NET form control with MAC style.
Here is a sample what I mean: http://www.econtechvn.com/en/macuisuite_detail.htm but is has to be bought. I'm looking for any code or free resources to help me acomplish it myself
-- modified at 13:36 Tuesday 18th July, 2006
|
|
|
|
|
Override OnPaint. That's what I would do...
-Daniel
Typing too fast fro my owngood
|
|
|
|
|
Buying a 3rd party UI set will almost certainly cost less than writing the same controls yourself.
|
|
|
|
|
dan neely wrote: Buying a 3rd party UI set will almost certainly cost less than writing the same controls yourself.
I agree. Especially if you're going into it with no idea of if/how it can be done.
:josh:
My WPF Blog[^]
|
|
|
|
|
Thanks for your comment, but still I want to do it myself, I'm almost intermediate in C# I could be able to get through of it. plus once I had seen an article with source code on the web but I forgot the address at this time and I went no where by searching the web.
Please for those who know anything about the soulution let me know.
Thanks.
-- modified at 14:22 Tuesday 18th July, 2006
|
|
|
|
|
Hi guys,
Is there a way to save checkbox setting, i.e. checked/unchecked. When the application is installed make it unchecked and then once the user checks it then keep it checked until the setting is changed again in the future.
Is this possible?
sasa
|
|
|
|
|
A man said to the universe:
"Sir I exist!"
"However," replied the Universe, "The fact has not created in me A sense of obligation."
-- Stephen Crane
|
|
|
|
|
|
Store the state of the checkbox somewhere, like in an xml config file or in the registry. When opening the window with the checkbox, get the value. When the window is closed (or the checkstate is changed) save the value.
:josh:
My WPF Blog[^]
|
|
|
|
|
Thank you for your help. I went with the saving of the setting in an XML file and loading the setting upon form load.
sasa
sasa
|
|
|
|
|
You could bind the checkbox to the settings in the app.config and supply a setting that is initially unchecked.
|
|
|
|
|
Thank you for your help. I went with the saving of the setting in an XML file and loading the setting upon form load.
|
|
|
|
|
app.config is a XML file. IMO it's a whole lot easier to use make some settings in the designer and config file then write and maintain the necessary methods to support a custome xml configuration file.
|
|
|
|
|
Hi
I want to Handle right-clicks in a TreeView. I did it with MouseDown event but i dont know how to get the TreeNode which was clicked.
any idea?
thanks
|
|
|
|
|
|
|
Does anyone know how to get a client point from a mouse click?
I have a drag drop event
void pnlMap_DragDrop(object sender, DragEventArgs e)
in which it returns the point in screen coordinates. Is there a method that I can pass in a screen point and get a client Point?
And is there a function I can call that will get the client rectangle for a title border on a form?
Thanks,
Nick
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
Control.PointToClient [from this. to Control.]
Control.PointToScreen
A man said to the universe:
"Sir I exist!"
"However," replied the Universe, "The fact has not created in me A sense of obligation."
-- Stephen Crane
-- modified at 12:24 Tuesday 18th July, 2006
|
|
|
|
|
thanks. your a great help
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
Is there a way to do this without having to close/reopen the stream? When updating a file, I want to have FileShare.None set to avoid potential problems with partial data being read, after the write is complete I want to switch to FileShare.Read. The close/reopen route would run a risk of annother user grabbing the file between the two calls.
|
|
|
|
|
I would recommned closing them as often as possible. Your application should gracefully handle the event of another user "grabbing" the file.
A man said to the universe:
"Sir I exist!"
"However," replied the Universe, "The fact has not created in me A sense of obligation."
-- Stephen Crane
|
|
|
|
|
if anything, the app should be using a DB backend instead of trying to kluge concurrency into flatfiles, but that's a seperate issue entirely, and not something that's changable.
|
|
|
|
|
And NT Security to disable other users from obtaining anything but read access to the file.
A man said to the universe:
"Sir I exist!"
"However," replied the Universe, "The fact has not created in me A sense of obligation."
-- Stephen Crane
|
|
|
|
|
What should I be plugging into google, I'm not having any luck finding anything relevant to development as opposed to a sysadmin locking a box down. Also, will it work properly over samba at all? Samba doesn't provide support for all the win32 FS calls. The API behind the FileSystemWatcher isn't done at all, and the api it replaced is missing parts, from a samba devlist I managed to find that the limitations were due to the inability to get acceptable performance without running large parts of samba as kernel level code.
|
|
|
|