|
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.
|
|
|
|
|
Sometimes systems are designed, from the ground up, not to be maintainable or flexible. I am sure there is a way but it seems to me like it would be a hack. You can always maintain a temp file with read/write and the actual file with read write. Write to the temp file and the truncate the real file with the temp.
(This whole issue seems like it came from the history of modern databases )
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
|
|
|
|
|
Ennis Ray Lynch, Jr. wrote: (This whole issue seems like it came from the history of modern databases )
Yeah, it's really given me an insight into why the first db systems were invented. Given the other constraints and the fact that in normal operation there'd only ever be a single user I can understand why the decision was made, but covering the exceptional case's is proving to be very unpleasant as well.
|
|
|
|
|
You now have fodder for your first article?
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
|
|
|
|