|
Hello,
Can an application deployed with Click Once allow the user to browse and select a file from the file system? From my research I think this is possible but have not found exactly what needs to be done.
If you have worked with Click Once in the past I'd really like to hear about your experience. It sounds like an interesting way to give internal (Intranet) users a better UI experience. I'm especially interested in the security limitations or what must be done to work within them.
Thanks for the help.
Thanks.
|
|
|
|
|
|
Because there's not anything that you need a DataBinding for in these controls, if you want to store the data from these, then you would use a database. The reason that you have to do it that way is because there may be times when there's more data than what can stored via a DataBinding.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
|
code_wiz wrote: Hmm, then going by what you said, is there any reason why MS supports DataBinding in controls such as ComboBox control????
Because a ComboBox is used to select an item. ListViews and TreeViews more often used to organize/view options.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
There was no easy way at the time to handle the millions of different possibilities of hierarchical data. I'm guessing it was easier at the time to let the programmer take care of things and hope for something better.
Thankfully this has been solved with the introduction of WPF.
I have no idea what I just said. But my intentions were sincere.
|
|
|
|
|
hamid
|
|
|
|
|
Using c# how will we get ascii value for refresh buttun????
Please help me.
Rgds
Nithin
|
|
|
|
|
Nithin Krishna wrote: Using c# how will we get ascii value for refresh buttun????
What refresh button? The most common is "F5" which doesn't have an ASCII value.
|
|
|
|
|
Hi friends,
am developing a webservice and one problem am facing is that when an error occured due to coding or network getting an error page, at that time pressing the refresh button again the same rquest is sending to the server.
I don't want this. So suggest some ways to solve this, means
how we can redirect the page to another while refereshing the page or disabling the refresh button...
Please help me........
Rgds
Nithin
|
|
|
|
|
You can use AJAX to accomplish this. This would control the HttpRequests.
|
|
|
|
|
This is not a web service, a web service has no UI
You can't do it. If you refresh, it will send a request to the server. If the server then redirects to another page, that's another question.
Or, did I misunderstand you ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Is there any API in the .NET framework that will give me the number of processors and/or processor cores there are?
I'm looking to enable my program to use multiple processors in some methods. It will create as many threads as there are cores and use each one equally in certain methods.
-- modified at 22:33 Friday 5th January, 2007
█▒▒▒▒▒██▒█▒██
█▒█████▒▒▒▒▒█
█▒██████▒█▒██
█▒█████▒▒▒▒▒█
█▒▒▒▒▒██▒█▒██
|
|
|
|
|
Though I may be wrong but I don't believe you have any control, nor would you want to, as to which processor/core to use. I remember reading a paper about this with the jist being that routing tasks to the processors/cores is a very complex algorithm that wiser people then I spend many years perfecting (or at least trying to).
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: Though I may be wrong but I don't believe you have any control, nor would you want to, as to which processor/core to use.
Well each core will be utilized at 100% so I thought that if I had two threads and each thread is using all available CPU time that the OS would move one of the threads to another core or processor.
For example I have a loop that iterates through a very large array and acts on each array item independently. If there are more cores available I could divide the loop so the first thread will work on the first half and the second thread will work on the second half, depending on how many cores there are it will be divided into 4 or 8.
█▒▒▒▒▒██▒█▒██
█▒█████▒▒▒▒▒█
█▒██████▒█▒██
█▒█████▒▒▒▒▒█
█▒▒▒▒▒██▒█▒██
|
|
|
|
|
I can't find what I'm looking for, but:
Look in System.Diagnostics for detecting multiple CPU's
Look at System.Threading.Thread for setting thread Affinity
Ignore what I said about _AppDomain, it's not there.
However, what I've read suggests using the existing .NET threadpool, and let .NET do what it can about balancing your load.
|
|
|
|
|
Okay, I think I was wrong. I can't find any of the references I thought I would.
Setting thread affinity in .NET does not do what I said. Nor have I found any mention of how to get the System attributes that include how many CPU's, or the speed.
|
|
|
|
|
I found it, System.Environment.ProcessorCount.
█▒▒▒▒▒██▒█▒██
█▒█████▒▒▒▒▒█
█▒██████▒█▒██
█▒█████▒▒▒▒▒█
█▒▒▒▒▒██▒█▒██
|
|
|
|
|
Actually, there is. And, I believe, you can set thread affinity, which specifies which real or virtual CPU your thread uses. I don't have the docs with me here now, but I'm pretty sure I just read this.
It's either in the Application namespace, or the _AppDomain namespace.
|
|
|
|
|
Hi CC#,
Starting with .NET 2.0 there is Environment.ProcessorCount
I dont know of any simple way to get more specifics (cores vs chips)
similar threads will get distributed over processors automatically, you would not
have to care about the details, unless you want maximum performance in special cases
such as two threads of type A plus two threads of type B running on 2 processors
(could by itself result in AA+BB or AB+AB which may behave slightly differently; in that
case processor affinity can be set with Thread.BeginThreadAffinity).
It may not be harmful at all to have more (identical) threads than there are processors,
so you might consider using 2 or 4 threads all the time, independent of processor count.
(Could be useful if, e.g. you also want to run on .NET 1.1)
Regards,
Luc Pattyn
|
|
|
|
|
Thank God Luc was here. Although I knew I had just read about all of this, I could not for the life of me find it.
|
|
|
|
|
Thanks, I got it.
█▒▒▒▒▒██▒█▒██
█▒█████▒▒▒▒▒█
█▒██████▒█▒██
█▒█████▒▒▒▒▒█
█▒▒▒▒▒██▒█▒██
|
|
|
|
|
I have a form which contains a tab control, which contains two tab pages.
On each tab page, there is a DataGridView, bound to it's own DataTable.
In the RowsAdded event handler for both DGVs, when the first row is added, I resize the columns to fit the data. My handler looks something like this:
private void dgvAllEvents_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)<br />
{<br />
...<br />
dgvAllEvents.AutoResizeColumn(0, DataGridViewAutoSizeColumnMode.DisplayedCellsExceptHeader);<br />
}
This code works fine for the datagridview that is visible - that is, on the selected tab. However, the column does not get resized on whichever dgv is NOT visible - the tab page that is not selected.
The event is getting fired, I have confirmed that. But the column is not resized when the AutoResizeColumn method is called.
Is there an optimization here that prevents resize from being executed if the column is not visible?
Thanks for any insight you have here.
|
|
|
|
|
JoeRip wrote: Is there an optimization here that prevents resize from being executed if the column is not visible?
In the resize event handler check to see if the column is visible and if it isn't then return.
█▒▒▒▒▒██▒█▒██
█▒█████▒▒▒▒▒█
█▒██████▒█▒██
█▒█████▒▒▒▒▒█
█▒▒▒▒▒██▒█▒██
|
|
|
|
|
No, I think you misunderstand. I don't WANT to be optimal. I'm asking if the reason that my column isn't getting resized is that I am running into some existing .NET optimization.
|
|
|
|