|
Nice one. I would take your regex idea further to acheive sentences matching on his first example, by matching each word in the first sentence to any word in the second sentence using this matching algorithm (override IsEqueal using this algorithm), and if all words match, then you have an overall match.
This would require both sentences to have the same number of words to achieve a total match, it would then be your call to determine what to do with the extra words.
Now I won't even try to discuss performance on that one!
For more tips, go to: http://www.mycsharpcorner.com
|
|
|
|
|
Hello guys
i am trying to customise my repeater control i have placed on my web form.
When i try to edit the <itemtemplate> element i get the following error, hence i cannot see any data on the screen:
Per the active schema, the element 'tr' cannot be nested within 'form'??
please could you offer some help??
P.S this is what i have, there is a problem with the <tr> tag but i dont know what it is
<itemtemplate>
<tr bgcolor="#ccfff">
</tr>
.
.
.
</itemtemplate></tr></itemtemplate>
Cheers
|
|
|
|
|
HI,
Can anyone tell Exactlly what is the diffrenece between :
1. Connect and BeginConnect
2. Accept and BeginAccept.
3. Send and BeginSend.
4. Receive and BeginReceive.
THANKS
Have Fun
Never forget it
|
|
|
|
|
Connect, Accept, Send, adn Receive, are all blocking methods, when you call them it will just wait until you have Connected, Accepted a connection, Sent data, or Received data.
Begin... are asynchronous, which means they get called, and then the rest of your code is executed. When you call them you supply a callback function, so then when something happens, the callback function gets executed, and you deal with the send / receive etc. in there, and then usually call EndConnect, etc.
If you hop on over to google, and type in these methods, one of the top reults will be MSDN, which will tell you in alot more detail what each of them does.
My current favourite word is: Bauble!
-SK Genius
|
|
|
|
|
THANKS
Have Fun
Never forget it
|
|
|
|
|
hi,
I am working on a desktop application which has grid in it and show data from access database.
my problem is that the grid only shows about 21700 records of the table,(I am not sure about the exact number)
I can search throw the whole database (i can search for last added record which doesn't appear in the grid).
what should I do to show larger range of data in DataGrid?
|
|
|
|
|
DataGridView dont have row limit, check your codes
Becoming Programmer...
|
|
|
|
|
Hi all :
I have a file it`s exetition is .dll I want to open it to copy some codes inside. How can I do it?????
<<<<<<<<thanks><<<<<<<<<
|
|
|
|
|
What sort of dll is it ? Is it a resource dll ? What files are you hoping to get out of it ? Where did it come from ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi :
Yes it`s a resource dll in two days ago I was download a project form this website it`s was great , it was about office vista buttons there is a function that response to give the attribute to the buttons I want to know how I can do a button like them .......
<<<<<<<<<<<<<<<<<<<THANKS<<<<<<<<<<<<<<<</codeProject$$>
|
|
|
|
|
Surely if it came from this site, the source code and the images are also there for download ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
If the dll is written in one of the .NET Framework languages then you can use Reflector for .NET[^] to decompile it.
|
|
|
|
|
Sig size, reduce it now
My current favourite word is: Bauble!
-SK Genius
|
|
|
|
|
yeah he used lots of Enters, XD
Becoming Programmer...
|
|
|
|
|
Hi
I created an windows application in C# which contains one form and one class file.In form I have one timer control and Timer1_tick event. In event I am calling a function in the class file. And in class file iam creating the object of form and calls the timer1.Enabled and Interval properties. When I refer this exe in other applications to perform Timer operations, I am getting two kinds of errors for two conditions.
If i am giving a "new" reference to the objects I created for the class and form in Timer exe, then - Stack overflow exception
If I am creating object without "new" and assigns null and uses to avoid Stack Overflow exception, then the error will be "Object refernce not set to an instance of object"
What is the solution to this problem?
NB: In VB they uses "friend" functions and Withevents to create object and avoids this situation
With Regards,
Abraham Chethuvelil
|
|
|
|
|
The 'friend' keyword in VB is just the same as 'internal' in C#. I don't see how that would solve your problem. Also, withevents is just a shorthard for assigning an event. You've obviously created a situation where your code just keeps calling itself. I'm not sure why your class is setting up a timer in your form, but if you set a break point you should be able to work out quick enough what is causing the endless loop.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
The exe is created to perform two tasks in another windows service application I created.
One to use the Timer_Tick event at particular intervals. This event calls the function(void OnTimerEvent()) defined in the class file which works as a wrapper class,
Second, this Wrapper class contains another user defined(delegate) Timer event that I created to perform some operations in Windows service appln. The issue is that OnTImerEvent() Method calls Timer event and the Enabled and Interval properties of TImer control I created in the form.
So I am forced to create the object of form in Class file, and in the form i have to create the object of wrapper class. This class is used in Windows services to define the Timer events
This is the problem I am facing, when runs This timer tick will be invoked at intervals and I get the errors I mentioned in the previous mail based on the use/removal of "new" "<constructor>"
Please help me in solving this
With Regards,
Abraham Chethuvelil
|
|
|
|
|
Arun Abraham Jose wrote: The issue is that OnTImerEvent() Method calls Timer event
The timer event calls itself ? Well, that would do it.
If that's not it, try posting some code, then perhaps I can see your error.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi
In the form we have timer1_tick event. In that I am calling object of class.Function of class(); for this I created one object of class in form.
In class I am calling the timer1.Enabled property of form by creating the object of form. In the class I have my own timer event which I calls in the function called in the form. The properties and event I created in this class are used in other projects by referencing to this exe.
If I initialize the objects of form or class in this Timer exe, I will get the error "Stack Overflow Exception". If I dont give "new 'class name()'" in the form, I will get "object reference not set to an instance ob object" error when timer1_tick event, because it calls the function of class only.
With Regards,
Abraham Chethuvelil
|
|
|
|
|
HI,
My aim is to bind two tables data into a single datagrid with specific column names .if any one knows how to do this please do let me know ........database is access
regards
sindhu tiwari
Always Innovative
|
|
|
|
|
Write a query which returns all the data you need from both tables.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I tried the code below which I got from MSDN:
int counter;<br />
Match m;<br />
CaptureCollection cc;<br />
GroupCollection gc;<br />
<br />
Regex r = new Regex("(Abc)+");<br />
m = r.Match("XYZAbcAbcAbcXYZ");<br />
gc = m.Groups;<br />
MessageBox.Show(m.Groups[1].Value + " " + m.Groups[0].Value);<br />
MessageBox.Show("Captured groups = " + gc.Count.ToString());<br />
<br />
for (int i = 0; i < gc.Count; i++)<br />
{<br />
cc = gc[i].Captures;<br />
counter = cc.Count;<br />
MessageBox.Show("Captures count = " + counter.ToString());<br />
for (int ii = 0; ii < counter; ii++)<br />
{<br />
MessageBox.Show(cc[ii].Value + " Starts at character " +<br />
cc[ii].Index.ToString());<br />
}<br />
}
The original text to match was a little different and I modified it. Now I wonder why gc includes 2 groups; one is AbcAbcAbc and the other is Abc. Could please anyone explain this?
|
|
|
|
|
|
Hi,
I have created a nice effect using a Timer and changing form height in the tick event which its Interval is set to 1.
I each tick, the following code is executed:
this.Height += 2;
In my Form1_Load event I have:
this.Height = 0;
The form is flickering. I tried to set DoubleBuffered property to Yes but it didn't help.
How can I overcome this problem?
Your help would be greatly appreciated.
|
|
|
|
|
yeah and it must be flicker because you set interval to 1.
that work so rapidly and require lots of process in very little time
so increase the interval until you get the working one
Becoming Programmer...
|
|
|
|