|
Could you give me the code please?
|
|
|
|
|
|
Yes
My English is poor
I want to define some methods in the BHO being
then use the Javascript Web Page to dispatch the methods
|
|
|
|
|
dreadknightll wrote: I want to define some methods in the BHO being
What is BHO? What do you mean by it? What does it stand for?
|
|
|
|
|
I am trying to display an image into a table or placeholder. However I get a mis-matched type error. Does some know of how to display an image into a specific location without using the image placeholder tag from VS.
Any help will be appreciated.
Thanks
|
|
|
|
|
Hi.
I want to write a simple spelling and grammer checker application.
spell checker is not difficulp, But because my language is not English grammer checker is difficult for me.
Now I want you say me 3,4 simple grammer in English that implementation of them be simple.
My project is a simple student project, for this implementation of 3,4 grammer is efficient.
Best wishes
|
|
|
|
|
I'm starting to look for a good obfuscator for .Net specifically C# 2005. Does anybody have one they are happy with and would recomend? Or, are there any out there that I should avoid like the plague?
Thanks
|
|
|
|
|
thrakazog wrote: I'm starting to look for a good obfuscator
Why?
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum
led mike
|
|
|
|
|
Just a guess, but he probably wants to obfuscate his code...
|
|
|
|
|
I'm baffled here. My user has a simple request, when he tabs from one control to the next, he wants to have the RichTextBoxes automatically select the entire word so he can start typing a new value (as opposed to having to stop and grab his mouse...or repeatedly hit the delete key to erase the current text in the control)
So I look up and change the RichTextBox AutoWordSelect property from false to true. According to MSDN this should do the trick right?
Ummm....wrong.
As far as I can tell this property has no effect whatsoever. I've also tried changing various other properties onmy RichText box in case there's some interaction, Multi-line, HideSelection, ShowSelectionMargin etc. etc. in case there's some bizarre undocumented interaction going on, but nothing I've tried so far results in a RichTextBox that behaves the way it should. To me this is doubly irritating, because after all, the behavior he's asking me for is pretty much the default normal behavior for any type of form (just tab around on any web page with user login/password text boxes and you'll see what I mean).
Perhaps this is a .NET question, I'm sure there's overlap.
I've google searched this one and I'm not the only one who's seen it and asked about it, but I haven't found any legit replies and solutions to anyones question.
FYI I'm using VS2003/Csharp for the project.
Thanks in advance for advice/help. This extremely simple request has me pulling my hair out in frustration.
|
|
|
|
|
You mean select the entire text or just the last word? Have you tried Select(0, TextLength) ?
|
|
|
|
|
No no no.
I want the FORM to automatically select the text when the control receives focus.
I probably can select text from inside my program with a statement, but that's not the point.
Plus...I have over 20 RichTextBox controls on this form and I want them ALL to behave the same way. If I have to go through and add all kinds of OnReceiveFocus() Handlers and Select(0, TextLength); statements then I'll be here all day.
My point is, according to MSDN, that's what AutoWordSelection is supposed to do. Does anyone know why it doesn't do it and how to correct it?
Phil
|
|
|
|
|
Phil C wrote: My point is, according to MSDN, that's what AutoWordSelection is supposed to do. Does anyone know why it doesn't do it and how to correct it?
I think you understand it incorrectly. You actually need to select part of the word to select the whole one. Recheck the documentation.
|
|
|
|
|
Hmmm, well you are right, I guess I did misread what ths property was for.
However, setting this property to true still has no effect. I have two controls on a form side by side. One with autoword select = true and one with autoselect=false.
As far as I can tell both controls behave the exact same way. I can select a single letter, a couple letters, or the entire word with my mouse.
But as usual I'm getting distracted from the goal I was tyring to achieve which was selecting the text as soon as the control gain focus. It's just frustrating when you try and experiment and various properties seem to have no effect.
About the only thing I can conclude is perhaps if the RichTextBox is stretched out and contains a sentence rather than a single word it works. I don't know *sigh*
|
|
|
|
|
this is my function and it works in Asp 1.1:
function thisFunctionInUserControl(obj)
{
switch(obj){
case 1:
if(eval("chkAdmin.checked")){
eval("chkStudent.checked=false;")
eval("chkProf.checked=false;")
}
case 2:
if(eval("chkProf.checked")){
eval("chkStudent.checked=false;")
eval("chkAdmin.checked=false;")
case 3:
if(eval("chkStudent.checked")){
eval("chkAdmin.checked=false;")
eval("chkProf.checked=false;")
}
}
}
I use it like this:
..
|
|
|
|
|
Hi everybody!
I have the next code and I’m having a problem with the DataRow:
DataTable dt = new DataTable();
dt.Load(GetReader());
dataGridView.DataSource = dt;
DataRow[]originalRows = dt.Select();
The problem is that when I change a cell value in the datagridview the change is also set in the originalRows values. I’d like to avoid this, since I want to use the original values of the datatable to compare them later to see whether there ware changes in my datagridview.
Thanks in advance,
Elvia
PS: Windows application in Microsoft Visual C# 2005
|
|
|
|
|
I forgot to say that I tried the following but it didn't work:
private void dataGridView_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
{
originalRows[e.RowIndex].CancelEdit();
originalRows[e.RowIndex].EndEdit();
}
|
|
|
|
|
Look into using DataSet rather than DataTable directly for loading and as DataSource
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum
led mike
|
|
|
|
|
You're trying to solve this problem the wrong way. The Select method of the DataTable returns references to the rows in the table, not clones. When a value in a row is changed via the grid, the corresponding row in the table (and, hence, an element in your originalRows array) will reflect that change.
If all that you need to do is detect if values in the table have been modified, you can loop over every row in the table and check the RowState property.
Josh
|
|
|
|
|
Thanks Led and Josh,
I want to compare an specific cell not the whole row. I have the following comparation.
if (!originalRows[i]["Path"].Equals(testCase["Path"]))
Do you know how can I compare the cell's state?
I'll try the DataSet later and I'll tell you the results.
Elvia
|
|
|
|
|
You can call Copy on the DataTable, instead of Select, to get a complete and separate copy of the entire table. Later, when you want to compare each value in each row, you can just compare the copied (unmodified) table to the one bound to the grid.
Josh
-- modified at 15:04 Friday 5th May, 2006
You might also be able to use the overload of the Select method which takes the DataViewRowState parameter. It allows you to get the original values for modified rows.
|
|
|
|
|
Hi Josh!
Thanks a lot. I called the Copy method and did what you told me. It works as I want.
I appreciate it
Elvia
|
|
|
|
|
Hello all,
I've written an application that utilizes the code in "Customized display of collection data in a PropertyGrid" by Gerd Klevesaat. I've even managed to get the customized display of items in a collection working using a generic collection inheriting from BindingList<t>. However, I need a way to force the property grid to update at arbitrary times. Any idea how to make this happen?
I know about RefreshProperties(RefreshProperties.Repaint), but this attribute only tells the property descriptor to redraw the property grid contents when the value of the collection property changes, not when the contents of the collection change. Since I have events that are being raised when my collection changes (and have written a custom ITypeDescriptor class to handle interaction with the property grid), is there any way through ICustomTypeDescriptor where I can send a message to the property grid to refresh itself? My other option is to call the Refresh method on the property grid, but I'm not sure if it will actually change the contents. A final option is to set the SelectedObject on the property grid and cause it to refresh (I don't like this, since it is a bit too hackish for me).
Any ideas?
Thanks,
Will
|
|
|
|
|
Although I havent done this myself, you should be able to register to events in the property's PropertyDescriptor. Specifically, PropertyDescriptor.AddValueChanged(Object, EventHandler) . If you get it working via this, can you let me know? Thanks
|
|
|
|
|
I ended up doing it the lazy way. I just propagated an event back up the object heirarchy. The form receives that event from the root object and calls refresh on the property grid if the sender parameter (which is passed up from the object that raised the event) is a child of the object currently selected in the property grid. I did it this way since I already had functionality for determining whether or not a particular object contained another object.
|
|
|
|