|
hi all,
is it possible to hide (and show) unwanted tabs when dealing with a specific tab ?
let's say i've a tabcontrol with 5 pages (first page is only required for a while) and with a button click i want to hide all other 4 pages ?
then i make them show again when i need them ?
|
|
|
|
|
If you are using VS2005, you can do it as follows:
create dynamic tabs array through code.
Create each tab and add to the tab list, when ever you need to hide you can stop loading those tabs.
Try and check, else i will give you sample code
|
|
|
|
|
I suppose the
TabControl1.TabPages(1).Visible = False Wont work in .Net Framework 1.1. As a work around you use
TabControl1.TabPages.Add() and TabControl1.TabPages.Remove() as when you require tab pages
|
|
|
|
|
yes,
hide and show or Visible =true or false properties are not available for TabPages, Only availble option is Remove and add again.
RemoveAt(...) and RemoveByKey(...) are availble and then we can add at any time.
Ravi
|
|
|
|
|
I am having .NET framework1.1
I need to compile C# windows project from the command line
I have compiled the code in the following way
csc /out:exe *.cs
It is showing the error missing resources files.
In the project i am having one image two text boxes and a listbox.
I have used System.Globalization for German language culture to change date and time format.
Can any one help me what are the exact parameters do i need to pass to the command "CSC".
|
|
|
|
|
|
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?
|
|
|
|