|
no i don't thionk so
becouse multicast deligate is link list of deligates.
rahul
|
|
|
|
|
rah_sin wrote: no i don't thionk so
becouse multicast deligate is link list of deligates.
Events are special kind of delegates, and += are used with events, which means an event may have more than one event handlers. So what i concluded is that += (with events) denotes multicast.
_____________________________
Success is not something to wait for, its something to work for.
|
|
|
|
|
+= is applied on events right? and event delegates are multicast delegates.
--------------------------------------------------
|
|
|
|
|
|
it denotes but the delegates must return void, for example "public void delegate()"
|
|
|
|
|
Hi,
we approached the problem with .NET ErrorProvider componet and localization. When the form contains errorProvider and its language property is switched to some language mutation and then switched back to default, form looses some settings as for example BorderStyle property or DialogResult.OK on Accept button is changed back to DialogResult.None. Did anybody hit to the same problem ?
|
|
|
|
|
In my app I am using a ToolStripContainer where one menustrip and three toolstrips are embedded in the TopToolstripPanel.
My problem is that at designtime these strips are moving randomly within the ToolStripPanel after compiling or switching between code and design. Sometimes one toolstrip moves above the menustrip, sometimes, the toolstrips move in one row behind each other.
At runtime the toolbars are alway in the right position.
Does anybody know how to prevent this behaviour?
Dirk
|
|
|
|
|
hi everybody,
Could somebody pls help me to find a solution for this...
I need to calculate the system idle time (I repeat SYSTEM idle time & not application idle time)
I need to logoff the system if the user is not working not only in my application but he is away from his desk...
so definitely Application.Idle is not goin to work since it just triggers for the particular application's idle time
Thanks in Advance,
Enjoy .Netting
|
|
|
|
|
This is a really BAD idea. Have you considered the possibility that the user walks away from his desk with an unsaved document open? If you log this person off, any unsaved changes will be lost and that person might come hunting for you with a large weapon.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
First of all thanks for the reply...
I think I was not clear on the issue..
What I'm trin to achieve is a kind of screenlock..
Just as what we have in Windows if the system remains idle for a particular time...
Once again thanks for the reply & keenly look forward to ur replies
|
|
|
|
|
Hello...
I want to check username, password, and domain together. I always used C++ to do that. That means, I give username, password and domain, and the return value is true or false.
Now I changed to C# 2.0. Are there any classes or methods to do that ?
Probably using DirectoryService ?
Can anybody show me the right way how to do that ?
Thanks...
|
|
|
|
|
http://www.codeproject.com/dotnet/activedirusers.asp
|
|
|
|
|
I hope someone can help me... I'm a newbie to C# and loving it but i'm kinda stuck.
I have a multiline textbox and what i would like to happen is when i click on the "new" button that it prompts you to save if there is any text in the textbox. but i'm not sure how to go about it. any suggestions would be appreciated.
Regards Aj
Aj...
|
|
|
|
|
In the button click event, check the .Text property of the textbox and see if it is empty or not.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Pete O`Hanlon wrote: In the button click event, check the .Text property of the textbox and see if it is empty or not.
as a newbie i must ask how do / would i do that??
thanks
Aj...
|
|
|
|
|
I'm assuming here that you've already created the Click event for the button. If you haven't then you need to do this first. Then, assuming your textbox is called myTextbox, you would type something like this:
if (myTextbox.Text.Trim().Length != 0)<br />
{<br />
}
The Trim() removes any spaces from the end of the text. If the user had just pressed space, this would ensure that the messagebox was not shown.
There are many ways to accomplish this test. You could test to see if myTextbox.Text.Trim() == string.Empty .
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Brilliant. Thanks for your help... It all falls into place now.
using Trim() ".Length !=0)" works where as "== string.empty" doesn't appear to do anything.
Once again thank you.
Aj...
|
|
|
|
|
"== string.empty" equals to true when the string is empty whereas ".Length !=0" equals to true when the string contains some characters i.e. isn't empty. Use "!= string.empty" to get equal result.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Hi all
Im trying to get this regex to fit with dash but i wont work...
regex:
Regex r = new Regex(@"^(([a-zA-Z] |(\\[\w]+\-[\w]+)\$?)(\\(\w[\w ]*))+\.(cwp|CWP)$", RegexOptions.IgnorePatternWhitespace);
bold is the critical part tried:
(\\[a-zA-Z0-9-]+)
(\\[a-zA-Z0-9\-]+)
this is the path it should match...
C:\Documents and Settings\Cws-Cdh\My Documents\CW Projects\Test\test.cwp
Thanks in advance, chris
|
|
|
|
|
You are looking at the wrong part of the pattern. The bold is the part that will match the folder names:
Regex r = new Regex(@"^(([a-zA-Z] |(\\[\w]+\-[\w]+)\$?)(\\(\w[\w ]*))+\.(cwp|CWP)$", RegexOptions.IgnorePatternWhitespace);
---
b { font-weight: normal; }
|
|
|
|
|
Any1 can advise me what to do if i wan to search an item inside a ListView fill by a datatable according to what user type in a text box.
http://img.photobucket.com/albums/v608/mjay83/lookup.jpg[^]
above is a screenshot i taken from a software, i just wonder how they do it, user type inside the lookup textbox, then the list view will auto jump and point to the item which match or nearly match with the user input.
Any1 please?
|
|
|
|
|
The listbox responds to two messages:
CB_FINDSTRING and CB_FINDSTRINGEXACT
These messages are used to find a value in a listbox or a ComboBox.
---
Hakuna-Matada
It means no worries for the rest of your days...
It's our problem free, Philosophy
It’s rather simple to write an unmanaged C++ application that crashes when it performs a callback. It’s impossible to write a managed application that does the same, thanks to delegates. - Jeff Prosise
|
|
|
|
|
sorry but i dun really get ur mean....
i am using a listview instead of a listbox
|
|
|
|
|
on text boxs textchange event u can try following codes
foreach(ListViewItem itr in listView1.Items)
{
if(itr.SubItems[1].Text==textBox3.Text)
{
//itr.Focused=true;
itr.Selected=true;
}
else
itr.Selected=false;
}
where subitems[1] is second column so u can write column number which u want to match
rahul
|
|
|
|
|
hi, thanks for reply
i gonna try tat out
but 1 thing is, my listview contains more than 7k item,
if using this way i think is quite not resource efficency
is there other better way?
|
|
|
|