|
Hello,
I am using a tab control with each tab created at run-time.
I am using the SelectedIndexChanged event so I can process some data that has been input on the selected tab. However, I need to know which tab the user has just left, so I can process some data that is needed before that tab loses focus.
The selectedIndexChanged event is good for finding the tab that has been selected, but not the one that has just lost focus.
I could proberly loop through all the tabs and find the one that has lost focus, but I am wondering if there is a better method.
Many thanks,
Steve
|
|
|
|
|
one possible way would be to store the selectedindex from the tab in a variable
then in the selectedindexchanged event you process your data and after that you set you're variable to the new selectedindex
|
|
|
|
|
If you are using .net 2.0 there is a deselected event where the sender being passed in is the tabcontrol and the selectedindex of that tabcontrol is the tabpage that is losing focus.
Hope that helps.
Ben
|
|
|
|
|
Yes, I am using VS 2005
Thanks
|
|
|
|
|
So I think the deselected event should work pretty good for you then. The SelectedIndex and SelectedTab should still be the previous TabPage.
Ben
|
|
|
|
|
hi all
i need a ruler to set the indentation of richtextbox in vb.net
can some one help me to get one
ash
|
|
|
|
|
|
Q1/
If this is the path to save an open Excel file running in the background
xlSheet.SaveAs("c:\My Path\tk" & Format (Me.MonthCalender1.SelectionStart, "yyyyMMdd") & ".xls")
How would I open a file using the MonthCalender1 (Change-Date) as the trigger to determine the name? e.g. "tk20070727.xls" ?
Q2/ Having opened the file (running invisable in the background), how can I pull the data from a cell to a variable?
Q3/ How do I close the invisable running .xls file in runtime?
|
|
|
|
|
how to identify status of mscomm event when a reciever attend the phone
thank you
-RisKhan-
|
|
|
|
|
There is no event if the phone is picked up... Whatever you have the phone connected to, I'm assuming it's a modem, has to be able to send a message to the PC. AFAIK, there is no modem out there that will tell you if the phone goes "off-hook".
|
|
|
|
|
i m trying to use the filesave-dialogbox, it works ok bt 1 problem i m facing is when the filename is even nothing the "Save" botton is enable and clicking it does nothing except the dialog reappears.... Plzz tell me how can i disable the "Save" botton when the filename is "", r nothing.
(Jameel)
|
|
|
|
|
To do that would involve some complex code, as you'd need to hook into the existing save as dialog, or just create your own copy of it.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hello frnd,
i am creating virtual directory programaticallu using VB 6.0, it is running successfully
i create the site using
<br />
ObjVirtual = object.create("IISWebVirtualDir","Name Of Virtual directory)
but how can i set the application name in virtual directory, when i create the virtual directory programatically and click to the properties then application name textbox is empty...
and second problem is i want to check the "Intergated windows authentication" check box programatically,
please help....
any helpful code OR link ??????
regards,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Hi all,
i Have solve the problem, we can set the Application Name in virtual directory by using
ObjVirtual.AppFriendlyName= "Name of Application"
and we can give the intergated windows authentication by using
ObjVirtual.AuthNTLM = True
But i have a new problem how can i set the default page enable in virtual directory...
please help....
regards
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Have a look at this link[^] for the list of ADSI properties. You want EnableDefaultDoc.
|
|
|
|
|
i have some code in currentcellchanged about catching up anychange of cells but it works when click enter or mause click i wanna see changing when click keyboard one by one of keys pls help me
|
|
|
|
|
I can't understand what your saying, what does "...when click keyboard one by one of keys" mean??
|
|
|
|
|
wanna see result of pulled database info in anothercell of datagrid when i push a key to currentcellchanged
my code work but need to left click or enter , wanna that it works when push a key
|
|
|
|
|
i cant understand the meaning of this part of a code , can someboday explain me the meaning
thank you
-- modified at 6:35 Friday 27th July, 2007
|
|
|
|
|
If creates an IPEndpoint using any available IP address on the local computer, and any available port number.
|
|
|
|
|
Hi, I have a form which has multiple web form controls..
I have a post back to fill a dropdown list when another dropdown list is selected ...
Once this post back occurs the tab index is shifting to the first one
How can i retain my tab index to the same control or rather the next control.
Thank you
Hepsy
|
|
|
|
|
This is a question better suited for the ASP.NET forum...
|
|
|
|
|
Hello!
I would like you help me to write complected code of vb.net that is about Eastriver.dll. I want to connect to the Eastriver Er-980 but I don't understand to call function, so I would like you send me a complected code of it such as connect to it, test it on line or not, get data from it, rewrite all card, correct the time of it, setup the clock, new clock and new Eastriver.
Please help me in hurry!
Thank you.
|
|
|
|
|
chansothea wrote: Please help me in hurry!
No.
I doubt anyone even knows what you're talking about, but either way, you want a site like Rentacoder. When you're paying, you can ask people to write code to your specifications. Here, people ask for help with code they have written.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: a site like Rentacoder. When you're paying, you can ask people to write code to your specifications.
You mean "attempt to write code...", don't you??
|
|
|
|