|
Thanks Luc,
Question answered. Always happy to learn from you.
regards,
George
|
|
|
|
|
You're welcome.
|
|
|
|
|
|
Hi Luc,
Sorry for interruption again. I am thinking your thread ID and name matching solution. My concern is if you use thread pool to execute a task a couple of times, CLR may choose different thread to execute, which have different thread ID. How do you match in this situation -- to find thread name by thread ID?
regards,
George
|
|
|
|
|
Hi George,
1.
I typically don't use ThreadPool because IMO it does not offer sufficient control.
2.
If you were to use reusable threads (as in ThreadPool) you would have to remove the
(ID,name) pair from the hashtable/dictionary as soon as the thread is done doing the
action with that name. (You would have to lock the dictionary to do this properly!).
|
|
|
|
|
You are so smart, Luc!
regards,
George
|
|
|
|
|
Guys,
I have used Visual Studio 2008 to create my Word Addin using VSTO (Visual Studio Tools for Office). Right now the Addin consists of a ribbon with a nested group containing with two text boxes and a button.
I need to access these three objects in two different ways, a word macro and using JS ActiveXObject.
After accessing them I need to assign values to the text boxes and execute the button.
Can some one please give me advise on how I can do this or point me to the right direction.
Thanks in advance,
Shrini
|
|
|
|
|
I have a checkboxlist with different items. I have a comma separated values field that I need to bind to this cbl. The cbl is in a detailsview. I know that I need to loop through the dataset rows so each record in the detailsview is bound with the correct information, however I have only figured out how to bind the first row in the dataset for every record in the detailsview. I know I need to loop through the dataset but am not sure how to do it at the same time as looping through the rows in the detailsview. This below function is called onDataBinding. Can anyone assist?
Thanks in advance!
public void FillControls()
{
int intSN = Convert.ToInt32(Request.QueryString["LookUp"].ToString());
Selections db = new Selections();
DataSet ds = db.Services(intSNo);
int iCount = ds.Tables[0].Rows.Count;
if (iCount != 0)
{
if (dvGetMoreData.CurrentMode != DetailsViewMode.Insert)
{
FillMultipleCheckboxesWithValue((CheckBoxList)dvGetMoreData.FindControl("cblSvcs"), ds.Tables[0].Rows[0]["Services"].ToString());
}
}
}
~Candi
|
|
|
|
|
You maybe have better luck in the ASP.NET forum.
|
|
|
|
|
Hello,
I'am strugling with the following. In my .net 2 c# application i'am using the errorprovider to validate my form. On my form there is a tabstrip and all of the tabcontainers have their own controls. Basicly one form has one save button, now my problem is the following when i wan't to validate my form it validates also controls on the other tabpages. I've tried the extende errorprovider from Microsoft nut that one didn't work on usercontrols with valaidationcontrols.
Is there an solution form the problem described above?
Kind regards,
Wilbert
|
|
|
|
|
Hello...
My name is Henry Javier I study Engineering systems...
I need create an application for disabled keyboard and mouse...
please help me, this application is homework...
Excuse me my english is very bad... I speak spanish
thanks
Hola a todos...
Necesito hacer una aplicacion la cual pueda deshabilitar el teclado y el mouse...
ayudenme porfavor es una tarea de mi universidad...
gracias
|
|
|
|
|
If you mean system wide you could use Keyboard/Mouse hooks (google for these and check out www.pinvoke.net) but your users will hate you! I'd seriously reconsider.
If you mean for your application, set e.handled to true for the various events that may be fired???
Dave
|
|
|
|
|
, rew w rt wt w w wtr utw wt wre wer erw trwh sa uaedfu tu t434u44 4wuhutqwu wquqwttwqeut wqututwt
|
|
|
|
|
It's really tough, which algorithm did you use to encrypt?
|
|
|
|
|
|
My ability to google and comprehend things today appears to be not what it should - I've been up since 4am so go easy on me
Anyway, suppose I have a very simple class with a single property:
public string SiteName {
get{return siteName;}
set{siteName = value;}
}
Now SiteName has some very specific format requirements (ie not longer than 12 characters, first 4 chars are alpha only for example). Within the setter I can do some validation with a regex or whatever, and for validating this single property everything is great. It also seems to make sense to me that this is where the validation should take place.
However, it occurs to me that I might want to do a similar kind of validation on another property, perhaps even within in a separate class - or even multiple classes, and could get very messy with the same (or very similar) logic appearing all over the place. This looks to me like an ideal candidate for re-factoring... and this is where my googling has come unstuck!
What I'm really after is an insight on to tried an trusted techniques for validating properties, and also whether my intent is actually going to cause bigger problems than they're worth. I had a quick read about Custom Attributes, but I was not particularly clear on how to hook these up to know when a property is being modified, or how they interact with the property in question...
As always, any help greatly appreciated.
|
|
|
|
|
Martin - take a look at using INotifyPropertyChanged and something like this[^] article.
|
|
|
|
|
From the article: "Take note – in the screens above, the code that triggers the error to be shown is in the business object, not in the GUI. I didn't have to write a single line of GUI code – it's already done by data binding and IDataErrorInfo."
Today's epiphany sorted
|
|
|
|
|
Yup - binding's so cool - and so bloody useful.
|
|
|
|
|
ou install the utility and navigate to any url in CP from where you can post a message, the signature field is automatically filled with one of the quotes from an XML file. All you need to do is to write some quotes in an XML file either manually or using the CodePr
|
|
|
|
|
Hi
I'm working on some kind of html&javascript editor
Now I stopped at point that I cant get over it !!
When I set the script to DocumentText Property of webBrowser control And if the script has an error the webBrowser control would handled the errors internaly and shows a dialog with some text about the error.
How can I get the error with my code and handle it by my self
Thank !
|
|
|
|
|
You might have better luck posting this in either the Web Development or ASP.NET forums.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines][ Articles][ Blog]
|
|
|
|
|
Sorry
what I have to do now !
|
|
|
|
|
No worries. The best thing to do is decide which forum you want to post in, create the new post in that forum, and then modify your original post to include a link to the new one.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines][ Articles][ Blog]
|
|
|
|
|