|
AFAIK, you will need the Resource compiler, that's only available in the .NET SDK.
|
|
|
|
|
I am using a third party SNMP component. I create this component at run-time in a C# class.
I am wondering if there is someway I can use event handlers for this control in that class.
|
|
|
|
|
Your thrid party component has to trigger events, once you know it does, you can catch them by for example with a button:
btnButton.Click += (and then you press tab and it will create the method for you)
When the third party component doens not trigger any events i'm affraid you can't. You can recognize events when you press <varname>. and then you get a list of all posible options, when it's a yellow lightening sign it's an event. (this if you use Visual Studio)
|
|
|
|
|
hello please answer me
what is command of delay in c#
amin
|
|
|
|
|
System.Threading.Thread.Sleep(int milisecond);
|
|
|
|
|
hi all,i use popup window to display some text and ask user to enter their options(ie yes or no). my need is when the popupwindow loads the parent form should be stopped or should stop excuting lines after this popupwindow line and it resume executing the remaining lines after getting replay from that popupwindow.how to do this
to display popupwindow i use this line:
Response.Write("var win=window.open('Alert.aspx',null,'width=450,height=200,top=200,left=250','true');");
ayyp
|
|
|
|
|
I guess you want to ask confirmation by the user with the alert box right?
if he says yes it should continue and no it will stop,is that right?
if it is the case, then use the below piece in aspx of button control.It will take care.
"onclick='return confirm("Are you sure you want to delete this record?")'"
Thanks,
sp.
|
|
|
|
|
s aarthi u r correct.i already try with this code but how can i get the values that r given by the user(s or no)? and onmore thing this box will come after second click
ayyp
-- modified at 9:25 Monday 22nd May, 2006
|
|
|
|
|
hi all,
i have 30 items (numbers) in my combobox. how can i figure out the items index value?
for example: 2006 is the 5th element in my combobox. how can i get that 5 out (or if its an array how can i be sure that 2006 is at position items[4] ?)?
help please...
ps: with the given text, how can i get the index ?
-- modified at 8:49 Monday 22nd May, 2006
|
|
|
|
|
|
Hi,
You can use ComboBox1.SelectedIndex.ToString() to get the selected items index.
Hope this will help.
Best Regards,
Apurva Kaushal
|
|
|
|
|
hi Mehmet Fatih Akbulut!
maybe this is what your looking for...
the FindString[^] and FindStringExact[^] methods of the combobox.
hope this helps!
microsoc
|
|
|
|
|
How can i add a bitmap into resource folder of the solution by code in design mode? (No right click on the folder... but automatically by code)
|
|
|
|
|
See this one : http://msdn2.microsoft.com/en-us/system.resources.resourcewriter.aspx
|
|
|
|
|
Hello,
I'm creating a setup project for my application. I need to ask user to specify a directory during installation, which I have to set a registry key value to that directory. I've done this for installation directory but I don't know how to ask user to specify another directory as well and how to set the registery accordingly.
Any idea would be appreciated.
Thanks & Regards
P.S. I'm using wisual C# .NET
-- modified at 8:46 Monday 22nd May, 2006
|
|
|
|
|
Hi,
You can add one form in user interface where user can select the path of the folder and that path will be referenced in the coding for writting the registery.
Nimit Patel
|
|
|
|
|
I wish to implement a chat room that use between PDA (pocket pc) and desktop pc using C#. Is it any idea to implement this? XML web service can implement this? or any other suggestion for it?
The chat room that I plan to implement is one to one conversation only. Besides, if one of them already started the conversation, other people can't make conversation with him unless he had closed the conversation. Is it possible implement in xml web service? How could xml web service checking the status of the person to see them in conversation or not?
|
|
|
|
|
I wish to implement a application to make translation between chinese word to english word in pocket pc. It will allow user write the chinese word in pocket pc then send remotely by .net compact framework(xml web service) to the remote server. Is the pocket pc itself support write foreign language (chinese word) and can xml web service send chinese word to the remote server from pocket pc?
|
|
|
|
|
Hey all,
I'm sure this is a no-brainer for most of you, but it's something I never learned about in the old procedural days, so any help appreciated.
I keep reading about the Singleton, and looking at the implementations, folks talk about thread safety etc. etc., such as in this article: http://www.yoda.arachsys.com/csharp/singleton.html.
However, I was under the impression that if a class was declared as public static it would have application scope, but couldn't be instantiated, and so would only exist once within an application... so any methods or properties you put in a static class will also only have one instance.
I must be missing the point here somewhere - one conclusion I've come to is that you infact wrap another object, that would normally be instantiable, within a singleton class, in effect making the wrapped object a Singleton as well... is this the case?
|
|
|
|
|
Its important to get one distiction solid in your mind.
A singleton is a single instance of a clas.
So, you should write whatever class will be a singleton in the normal manner before starting. ie/
public class MySingleton
{
private string someVar = "";
private MySingleton()
{
}
public string SomeVar
{
get{ return this.someVar; }
set{ this.someVar = value; }
}
}
Note this has instance variables/accessors. The other thing to note is that it has a private constructor only!! This stops new instances of being created for this object (except for within the code).
Now, the purpose of a singleton. If, for whatever reason makes sense for your application, there should only EVER be one instance of MySingleton it is a candidate for the Singleton pattern.
1 line change
public class MySingleton
{
public static readonly MySingleton Current = new MySingleton();
private string someVar = "";
private MySingleton()
{
}
public string SomeVar
{
get{ return this.someVar; }
set{ this.someVar = value; }
}
}
Now, in your app you could have:
MySingleton.Current.MyVar = "Hellow World";
For examples of Singleton use within the framework look at HttpContext.Current in the System.Web namespace.
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
-- modified at 8:56 Monday 22nd May, 2006
|
|
|
|
|
Many thanks for that - I think I'm getting it! *Goes off to do some experimentation in code*
|
|
|
|
|
Hi,
When I tried to retrieve the contacts from palm desktop software using c#.net application I got the following Exception:
"Retrieving COM class factory for component with CLSID(22C48232-4BC5-11D4-80FB-00C04FA03755"
Please help me.
Thanks,
Smitha Sondur
Smitha Sondur
|
|
|
|
|
hi all,
first: i have a tabcontrol page and it contains a few textbox and 3 buttons (insert, cansel, close).
i tried to arrange taborder for this page but interestingly Insert button has a precedence according to textboxes although i selected textboxes to have taborder first ;(
its weird. is there something wrong with my form ? or do i miss something ?
my taborder (did in this order) : pagetabs > textboxes > buttons (insert, cansel, close)
but form's tab order : pagetabs > insert button > textboxes > the other 2 buttons.
second: for cansel button i just initialize textbox(n).Text=""; what should i do to make comboboxes to show nothing ? combobox(n).Text=""; doesnt work i dont want to add or remove something from comboboxes. just want not to show any item inside.
third: i use tooltip to give some info about for pagetabs. but if i open another tab then move back to the previously opened tab. tooltip doesnt show anythin any more ;(
how do i edit tooltip properties so as to enable it to show infos continuously even i browse in tabpages ?
thanks in advance.
bye.
|
|
|
|
|
1. The tab order will work fine, but you should try taking the control that you want the user to be on first and calling Focus() on it. You can listen for the event when the user switches tabs and do it there, or when the tab pane becomes visible.
2. You can use the Text property with a combobox. What is your DropDownStyle set to? If the combobox requires that a list item be picked, then it's not going to let you clear out your text.
3. Are you using the SetToolTip method? Is the container your form or the tab pane? Have you tried listening for the tab switch event and resetting your tooltips?
www.logifusion.com
|
|
|
|
|
Hi..
I have some text text in RichTextBox ..And i want to search for some text.
If that text appears more than one time it should select all that occurances.
Is it possible to do that?
Wat im using curently is as follows..
int startindex = 0;
int tmp = rtxbox.Text.ToUpper().IndexOf(txtFind.Text.ToUpper());
if (tmp > -1 && rtxbox.Text.Length > 0)
{
startindex = tmp;
rtxbox.Find(txtFind.Text);
rtxbox.rtxbox.ScrollToCaret();
}
this only selects the first occurance of that text..
help me out
|
|
|
|